__ioremap_at() in 2.4.0-test9-pre2

Roman Zippel zippel at fh-brandenburg.de
Wed Sep 20 19:34:23 EST 2000


Hi,

> For
> example, inb(0x3f8) won't access the first serial port (this is on
> machines such as prep and some chrp which have a lot of PC-style
> devices).

You know that the serial driver supports pci cards? So it's somehow a bad
example and even for broken drivers it shouldn't be that much of a problem
to add:

#if __broken__
#define xxx_inb(base, port) inb(port)
#else
#define xxx_inb(base, port) readb(base + port)
#endif

All the 8390 based drivers do something like this. (Although currently
they abuse inb/outb for that.)

bye, Roman


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





More information about the Linuxppc-dev mailing list