diff options
Diffstat (limited to 'sys/dev/ic/com_subr.c')
-rw-r--r-- | sys/dev/ic/com_subr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/ic/com_subr.c b/sys/dev/ic/com_subr.c index a7036adf2ed..15e2156f560 100644 --- a/sys/dev/ic/com_subr.c +++ b/sys/dev/ic/com_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_subr.c,v 1.6 2006/05/30 21:31:57 fkr Exp $ */ +/* $OpenBSD: com_subr.c,v 1.7 2006/07/31 11:06:30 mickey Exp $ */ /* * Copyright (c) 1997 - 1999, Jason Downs. All rights reserved. @@ -173,6 +173,10 @@ com_attach_subr(sc) /* Attachment driver presets COM_UART_PXA2X0. */ if (sc->sc_uarttype != COM_UART_PXA2X0) #endif +#ifdef COM_UART_OX16C950 + /* Attachment driver presets COM_UART_OX16C950. */ + if (sc->sc_uarttype != COM_UART_OX16C950) +#endif switch(bus_space_read_1(iot, ioh, com_iir) >> 6) { case 0: sc->sc_uarttype = COM_UART_16450; @@ -307,6 +311,13 @@ com_attach_subr(sc) SET(sc->sc_hwflags, COM_HW_FIFO); sc->sc_fifolen = 128; break; +#ifdef COM_UART_OX16C950 + case COM_UART_OX16C950: + printf(": ox16c950 (rev %d), 128 byte fifo\n", sc->sc_uartrev); + SET(sc->sc_hwflags, COM_HW_FIFO); + sc->sc_fifolen = 128; + break; +#endif #endif default: panic("comattach: bad fifo type"); |