Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amiga pcmcia wifi cards



On Tue, Nov 02, 2021 at 11:55:18PM +0000, David Brownlee wrote:

> The next question would be does anyone know if NetBSD implements this
> fix, and if not, what needs to be done to workaround? :)

The workaround is in sys/arch/amiga/dev/gayle_pcmcia.c:

        /* reset the card if it's already there */
        if (gayle_pcmcia_status_read() & GAYLE_CCMEM_DETECT) {
                volatile u_int8_t x;

                gayle_intr_ack(0xff);
                delay(500);
                gayle_intr_ack(0xfc);

                delay(100*1000);

                *reset_card_reg = 0x0;
                delay(1000);
                x = *reset_card_reg;
                __USE(x);
                gayle_pcmcia_status_write(GAYLE_CCMEM_WP | GAYLE_CCIO_SPKR);
        }


but the original 'CardReset' program doesn't touch a 'reset_card_reg'.


Greetings,
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index