linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Ralph Blach <rcblach@us.ibm.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: IO_BASE woes.
Date: Wed, 05 Dec 2001 14:20:24 -0500	[thread overview]
Message-ID: <3C0E7378.9040706@embeddededge.com> (raw)
In-Reply-To: OF6A7540D3.FD212873-ON85256B19.0067E145@raleigh.ibm.com 


Ralph Blach wrote:


> Along with the PCI, this spells a lot of rewrite of code.

Well, I wouldn't say lots.

A properly written PCI driver isn't an issue, since it shouldn't
use in/out with IO_BASE any more, especially on PowerPC.  When
you stumble into drivers that don't do this, they should be modified
and changes submitted to the author.

For "ISA" chips on processor busses, you just need to get into the
habit of doing something similar as we should be doing with PCI.
Simply ioremap the address and use the I/O memory read/write operations.
I regularly do this, it only requires changes to a few lines of code,
and sometimes the authors will actually accept the changes.

> The concept of an IO_base seems a little dated.

Yep.  I don't use it any more on any PowerPC embedded systems.

Memory mapped I/O is your friend.  Use it and prosper.


	-- Dan


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-12-05 19:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05 18:59 IO_BASE woes Ralph Blach
2001-12-05 19:20 ` Dan Malek [this message]
2001-12-05 20:08   ` Benjamin Herrenschmidt

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=3C0E7378.9040706@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=rcblach@us.ibm.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;
as well as URLs for NNTP newsgroup(s).