From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Christian Jaeger <christian.jaeger@ethlife.ethz.ch>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Need help for pci driver on powerpc
Date: 23 Mar 2003 18:53:08 +0000 [thread overview]
Message-ID: <1048445586.10727.58.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <20030323171955Z263126-25575+35740@vger.kernel.org>
On Sun, 2003-03-23 at 17:30, Christian Jaeger wrote:
> - What does pci_resource_start return, a phys/virt/bus address?
Normally a pci bus address, but its really a cookie
> - What does ioremap expect?
The same cookie
> - do I need pci_set_master? Which other PCI calls are important?
You need enable_device, and before you touch the others. That should
ensure the hardware is in D0 (active) not powersaving or some other
inconvenience
Basically the logic goes
Ask the pci layer for pci register values
Feed values to ioremap
Get a cookie for use with readb/readw/readl etc
The return of ioremap may be a physical mapping, it might be the
cpu view of the bus address, or something else.
next prev parent reply other threads:[~2003-03-23 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-23 17:30 Christian Jaeger
2003-03-23 17:41 ` Benjamin Herrenschmidt
2003-03-23 18:53 ` Alan Cox [this message]
2003-03-25 10:32 ` Christian Jaeger
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=1048445586.10727.58.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=christian.jaeger@ethlife.ethz.ch \
--cc=linux-kernel@vger.kernel.org \
/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®