Lines Matching refs:chip
208 struct txcom_chip *chip;
222 chip = sc->sc_chip;
223 tc = chip->sc_tc = ua->ua_tc;
224 slot = chip->sc_slot = ua->ua_slot;
227 txcom_dump(chip);
230 txcom_reset(chip);
241 if (ISSET(chip->sc_hwflags, TXCOM_HW_CONSOLE)) {
307 txcom_reset(struct txcom_chip *chip)
313 tc = chip->sc_tc;
314 slot = chip->sc_slot;
327 txcom_enable(struct txcom_chip *chip, bool console)
333 tc = chip->sc_tc;
334 slot = chip->sc_slot;
380 txcom_disable(struct txcom_chip *chip)
386 tc = chip->sc_tc;
387 slot = chip->sc_slot;
405 __txcom_txbufready(struct txcom_chip *chip, int retry)
407 tx_chipset_tag_t tc = chip->sc_tc;
408 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot);
422 struct txcom_chip *chip = sc->sc_chip;
423 tx_chipset_tag_t tc = chip->sc_tc;
427 ofs = TX39_UARTCTRL1_REG(chip->sc_slot);
469 struct txcom_chip *chip = &txcom_chip;
470 tx_chipset_tag_t tc = chip->sc_tc;
476 __txcom_txbufready(chip, -1);
478 tx_conf_write(tc, TX39_UARTTXHOLD_REG(chip->sc_slot),
481 __txcom_txbufready(chip, -1);
492 txcom_setmode(struct txcom_chip *chip)
494 tcflag_t cflag = chip->sc_cflag;
495 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot);
498 reg = tx_conf_read(chip->sc_tc, ofs);
500 tx_conf_write(chip->sc_tc, ofs, reg);
531 tx_conf_write(chip->sc_tc, ofs, reg);
535 txcom_setbaudrate(struct txcom_chip *chip)
538 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot);
541 if (chip->sc_speed == 0)
545 DPRINTF("%d\n", chip->sc_speed);
547 reg1 = tx_conf_read(chip->sc_tc, ofs);
549 tx_conf_write(chip->sc_tc, ofs, reg1);
551 baudrate = TX39_UARTCLOCKHZ / (chip->sc_speed * 16) - 1;
554 tx_conf_write(chip->sc_tc, TX39_UARTCTRL2_REG(chip->sc_slot), reg);
557 tx_conf_write(chip->sc_tc, ofs, reg1);
588 struct txcom_chip *chip = sc->sc_chip;
590 tx_conf_write(chip->sc_tc, TX39_UARTTXHOLD_REG(chip->sc_slot),
597 struct txcom_chip *chip = sc->sc_chip;
598 tx_chipset_tag_t tc = chip->sc_tc;
599 int slot = chip->sc_slot;
695 struct txcom_chip *chip = sc->sc_chip;
699 tx_conf_read(chip->sc_tc,
700 TX39_UARTRXHOLD_REG(chip->sc_slot)));
744 struct txcom_chip *chip = sc->sc_chip;
745 tx_chipset_tag_t tc = chip->sc_tc;
748 tx_conf_write(tc, TX39_UARTTXHOLD_REG(chip->sc_slot),
783 struct txcom_chip *chip;
791 chip = sc->sc_chip;
812 if (ISSET(chip->sc_hwflags, TXCOM_HW_CONSOLE)) {
813 t.c_ospeed = chip->sc_speed;
814 t.c_cflag = chip->sc_cflag;
820 if (ISSET(chip->sc_swflags, TIOCFLAG_CLOCAL))
822 if (ISSET(chip->sc_swflags, TIOCFLAG_CRTSCTS))
824 if (ISSET(chip->sc_swflags, TIOCFLAG_MDMBUF))
1024 struct txcom_chip *chip;
1030 chip = sc->sc_chip;
1031 tc = chip->sc_tc;
1032 slot = chip->sc_slot;
1036 if (!__txcom_txbufready(chip, 0) ||
1065 struct txcom_chip *chip;
1084 chip = sc->sc_chip;
1089 if (ISSET(chip->sc_swflags, TIOCFLAG_SOFTCAR) ||
1090 ISSET(chip->sc_hwflags, TXCOM_HW_CONSOLE)) {
1101 chip->sc_dcd = 0;
1103 chip->sc_dcd = 1;
1115 chip = sc->sc_chip;
1116 chip->sc_speed = ospeed;
1117 chip->sc_cflag = t->c_cflag;
1119 txcom_setmode(chip);
1120 txcom_setbaudrate(chip);
1124 tp->t_ospeed = chip->sc_speed;
1125 tp->t_cflag = chip->sc_cflag;
1132 (void) (*tp->t_linesw->l_modem)(tp, chip->sc_dcd);
1138 if (!ISSET(chip->sc_cflag, CHWFLOW)) {
1152 struct txcom_chip *chip = sc->sc_chip;
1157 if (modem && chip->sc_dcd)
1158 (void) (*tp->t_linesw->l_modem)(tp, chip->sc_dcd);
1168 struct txcom_chip *chip = sc->sc_chip;
1173 if (chip->sc_msr_cts) {
1175 chip->sc_tx_stopped = 1;
1177 chip->sc_tx_stopped = 0;
1187 txcom_dump(struct txcom_chip *chip)
1189 tx_chipset_tag_t tc = chip->sc_tc;
1190 int slot = chip->sc_slot;