From: Daniel Jacobowitz <drow@false.org>
To: Linux/PPC Development <linuxppc-dev@lists.linuxppc.org>
Subject: Re: ioremap() on ISA memory space
Date: Tue, 8 Jun 1999 16:16:49 -0400 [thread overview]
Message-ID: <19990608161648.A7950@drow.res.cmu.edu> (raw)
In-Reply-To: <Pine.HPP.3.96.990608205122.27048K-100000@gra-ux1.iram.es>; from Gabriel Paubert on Tue, Jun 08, 1999 at 09:08:04PM +0200
On Tue, Jun 08, 1999 at 09:08:04PM +0200, Gabriel Paubert wrote:
> be compulsory in 2.3 even on i386), but this is not necessarily a mm bug
> IMHO. It would be better to define a macro that conditionally adds a
> platform dependant offset for addresses < 16 Mb (I've heard that
> ISA_MEM_BASE has been killed, and I disagree just because of this kind
> of things).
>
> I would rather use ioremap(dev->base_address[n],...) for standard PCI
> devices and ioremap(ISA_PHYSICAL_ADDRESS(xxx),...) for devices which might
> be on ISA with:
>
> #define ISA_PHYSICAL_ADDRESS(x) \
> (((x)<0x1000000) ? ((x)+ISA_PHYSICAL_BASE) : (x))
>
> where ISA_PHYSICAL_BASE is a boot time constant (0xfd000000 on MPC106,
> don't know on others).
Incidentally, and somewhat related to this:
When I was hacking on tulip.c, I wanted to use tulip-daig to get the
state of the card. But it uses inl/outl, and on powerpc these have a
kernel private variable (isa_io_base) in their macro expansion. Is
there any way to make the PCI space available to userland on powerpc,
as iopl() and inb/outb can on x86?
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan@debian.org | | dmj+@andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
next prev parent reply other threads:[~1999-06-08 20:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-08 18:28 ioremap() on ISA memory space Geert Uytterhoeven
1999-06-08 19:08 ` Gabriel Paubert
1999-06-08 20:16 ` Daniel Jacobowitz [this message]
1999-06-09 1:06 ` Paul Mackerras
1999-06-09 7:38 ` Geert Uytterhoeven
1999-06-09 7:41 ` Geert Uytterhoeven
1999-06-10 8:30 ` Geert Uytterhoeven
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=19990608161648.A7950@drow.res.cmu.edu \
--to=drow@false.org \
--cc=linuxppc-dev@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.