* any way to find which pci driver uses what memory region & Any way to find which driver is attached to which device file
@ 2004-10-14 8:15 eshwar
2004-10-14 22:11 ` Jim Nelson
0 siblings, 1 reply; 2+ messages in thread
From: eshwar @ 2004-10-14 8:15 UTC (permalink / raw)
To: newbie
HI,
Is there any way to find which pci driver uses what memroy regions and any
way to find which driver si attached to which device file
Eshwar
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: any way to find which pci driver uses what memory region & Any way to find which driver is attached to which device file
2004-10-14 8:15 any way to find which pci driver uses what memory region & Any way to find which driver is attached to which device file eshwar
@ 2004-10-14 22:11 ` Jim Nelson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Nelson @ 2004-10-14 22:11 UTC (permalink / raw)
To: eshwar; +Cc: newbie
eshwar wrote:
>HI,
>
> Is there any way to find which pci driver uses what memroy regions and any
>way to find which driver si attached to which device file
>
>
>
"cat /proc/iomem". That will list the memory addresses assigned to the
various PCI devices. Some kernels have PCI name support compiled in
(most stock distro kernels do), but without it, you get the PCI bus
location numbers, and have to do a bit of work with lspci to identify
what each adapter is.
I don't understand why you need to know PCI memory address regions -
they are remapped at device configuration time (unlike ISA) unless you
have a seriously broken adapter card.
What do you mean "any way to find which driver is attached to which
device file"? You can use "cat /proc/devices" to get the major number
assigned to each block and char driver, and then do a "ls -l
/dev/[device file name]" to get the major and minor numbers assigned to
that device. From there, things get more driver-specific - different
drivers use minor numbers in different ways.
More info about what you're actually trying to do would help.
Jim
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-14 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14 8:15 any way to find which pci driver uses what memory region & Any way to find which driver is attached to which device file eshwar
2004-10-14 22:11 ` Jim Nelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox