Questions about ioport-assignments

Komuro komurojun-mbn at nifty.com
Fri Jan 15 16:41:45 EST 2010


Hi,

>> >- Is it just a buggy card if it works at 0x300 but not 0xc300
>> >  (or is it maybe a problem with Linux assigning the io area)?
>> >- Why is IOAddrLines forced to 16 (and thus alignment to 0x10000), but only
>> >  if BasePort1 is 0?
>> 
>> Some pcmcia-card decodes only lower 10bits (0x0000-0x03FF).
>> Such card does not work on higher ports (0x0400-0xFFFF)
>> 
>
>Quick'n'Dirty patch -- or should we handle this generically, Komuro? Any way
>to reliably detect these cards?

I think your patch is not correct.


>> >- Is it just a buggy card if it works at 0x300 but not 0xc300

It seems the card tries to request the ioport 0x300,
but alloc_io_space (in pcmcia_resource.c) added 0xc000 accidentally .
then ioport becomes 0xc300. That's strange.

so I think alloc_io_space should be fixed.


Best Regards
Komuro



More information about the linux-pcmcia mailing list