s = spltty(); cd_base[CD2400_CAR] = (char) channel; livr = cd_base[CD2400_LIVR]; cmr = cd_base[CD2400_CMR]; cor1 = cd_base[CD2400_COR1]; cor2 = cd_base[CD2400_COR2]; cor3 = cd_base[CD2400_COR3]; cor4 = cd_base[CD2400_COR4]; cor5 = cd_base[CD2400_COR5]; cor6 = cd_base[CD2400_COR6]; cor7 = cd_base[CD2400_COR7]; schr1 = cd_base[CD2400_SCHR1]; schr2 = cd_base[CD2400_SCHR2]; schr3 = cd_base[CD2400_SCHR3]; schr4 = cd_base[CD2400_SCHR4]; scrl = cd_base[CD2400_SCRl]; scrh = cd_base[CD2400_SCRh]; lnxt = cd_base[CD2400_LNXT]; rbpr = cd_base[CD2400_RBPR]; rcor = cd_base[CD2400_RCOR]; tbpr = cd_base[CD2400_TBPR]; rpilr = cd_base[CD2400_RPILR]; ier = cd_base[CD2400_IER]; ccr = cd_base[CD2400_CCR]; tcor = cd_base[CD2400_TCOR]; csr = cd_base[CD2400_CSR]; tpr = cd_base[CD2400_TPR]; rts = cd_base[CD2400_MSVR_RTS]; dtr = cd_base[CD2400_MSVR_DTR]; rtprl = cd_base[CD2400_RTPRl]; rtprh = cd_base[CD2400_RTPRh];
cl_reg = cl_cons.cl_vaddr;  sc = (struct clsoftc *) clcd.cd_devs[0];  s = splcl(); cl_reg->cl_car	= (char) channel; livr = cl_reg->cl_livr; cmr = cl_reg->cl_cmr; cor1 = cl_reg->cl_cor1; cor2 = cl_reg->cl_cor2; cor3 = cl_reg->cl_cor3; cor4 = cl_reg->cl_cor4; cor5 = cl_reg->cl_cor5; cor6 = cl_reg->cl_cor6; cor7 = cl_reg->cl_cor7; schr1 = cl_reg->cl_schr1; schr2 = cl_reg->cl_schr2; schr3 = cl_reg->cl_schr3; schr4 = cl_reg->cl_schr4; scrl = cl_reg->cl_scrl; scrh = cl_reg->cl_scrh; lnxt = cl_reg->cl_lnxt; rbpr = cl_reg->cl_rbpr; rcor = cl_reg->cl_rcor; tbpr = cl_reg->cl_tbpr; rpilr = cl_reg->cl_rpilr; ier = cl_reg->cl_ier; ccr = cl_reg->cl_ccr; tcor = cl_reg->cl_tcor; csr = cl_reg->cl_csr; tpr = cl_reg->cl_tpr; rts = cl_reg->cl_msvr_rts; dtr = cl_reg->cl_msvr_dtr; rtprl = cl_reg->cl_rtprl; rtprh = cl_reg->cl_rtprh;
cl_dumpport(channel)	int channel;{	u_char livr, cmr, cor1, cor2, cor3, cor4, cor5, cor6, cor7;	u_char schr1, schr2, schr3, schr4, scrl, scrh, lnxt;	u_char rbpr, rcor, tbpr, tcor, rpilr, rir, tpr, ier, ccr;	u_char csr, rts, dtr, rtprl, rtprh;	struct clsoftc *sc = (struct clsoftc *) clcd.cd_devs[0];	volatile u_char *cd_base = cl_cons.cl_vaddr;	int s;	s = spltty();	cd_base[CD2400_CAR] = (char) channel;	livr = cd_base[CD2400_LIVR];	cmr = cd_base[CD2400_CMR];	cor1 = cd_base[CD2400_COR1];	cor2 = cd_base[CD2400_COR2];	cor3 = cd_base[CD2400_COR3];	cor4 = cd_base[CD2400_COR4];	cor5 = cd_base[CD2400_COR5];	cor6 = cd_base[CD2400_COR6];	cor7 = cd_base[CD2400_COR7];	schr1 = cd_base[CD2400_SCHR1];	schr2 = cd_base[CD2400_SCHR2];	schr3 = cd_base[CD2400_SCHR3];	schr4 = cd_base[CD2400_SCHR4];	scrl = cd_base[CD2400_SCRl];	scrh = cd_base[CD2400_SCRh];	lnxt = cd_base[CD2400_LNXT];	rbpr = cd_base[CD2400_RBPR];	rcor = cd_base[CD2400_RCOR];	tbpr = cd_base[CD2400_TBPR];	rpilr = cd_base[CD2400_RPILR];	ier = cd_base[CD2400_IER];	ccr = cd_base[CD2400_CCR];	tcor = cd_base[CD2400_TCOR];	csr = cd_base[CD2400_CSR];	tpr = cd_base[CD2400_TPR];	rts = cd_base[CD2400_MSVR_RTS];	dtr = cd_base[CD2400_MSVR_DTR];	rtprl = cd_base[CD2400_RTPRl];	rtprh = cd_base[CD2400_RTPRh];	splx(s);	printf("{ port %x livr %x cmr %x\n", channel, livr, cmr);	printf("cor1 %x cor2 %x cor3 %x cor4 %x cor5 %x cor6 %x cor7 %x\n",	    cor1, cor2, cor3, cor4, cor5, cor6, cor7);	printf("schr1 %x schr2 %x schr3 %x schr4 %x\n", schr1, schr2, schr3,	    schr4);	printf("scrl %x scrh %x lnxt %x\n", scrl, scrh, lnxt);	printf("rbpr %x rcor %x tbpr %x tcor %x\n", rbpr, rcor, tbpr, tcor);	printf("rpilr %x rir %x ier %x ccr %x\n", rpilr, rir, ier, ccr);	printf("tpr %x csr %x rts %x dtr %x\n", tpr, csr, rts, dtr);	printf("rtprl %x rtprh %x\n", rtprl, rtprh);	printf("rxcnt %x txcnt %x\n", sc->sc_cl[channel].rxcnt,	    sc->sc_cl[channel].txcnt);	printf("}\n");}