KBSTATP
while ((inb(KBSTATP) & KBINRDY) == 0)
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0xAA);
while ((inb(KBSTATP) & KBINRDY) == 0) /* wait input ready */
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0x60);
while (inb(KBSTATP) & KBOUTRDY)
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0xAE);
return ((inb(KBSTATP) & KBINRDY) != 0);
if ((inb(KBSTATP) & KBINRDY) == 0)
} else while ((inb(KBSTATP) & KBINRDY) == 0)
while ((inb(KBSTATP) & KBINRDY) == 0)
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0xAA);
while ((inb(KBSTATP) & KBINRDY) == 0) /* wait input ready */
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0x60);
while (inb(KBSTATP) & KBOUTRDY)
while (inb(KBSTATP) & KBOUTRDY)
outb(KBSTATP, 0xAE);
if ((inb(KBSTATP) & KBINRDY) == 0)
} else while ((inb(KBSTATP) & KBINRDY) == 0)