Re: Accessing 64-bit BARs

From: Rolf Eike Beer
Date: Thu Oct 04 2007 - 08:47:18 EST


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

Attachment: signature.asc
Description: This is a digitally signed message part.