On Sat, Nov 02, 2024 at 03:02:16PM +1300, Michael Schmitz wrote:
AFAIK the Gayle MMIO region is already mapped in head.S, and
does not need ioremap() at all.
Uhm, ok.
1) ioreamp() sock->phys_io, and subtract the GAYLE_IO offset (see
sock->socket.io_offset).
or
2) set Amiga base IO port to 0x0 and patch
drivers/pcmcia/rsrc_mgr.c::static_find_io() (see https://dpaste.com//B75LTFF3V)
In both case the 3c589_cs driver request an I/O aperture at 0x0300, large
0x0010, receives it, but all read operations return 0xff or 0xffff.
Can you post your .config? I wonder whether the
CONFIG_ATARI_ROM_ISA option is set, because that would mess
up inb()/outb() for ports < 0x400.
I cleaned up and made some progress, and now the first network card works: a
Corega ethernet PCMCIA supported by pcnet_cs - the same card is already
supported in the apne driver, though with the PCMCIA bridge, you get hot
plugging too.
Unfortunately, other PCMCIA cards I tested still don't work (an Etherlink
ethernet card, a CF adapter, a Ratoc serial card, and an 802.11 wifi card - all
of them with varying degrees of "not working").
I should probably repost the cleaned up driver.
--
bye,
p.