Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 1996 14:44:07 -0700 (PDT)
From:      Bruce Evans <bde>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/i386/isa/pcvt pcvt_kbd.c
Message-ID:  <199610142144.OAA27669@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         96/10/14 14:44:07

  Modified:    sys/i386/isa/pcvt  pcvt_kbd.c
  Log:
  Fixed setting of the keyboard LEDs.  For some keyboards and/or keyboard
  controllers, it is an error to issue a command before the keyboard
  has had time to reply to the previous command.  Setting the LEDs
  involves issueing 2 commands, so it never worked on these keyboards.
  
  Fixed resetting of keyboard.  It is possible for unprocessed
  scancodes to be present when the reset routine is called.  This
  usually occurs after switching from one console driver to another
  in userconfig.  pcvt and syscons attempt to flush any stale scancodes,
  but sometimes fail to do so because keyboard and/or keyboard
  controller takes a long time to send the scancodes after reset
  (scancodes are apparently not flushed by reset!).  syscons handles
  this later by not checking for errors at strategic places, but pcvt
  was confused.
  
  Use an impossible initial and failure mode setting for the LEDs
  so that the LEDs always get set if they are possibly out of sync.
  
  Added missing spltty() in update_led().
  
  Revision  Changes    Path
  1.14      +69 -11    src/sys/i386/isa/pcvt/pcvt_kbd.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610142144.OAA27669>