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;
u_char	livr, cmr, cor1, cor2, cor3, cor4, cor5, cor6, cor7, schr1, schr2, schr3, schr4, scrl, scrh, lnxt, rbpr, rcor, tbpr, tcor, rpilr, rir, tpr, ier, ccr, csr, rts, dtr, rtprl, rtprh; struct clsoftc *sc;  volatile struct clreg *cl_reg;
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");}