linux-mips
[Top] [All Lists]

Re: [PATCH 2.6] add iomap funtions

To: yuasa@hh.iij4u.or.jp
Subject: Re: [PATCH 2.6] add iomap funtions
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 13 Jan 2005 00:42:58 +0900 (JST)
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <20050112012433.382a97dd.yuasa@hh.iij4u.or.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050112012433.382a97dd.yuasa@hh.iij4u.or.jp>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Wed, 12 Jan 2005 01:24:33 +0900, Yoichi Yuasa <yuasa@hh.iij4u.or.jp> 
>>>>> said:

yuasa> This patch adds iomap functions to MIPS system.
yuasa> Some MIPS systems are unable to define PIO space by
yuasa> PIO_MASK/PIO_RESERVED.  This is the reason that I didn't use
yuasa> the general iomap implementation.

How about defining ioreadN/iowriteN macros in io.h ?

#define ioread8(addr)   readb(addr)
#define ioread8_rep(port, buf, count)   readsb(port, buf, count)
etc.

Then ioport_map and io{read,write}{8,16,32} will be more efficient
than {in,out}[bwl].

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>