Messages in this thread |  | | | From | Rolf Eike Beer <> | | Subject | Re: Accessing 64-bit BARs | | Date | Thu, 4 Oct 2007 14:40:10 +0200 |
| |
Am Donnerstag, 4. Oktober 2007 schrieb yogeshwar sonawane: > Hello all, > > For accessing memory-mapped 64bit-BAR regions of a PCI card, the > respective BAR regions has to be made accessible to the kernel using > ioremap() function. Then readl()/writel() can be used on the address > returned by ioremap().
You should use pci_iomap() to get an access pointer to the BAR. After this you can access the memory with ioread*() and iowrite*(). See "man pci_iomap(9)" if you build kernel manpages. Greetings,
Eike [unhandled content-type:application/pgp-signature] |  |