[Top] [All Lists]

Re: [PATCH 2.6] add iomap funtions

Subject: Re: [PATCH 2.6] add iomap funtions
From: Atsushi Nemoto <>
Date: Thu, 13 Jan 2005 00:42:58 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <>
>>>>> On Wed, 12 Jan 2005 01:24:33 +0900, Yoichi Yuasa <> 
>>>>> 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)

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>