version 1.301.4.2, 2012/05/23 10:07:56 |
version 1.301.4.3, 2013/01/23 00:06:06 |
Line 379 com_attach_subr(struct com_softc *sc) |
|
Line 379 com_attach_subr(struct com_softc *sc) |
|
u_int8_t lcr; |
u_int8_t lcr; |
#endif |
#endif |
const char *fifo_msg = NULL; |
const char *fifo_msg = NULL; |
|
prop_dictionary_t dict; |
|
bool is_console = true; |
|
|
aprint_naive("\n"); |
aprint_naive("\n"); |
|
|
|
dict = device_properties(sc->sc_dev); |
|
prop_dictionary_get_bool(dict, "is_console", &is_console); |
|
|
callout_init(&sc->sc_diag_callout, 0); |
callout_init(&sc->sc_diag_callout, 0); |
mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_HIGH); |
mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_HIGH); |
|
|
Line 402 com_attach_subr(struct com_softc *sc) |
|
Line 407 com_attach_subr(struct com_softc *sc) |
|
(u_long)comcons_info.regs.cr_iobase); |
(u_long)comcons_info.regs.cr_iobase); |
} |
} |
|
|
|
|
/* Make sure the console is always "hardwired". */ |
/* Make sure the console is always "hardwired". */ |
delay(10000); /* wait for output to finish */ |
delay(10000); /* wait for output to finish */ |
SET(sc->sc_hwflags, COM_HW_CONSOLE); |
if (is_console) { |
|
SET(sc->sc_hwflags, COM_HW_CONSOLE); |
|
} |
|
|
SET(sc->sc_swflags, TIOCFLAG_SOFTCAR); |
SET(sc->sc_swflags, TIOCFLAG_SOFTCAR); |
} |
} |
|
|