Re: how to access pci memory from driver?

From: Robert Hancock
Date: Thu Jun 22 2006 - 21:19:35 EST


mcharon@xxxxxxxxx wrote:
hi steve,
that's another thing i forgot to mention. lspci doesn't show anything.
so it seems that there's no pci device. but the fact that cat
/proc/iomem shows
0x60000000-0x67ffffff : PCI1 host bridge, does this mean that the my
device which is supposed to be at 0x60040000 is mapped to I/O space??
the lease significant bit of bar0 is indeed 0.

the linux is running on ppc platform. we had to modify the u-boot in
order to load linux on our system. so i am not sure if we have
performed the necessary steps to be able to map our pci device.

for one thing, we are not registering any of our pci devices when uboot
loads
linux. we are going to use our driver to read and write to the pci
device.
can we still map to the device eventhough it is not registered?

I don't know PPC, but if your device doesn't even show up in lspci then you have bigger problems than your driver, either with the device, the machine hardware or the kernel's PCI detection.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/