sc->vbase = ca->ca_vaddr;
sc->cl_reg = ca->ca_vaddr;
clattach(parent, self, aux)	struct device *parent;	struct device *self;	void *aux;{	struct clsoftc *sc = (struct clsoftc *)self;	struct confargs *ca = aux;	int i;#if 0	int size = (CD2400_SIZE + PGOFSET) & ~PGOFSET;#endif	sc->vbase = ca->ca_vaddr;	sc->sc_pcctwo = ca->ca_master;	if (ca->ca_paddr == cl_cons.cl_paddr) {		/* if this device is configured as console,		 * line cl_cons.channel is the console */		sc->sc_cl[cl_cons.channel].cl_consio = 1;		printf(" console");	} else {		/* reset chip only if we are not console device */		/* wait for GFRCR */	}	/* set up global registers */	sc->vbase[CD2400_TPR] = CL_TIMEOUT;	sc->vbase[CD2400_RPILR] = 0x03;	sc->vbase[CD2400_TPILR] = 0x02;	sc->vbase[CD2400_MPILR] = 0x01;	for (i = 0; i < CLCD_PORTS_PER_CHIP; i++) {#if 0		sc->sc_cl[i].cl_rxmode =		    !(!((flags >> (i * CL_FLAG_BIT_PCH)) & 0x01));		sc->sc_cl[i].cl_txmode =		    !(!((flags >> (i * CL_FLAG_BIT_PCH)) & 0x02));		sc->sc_cl[i].cl_softchar =		    !(!((flags >> (i * CL_FLAG_BIT_PCH)) & 0x04));#endif		cl_initchannel(sc, i);	}	/* enable interrupts */	sc->sc_ih_e.ih_fn = cl_rxintr;	sc->sc_ih_e.ih_arg = sc;	sc->sc_ih_e.ih_ipl = ca->ca_ipl;	sc->sc_ih_e.ih_wantframe = 0;	sc->sc_ih_m.ih_fn = cl_mintr;	sc->sc_ih_m.ih_arg = sc;	sc->sc_ih_m.ih_ipl = ca->ca_ipl;	sc->sc_ih_m.ih_wantframe = 0;	sc->sc_ih_t.ih_fn = cl_txintr;	sc->sc_ih_t.ih_arg = sc;	sc->sc_ih_t.ih_ipl = ca->ca_ipl;	sc->sc_ih_t.ih_wantframe = 0;	sc->sc_ih_r.ih_fn = cl_rxintr;	sc->sc_ih_r.ih_arg = sc;	sc->sc_ih_r.ih_ipl = ca->ca_ipl;	sc->sc_ih_r.ih_wantframe = 0;	switch (ca->ca_bustype) {	case BUS_PCCTWO:		dopoll = 0;		pcctwointr_establish(PCC2V_SCC_RXE, &sc->sc_ih_e);		pcctwointr_establish(PCC2V_SCC_M, &sc->sc_ih_m);		pcctwointr_establish(PCC2V_SCC_TX, &sc->sc_ih_t);		pcctwointr_establish(PCC2V_SCC_RX, &sc->sc_ih_r);		sc->sc_pcctwo = (void *)ca->ca_master;		sc->sc_pcctwo->pcc2_sccerr = 0x01; /* clear errors */		/* enable all interrupts at ca_ipl */		sc->sc_pcctwo->pcc2_sccirq = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);		sc->sc_pcctwo->pcc2_scctx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);		sc->sc_pcctwo->pcc2_sccrx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7);		break;	}	evcnt_attach(&sc->sc_dev, "intr", &sc->sc_txintrcnt);	evcnt_attach(&sc->sc_dev, "intr", &sc->sc_rxintrcnt);	evcnt_attach(&sc->sc_dev, "intr", &sc->sc_mxintrcnt);	printf("\n");}