[lkml]   [2007]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Accessing 64-bit BARs
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.


[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2007-10-04 14:49    [W:0.073 / U:5.680 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site