From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: "yogeshwar sonawane" <yogyas@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Accessing 64-bit BARs
Date: Thu, 4 Oct 2007 14:40:10 +0200 [thread overview]
Message-ID: <200710041440.15464.eike-kernel@sf-tec.de> (raw)
In-Reply-To: <b681c62b0710040153w5b4779fat1ccc7fa3e5775c2c@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-04 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 8:53 Accessing 64-bit BARs yogeshwar sonawane
2007-10-04 12:40 ` Rolf Eike Beer [this message]
2007-10-04 15:26 ` Roland Dreier
2007-10-05 3:57 ` yogeshwar sonawane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200710041440.15464.eike-kernel@sf-tec.de \
--to=eike-kernel@sf-tec.de \
--cc=linux-kernel@vger.kernel.org \
--cc=yogyas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox