sys/sparc/dev/zs.c
/*
 * Write the given register set to the given zs channel in the proper order.
 * The channel must not be transmitting at the time.  The receiver will
 * be disabled for the time it takes to write all the registers.
 */
Write the given register set to the given zs channel in the proper order.
The channel must not be transmitting at the time.  The receiver will
be disabled for the time it takes to write all the registers.
Write the given register set to the given zs channel in the proper order . The channel must not be transmitting at the time . The receiver will be disabled for the time it takes to write all the registers .
static void
zs_loadchannelregs(volatile struct zschan *zc, u_char *reg)
{
	int i;
	zc->zc_csr = ZSM_RESET_ERR;	
	i = zc->zc_data;		
	i = zc->zc_data;
	i = zc->zc_data;
	ZS_WRITE(zc, 4, reg[4]);
	ZS_WRITE(zc, 10, reg[10]);
	ZS_WRITE(zc, 3, reg[3] & ~ZSWR3_RX_ENABLE);
	ZS_WRITE(zc, 5, reg[5] & ~ZSWR5_TX_ENABLE);
	ZS_WRITE(zc, 1, reg[1]);
	ZS_WRITE(zc, 9, reg[9]);
	ZS_WRITE(zc, 11, reg[11]);
	ZS_WRITE(zc, 12, reg[12]);
	ZS_WRITE(zc, 13, reg[13]);
	ZS_WRITE(zc, 14, reg[14]);
	ZS_WRITE(zc, 15, reg[15]);
	ZS_WRITE(zc, 3, reg[3]);
	ZS_WRITE(zc, 5, reg[5]);
}
static void zs_loadchannelregs ( volatile struct zschan * zc , u_char * reg ) { int i ; zc -> zc_csr = ZSM_RESET_ERR ; i = zc -> zc_data ; i = zc -> zc_data ; i = zc -> zc_data ; ZS_WRITE ( zc , 4 , reg [ 4 ] ) ; ZS_WRITE ( zc , 10 , reg [ 10 ] ) ; ZS_WRITE ( zc , 3 , reg [ 3 ] & ~ ZSWR3_RX_ENABLE ) ; ZS_WRITE ( zc , 5 , reg [ 5 ] & ~ ZSWR5_TX_ENABLE ) ; ZS_WRITE ( zc , 1 , reg [ 1 ] ) ; ZS_WRITE ( zc , 9 , reg [ 9 ] ) ; ZS_WRITE ( zc , 11 , reg [ 11 ] ) ; ZS_WRITE ( zc , 12 , reg [ 12 ] ) ; ZS_WRITE ( zc , 13 , reg [ 13 ] ) ; ZS_WRITE ( zc , 14 , reg [ 14 ] ) ; ZS_WRITE ( zc , 15 , reg [ 15 ] ) ; ZS_WRITE ( zc , 3 , reg [ 3 ] ) ; ZS_WRITE ( zc , 5 , reg [ 5 ] ) ; }
Write the given register set to the given zs channel in the proper order.
Write the given register set to the given zs channel in the proper order .
/* reset error condition */ /* drain fifo */