--- Kirill Messel <kirill.messel@mtu-net.ru> wrote: > Hi All, > > I have a question: > > If PCI card has 3 BAR How can i read value from BAR 3 with any > offset? > Thanks Kirill > I do it via the pci_dev structure: <snip> // access I/O space // registers begin at BAR 4 phys_addr = pdev->resource[ 4 ].start; </snip> I then use phys_addr for a call to ioremap_nocache(). >From then on, you can use readx(), and writex() to read and write any offset from your BARs. See http://www.xml.com/ldd/chapter/book/ch08.html#t4. You also might try http://www.xml.com/ldd/chapter/book/ch15.html#t1 Harmony, --Christine __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/