Re: [PATCH 2.6] add iomap funtions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> On Wed, 12 Jan 2005 01:24:33 +0900, Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux