KBSTATP
(inb(IO_KBD + KBSTATP) == 0xff && inb(IO_KBD + KBDATAP) == 0xff)) {
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_DIB)
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_DIB)
if (bus_space_read_1(iot, ioh, KBSTATP) &
if (bus_space_read_1(iot, ioh, KBSTATP) & (KBS_PERR | KBS_TERR)) {
if (!(bus_space_read_1(iot, ioh, KBSTATP) & KBS_DIB)) {
if (!(bus_space_read_1(iot, ioh, KBSTATP) & KBS_DIB)) {
if ((bus_space_read_1(iot, ioh, KBSTATP) & KBS_OCMD) == 0)
if (bus_space_read_1(iot, ioh, KBSTATP) & KBS_OCMD) {
if ((bus_space_read_1(iot, ioh, KBSTATP) & KBS_OCMD)) {
stat = bus_space_read_1(iot, ioh, KBSTATP);
while (bus_space_read_1(t->t_iot, t->t_ioh_d, KBSTATP) & KBS_DIB) {
while (bus_space_read_1(t->t_iot, t->t_ioh_d, KBSTATP) & KBS_DIB) {
(inb(IO_KBD + KBSTATP) == 0xff && inb(IO_KBD + KBDATAP) == 0xff)) {
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_DIB)
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_IBF);
while (inb(IO_KBD + KBSTATP) & KBS_DIB)