version 1.12.2.10, 1993/10/15 09:57:45 |
version 1.12.2.11, 1993/10/16 06:39:45 |
Line 84 static void comattach __P((struct device |
|
Line 84 static void comattach __P((struct device |
|
static int comintr __P((struct com_softc *)); |
static int comintr __P((struct com_softc *)); |
|
|
struct cfdriver comcd = |
struct cfdriver comcd = |
{ NULL, "com", comprobe, comattach, sizeof (struct com_softc) }; |
{ NULL, "com", comprobe, comattach, DV_TTY, sizeof (struct com_softc) }; |
|
|
int comparam __P((struct tty *, struct termios *)); |
int comparam __P((struct tty *, struct termios *)); |
void comstart __P((struct tty *)); |
void comstart __P((struct tty *)); |
Line 610 comeint(sc, stat) |
|
Line 610 comeint(sc, stat) |
|
c |= TTY_PE; |
c |= TTY_PE; |
else if (stat & LSR_OE) { |
else if (stat & LSR_OE) { |
c |= TTY_PE; /* XXX ought to have its own define */ |
c |= TTY_PE; /* XXX ought to have its own define */ |
log(LOG_WARNING, "com%d: silo overflow\n", sc->sc_dev.dv_unit); |
log(LOG_WARNING, "%s: silo overflow\n", sc->sc_dev.dv_xname); |
} |
} |
/* XXXX put in FIFO and process later */ |
/* XXXX put in FIFO and process later */ |
(*linesw[tp->t_line].l_rint)(c, tp); |
(*linesw[tp->t_line].l_rint)(c, tp); |
|
|
comeint(sc, inb(iobase + com_lsr)); |
comeint(sc, inb(iobase + com_lsr)); |
break; |
break; |
default: |
default: |
log(LOG_WARNING, "com%d: weird iir=0x%x\n", |
log(LOG_WARNING, "%s: weird iir=0x%x\n", |
sc->sc_dev.dv_unit, code); |
sc->sc_dev.dv_xname, code); |
/* fall through */ |
/* fall through */ |
case IIR_MLSC: |
case IIR_MLSC: |
commint(sc); |
commint(sc); |