This sounds like the problem I had with the mac68k ethernet cards.
> But then I have to decide runtime to use inb() and outb() or readb() and
> writeb(), since the driver also may be used for other cards that use I/O
> based access. Do you think that this would cause too much overhead in
> the interrupt handlers? It means that every I/O access will be slowed
> down by some extra memory references and a test.
Try it and see.
My personal feeling is that you want to define a macro used for each
read/write of the ports so that the serial code uses something like
and on x86 and other platforms it comes out as the old inb/outb code
and on your driver it comes out as your more complex code with scaling
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/