Lines Matching refs:kbdc

92  * controller before kbdc, and all other devices, is probed, we
110 static int wait_while_controller_busy(atkbdc_softc_t *kbdc);
111 static int wait_for_data(atkbdc_softc_t *kbdc);
112 static int wait_for_kbd_data(atkbdc_softc_t *kbdc);
113 static int wait_for_kbd_ack(atkbdc_softc_t *kbdc);
114 static int wait_for_aux_data(atkbdc_softc_t *kbdc);
115 static int wait_for_aux_ack(atkbdc_softc_t *kbdc);
339 * perform I/O, call `kbdc_lock(kbdc, TRUE)' and proceed only if
341 * Call `kbdc_lock(kbdc, FALSE)' when necessary I/O operaion
415 wait_while_controller_busy(struct atkbdc_softc *kbdc)
421 retry = kbdc->retry;
423 while ((f = read_status(kbdc)) & KBDS_INPUT_BUFFER_FULL) {
426 addq(&kbdc->kbd, read_data(kbdc));
429 addq(&kbdc->aux, read_data(kbdc));
443 wait_for_data(struct atkbdc_softc *kbdc)
449 retry = kbdc->retry * 2;
451 while ((f = read_status(kbdc) & KBDS_ANY_BUFFER_FULL) == 0) {
462 wait_for_kbd_data(struct atkbdc_softc *kbdc)
468 retry = kbdc->retry * 2;
470 while ((f = read_status(kbdc) & KBDS_BUFFER_FULL)
474 addq(&kbdc->aux, read_data(kbdc));
489 wait_for_kbd_ack(struct atkbdc_softc *kbdc)
496 retry = kbdc->retry * 2;
499 if ((f = read_status(kbdc)) & KBDS_ANY_BUFFER_FULL) {
501 b = read_data(kbdc);
506 addq(&kbdc->kbd, b);
508 addq(&kbdc->aux, b);
518 wait_for_aux_data(struct atkbdc_softc *kbdc)
524 retry = kbdc->retry * 2;
526 while ((f = read_status(kbdc) & KBDS_BUFFER_FULL)
530 addq(&kbdc->kbd, read_data(kbdc));
545 wait_for_aux_ack(struct atkbdc_softc *kbdc)
552 retry = kbdc->retry * 2;
555 if ((f = read_status(kbdc)) & KBDS_ANY_BUFFER_FULL) {
557 b = read_data(kbdc);
562 addq(&kbdc->aux, b);
564 addq(&kbdc->kbd, b);
741 log(LOG_DEBUG, "kbdc: kbd q: %d calls, max %d chars, "
766 log(LOG_DEBUG, "kbdc: kbd q: %d calls, max %d chars, "
855 log(LOG_DEBUG, "kbdc: %d:%d char read (empty_kbd_buffer)\n", c1, c2);
894 log(LOG_DEBUG, "kbdc: %d:%d char read (empty_aux_buffer)\n", c1, c2);
941 log(LOG_DEBUG, "kbdc: %d:%d char read (empty_both_buffers)\n", c1, c2);
967 log(LOG_DEBUG, "kbdc: RESET_KBD return code:%04x\n", c);
982 log(LOG_DEBUG, "kbdc: RESET_KBD status:%04x\n", c);
1011 log(LOG_DEBUG, "kbdc: RESET_AUX return code:%04x\n", c);
1026 log(LOG_DEBUG, "kbdc: RESET_AUX status:%04x\n", c);
1032 log(LOG_DEBUG, "kbdc: RESET_AUX ID:%04x\n", c);
1063 log(LOG_DEBUG, "kbdc: DIAGNOSE status:%04x\n", c);
1089 log(LOG_DEBUG, "kbdc: TEST_KBD_PORT status:%04x\n", c);
1115 log(LOG_DEBUG, "kbdc: TEST_AUX_PORT status:%04x\n", c);
1162 log(LOG_DEBUG, "kbdc: new command byte:%04x (set_controller...)\n",