Questions about ioport-assignments
Komuro
komurojun-mbn at nifty.com
Fri Apr 16 17:22:45 EDT 2010
Hi,
>That's not pcmcia_common_align()s fault -- but this line in alloc_io_space:
>
> align = (*base) ? (lines ? 1<<lines : 0) : 1;
>
>Should we try replacing it with
>
> align = lines ? 1 << lines : 0;
>
>unconditionally?
In this case, *base = 0x300
So
align = (*base) ? (lines ? 1<<lines : 0) : 1;
is correct.
Actually, lines defines the max ioport,
not align.
if lines = 10, the max ioport is 0x3ff.
if lines = 16, the max ioport is 0xffff.
More information about the linux-pcmcia
mailing list