any way to find which pci driver uses what memory region & Any way to find which driver is attac

any way to find which pci driver uses what memory region & Any way to find which driver is attac

am 14.10.2004 10:15:38 von eshwar

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

Re: any way to find which pci driver uses what memory region & Anyway to find which driver is at

am 15.10.2004 00:11:09 von Jim Nelson

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