com_lcr
COM_WRITE(sc, com_lcr, LCR_DLAB);
COM_WRITE(sc, com_lcr, LCR_8BITS | LCR_PNONE | LCR_STOPB);
bus_space_write_1(iot, ioh, com_lcr, LCR_DLAB);
bus_space_write_1(iot, ioh, com_lcr, LCR_8BITS);
lcr = com_read_reg(sc, com_lcr);
com_write_reg(sc, com_lcr, LCR_EFR);
com_write_reg(sc, com_lcr, 0);
com_write_reg(sc, com_lcr, lcr | LCR_DLAB);
com_write_reg(sc, com_lcr, LCR_EFR);
com_write_reg(sc, com_lcr, lcr | LCR_DLAB);
com_write_reg(sc, com_lcr, lcr | LCR_DLAB);
com_write_reg(sc, com_lcr, 0);
com_write_reg(sc, com_lcr, lcr);
bus_space_write_1(iot, ioh, com_lcr, LCR_8BITS);
if ((bus_space_read_1(iot, ioh, com_lcr) != LCR_8BITS) ||
com_write_reg(sc, com_lcr, LCR_DLAB);
com_write_reg(sc, com_lcr, LCR_PNONE | LCR_8BITS);
com_write_reg(sc, com_lcr, LCR_EFR);
com_write_reg(sc, com_lcr, 0);
lcr = com_read_reg(sc, com_lcr);
com_write_reg(sc, com_lcr,
com_write_reg(sc, com_lcr, lcr);
com_write_reg(sc, com_lcr, sc->sc_lcr);
com_write_reg(sc, com_lcr, LCR_EFR);
com_write_reg(sc, com_lcr, 0);
com_write_reg(sc, com_lcr, LCR_EFR);
com_write_reg(sc, com_lcr, 0);
com_write_reg(sc, com_lcr, sc->sc_lcr | LCR_DLAB);
com_write_reg(sc, com_lcr, sc->sc_lcr);
com_write_reg(sc, com_lcr, sc->sc_lcr);
lcr = com_read_reg(sc, com_lcr);
com_write_reg(sc, com_lcr,
com_write_reg(sc, com_lcr, lcr);
com_write_reg(sc, com_lcr, sc->sc_lcr);
com_write_reg(sc, com_lcr, sc->sc_lcr);
com_write_reg(sc, com_lcr, lcr | LCR_DLAB);
com_write_reg(sc, com_lcr, lcr);
com_write_reg(sc, com_lcr, lcr);
com_write_reg(sc, com_lcr,
com_write_reg(sc, com_lcr, lcr);
com_write_reg(sc, com_lcr, lcr);