lkml.org 
[lkml]   [2006]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to access pci memory from driver?
mcharon@gmail.com 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@nospamshaw.ca
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-23 03:23    [W:0.047 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site