public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@sgi.com>
To: Jesse Barnes <jbarnes@engr.sgi.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>,
	linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org,
	benh@kernel.crashing.org
Subject: Re: [PATCH] add legacy I/O and memory access routines to /proc/bus/pci API
Date: Tue, 14 Dec 2004 19:06:26 -0800	[thread overview]
Message-ID: <200412141906.26809.jbarnes@sgi.com> (raw)
In-Reply-To: <200412141611.32417.jbarnes@engr.sgi.com>

On Tuesday, December 14, 2004 4:11 pm, Jesse Barnes wrote:
> > In this example, the particular device ("01/01.0") you open
> > makes no difference, right?  The I/O port routing is determined
> > by the chipset, not by which /proc/bus/pci/... file you open.
>
> But the chipset can be programmed to route things correctly or remap the
> correct legacy I/O port domain in the callback routine.

I should clarify here, the device *does* matter, since the legacy I/O port 
space mapping will point at different addresses depending on the device.  
Generally, devices on the same bus will get the same address, but two devices 
on different busses will have different addresses mapped (at least on Altix).  
In your case, where you can route I/O ports to arbitrary busses, you could do 
the routing at the time of the call and return -EBUSY if another device was 
already using the route and hadn't released it yet.

Jesse

  reply	other threads:[~2004-12-15  3:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14 17:41 [PATCH] add legacy I/O and memory access routines to /proc/bus/pci API Jesse Barnes
2004-12-14 23:55 ` Bjorn Helgaas
2004-12-15  0:11   ` Jesse Barnes
2004-12-15  3:06     ` Jesse Barnes [this message]
2004-12-15  8:57   ` Benjamin Herrenschmidt
2004-12-15 17:00     ` Jesse Barnes
2004-12-16 14:55       ` Benjamin Herrenschmidt
2004-12-16 16:26         ` Jesse Barnes
2004-12-15 17:27 ` Jesse Barnes
2004-12-15 21:03   ` Andreas Dilger
2004-12-15 23:15     ` Jesse Barnes

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=200412141906.26809.jbarnes@sgi.com \
    --to=jbarnes@sgi.com \
    --cc=benh@kernel.crashing.org \
    --cc=bjorn.helgaas@hp.com \
    --cc=jbarnes@engr.sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    --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