int sdla_inten (sdlahw_t* hw) 
static int sdla_inten (sdlahw_t* hw) 
int sdla_inten (sdlahw_t* hw){	unsigned port = hw->port;	int tmp, i;	switch (hw->type) {	case SDLA_S502E:		/* Note thar interrupt control operations on S502E are allowed		 * only if CPU is enabled (bit 0 of status register is set).		 */		if (_INB(port) & 0x01) {			_OUTB(port, 0x02);	/* bit1 = 1, bit2 = 0 */			_OUTB(port, 0x06);	/* bit1 = 1, bit2 = 1 */			hw->regs[0] = 0x06;		}		else return -EIO;		break;	case SDLA_S503:		tmp = hw->regs[0] | 0x04;		_OUTB(port, tmp);		hw->regs[0] = tmp;		/* update mirror */		for (i = 0; i < SDLA_IODELAY; ++i);	/* delay */		if (!(_INB(port) & 0x02))		/* verify */			return -EIO;		break;	case SDLA_S508:		tmp = hw->regs[0] | 0x10;		_OUTB(port, tmp);		hw->regs[0] = tmp;		/* update mirror */		for (i = 0; i < SDLA_IODELAY; ++i);	/* delay */		if (!(_INB(port + 1) & 0x10))		/* verify */			return -EIO;		break;	case SDLA_S502A:	case SDLA_S507:		break;        case SDLA_S514:                break;	default:		return -EINVAL;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7665a08928f241247afe8c76865cdbe4ef5489bf/sdladrv.c/clean/drivers/net/wan/sdladrv.c