From: "yogeshwar sonawane" <yogyas@gmail.com>
To: "Roland Dreier" <rdreier@cisco.com>
Cc: "Rolf Eike Beer" <eike-kernel@sf-tec.de>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Accessing 64-bit BARs
Date: Fri, 5 Oct 2007 09:27:25 +0530 [thread overview]
Message-ID: <b681c62b0710042057m6942eb72t498e4f59ebd8ae3a@mail.gmail.com> (raw)
In-Reply-To: <adasl4qdhpn.fsf@cisco.com>
hello,
Thanks rolf & roland.
pci_iomap() is not doing something extra. only it is some kind of
abstraction for IO-mapped OR memory mapped.
I know that my BARs are MMIO, so using ioremap() & readl()/writel()
combination should be fine.
But for the problem as explained in my first mail, any
help/suggestions will be helpful.
-Yogeshwar
On 10/4/07, Roland Dreier <rdreier@cisco.com> wrote:
> > 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.
>
> That works fine, but ioremap() and readl()/writel() is also perfectly
> fine for regions that you know are always MMIO.
>
> - R.
>
prev parent reply other threads:[~2007-10-05 3:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 8:53 yogeshwar sonawane
2007-10-04 12:40 ` Rolf Eike Beer
2007-10-04 15:26 ` Roland Dreier
2007-10-05 3:57 ` yogeshwar sonawane [this message]
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=b681c62b0710042057m6942eb72t498e4f59ebd8ae3a@mail.gmail.com \
--to=yogyas@gmail.com \
--cc=eike-kernel@sf-tec.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.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
all inboxes | Powered by JetHome®