lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ