kernel - Implement CHECKTIMEOUT() abstraction
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 1 Nov 2010 02:36:11 +0000 (19:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 1 Nov 2010 02:36:11 +0000 (19:36 -0700)
commitd8129ed32f842ce396ec6ffef6c37ae4a258bcde
tree52b6b831813f06a6191ac50d9355f6104e97c9b1
parentb84c2783a7053a35b5c73f103d1014050588fd07
kernel - Implement CHECKTIMEOUT() abstraction

* Implement a CHECKTIMEOUT() abstraction which allows us to remove retry
  counts from low level device driver loops and replace them with a
  timeout polling routine.

* Use in the keyboard code so we no longer make assumptions on how long
  it takes to inb/outb the keyboard controller.  Some BIOSes do not have
  a keyboard controller at all and emulate the ports via SMI, which is
  much much slower than accessing a real port.
sys/dev/misc/kbd/atkbdc.c
sys/platform/pc32/include/clock.h
sys/platform/pc32/isa/clock.c
sys/platform/pc64/include/clock.h
sys/platform/pc64/isa/clock.c