Re: proper ioport space allocation

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Thu, 17 Dec 1998 20:04:05 +0100


Hello,

> Now, is this normal for a card? Do all hardware devices use higher
> harmonics like this?

In the olden IBM days ISA cards were decoding only low 10 bits
of port address and there still exist such cards, so new devices
can either use higher harmonics as in this case or consume large
regions in the 0x100-0x3ff space (0-0xff is reserved for motherboard
use). The second way doesn't work too well since it fills all
available space very quickly, the first one is only ugly :-|

Anyway, these rules don't apply in PCI world, so PCI cards
can freely use large continuous chunks of address space.

> suggestions?

It would be possible to make the ioport allocator understand
such fragmented regions in a sane way, but it smells of kernel
bloat. Maybe we should add a new function just calling request_region
multiple times for all chunks.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Man is the highest animal. Man does the classifying."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/