[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200710041440.15464.eike-kernel@sf-tec.de>
Date: Thu, 4 Oct 2007 14:40:10 +0200
From: Rolf Eike Beer <eike-kernel@...tec.de>
To: "yogeshwar sonawane" <yogyas@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: 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.
Greetings,
Eike
Download attachment "signature.asc " of type "application/pgp-signature" (190 bytes)
Powered by blists - more mailing lists