Subject: Re: Gateway 2000 keyboard vs ddb
To: None <mike.long@analog.com>
From: Charles M. Hannum <mycroft@ai.mit.edu>
List: port-i386
Date: 03/21/1995 13:23:57
I used to use `delay(6)' in pccons, because that's what someone
recommended, and it seemed to fix the problem of the keyboard always
hanging on boot on Gateway machines.

However, delay() isn't really accurate for values that small.  I'd
suggest instead changing it to something like pccons now uses:

#define	KBD_DELAY \
	{ u_char x = inb(0x84); } \
	{ u_char x = inb(0x84); } \
	{ u_char x = inb(0x84); } \
	{ u_char x = inb(0x84); }

If the 7us timing requirement is correct, then you may need as many as
6 inb()s.