(void) ttymodem(tp, dcdstate);
if (tp != NULL && (tp->t_state & TS_ISOPEN)) ttymodem(tp, dcdstate);
dartmodemtrans(sc, ip, ipcr)	struct dartsoftc *sc;	unsigned int ip;	unsigned int ipcr;{	unsigned int dcdstate;	struct tty *tp;	int port;	struct dart_info *dart;	dprintf(("dartmodemtrans: ip=0x%x ipcr=0x%x\n",		 ip, ipcr));	/* input is inverted at port!!! */	if (ipcr & IPCRDCDA) {		port = A_PORT;		dcdstate = !(ip & IPDCDA);	} else if (ipcr & IPCRDCDB) {		port = B_PORT;		dcdstate = !(ip & IPDCDB);	} else {		printf("dartmodemtrans: unknown transition:\n");		printf("dartmodemtrans: ip=0x%x ipcr=0x%x\n",		       ip, ipcr);		panic("dartmodemtrans");	}	dart = &sc->sc_dart[port];	tp = dart->tty;	dprintf(("dartmodemtrans: tp=0x%x new DCD state: %s\n",		 tp, dcdstate ? "UP" : "DOWN"));	(void) ttymodem(tp, dcdstate);}