Re: [ot] resetting keyboard via keyboard contoller.

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Sep 24 2000 - 19:39:49 EST


On Sun, 24 Sep 2000 19:04:11 -0400 (EDT),
Adam <adam@cfar.umd.edu> wrote:
> Looking at kernel sources it seems to me, that reset of
> keyboard would be
>
> outp(0x60,0xFF);

static void
kdb_kbdsend(unsigned char byte)
{
       while (inb(KBD_STATUS_REG) & KBD_STAT_IBF)
               ;
       outb(byte, KBD_DATA_REG);
}

static void
kdb_toggleled(int led)
{
       static int leds = 0;

       leds ^= led;

       kdb_kbdsend(KBD_CMD_SET_LEDS);
       kdb_kbdsend((unsigned char)leds);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:13 EST