/* Useful subroutines to manage the modem of the WaveLAN Read the Parameter Storage Area from the WaveLAN card's memory Read bytes from the PSA.  */
static void psa_read(unsigned long ioaddr, u16 hacr, int o, u8 *b, int n)
/* Useful subroutines to manage the modem of the WaveLAN Read the Parameter Storage Area from the WaveLAN card's memory Read bytes from the PSA.  */
static void psa_read(unsigned long ioaddr, u16 hacr, int o, u8 *b, int n)
{
	wv_16_off(ioaddr, hacr);
	while (n-- > 0) {
		outw(o, PIOR2(ioaddr));
		o++;
		*b++ = inb(PIOP2(ioaddr));
	}
	wv_16_on(ioaddr, hacr);
}