lkml.org 
[lkml]   [2000]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [ot] resetting keyboard via keyboard contoller.
Date
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.051 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site