projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sound blaster code doesn't work yet
[bootcensus]
/
src
/
keyb.c
diff --git
a/src/keyb.c
b/src/keyb.c
index
0b61871
..
3e86f43
100644
(file)
--- a/
src/keyb.c
+++ b/
src/keyb.c
@@
-22,6
+22,11
@@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "asmops.h"
#include "kbregs.h"
#include "asmops.h"
#include "kbregs.h"
+#define delay7us() \
+ do { \
+ iodelay(); iodelay(); iodelay(); iodelay(); \
+ iodelay(); iodelay(); iodelay(); \
+ } while(0)
/* table with rough translations from set 1 scancodes to ASCII-ish */
static int scantbl[] = {
/* table with rough translations from set 1 scancodes to ASCII-ish */
static int scantbl[] = {
@@
-156,6
+161,7
@@
void kb_send_data(unsigned char data)
unsigned char kb_read_data(void)
{
kb_wait_read();
unsigned char kb_read_data(void)
{
kb_wait_read();
+ delay7us();
return inb(KB_DATA_PORT);
}
return inb(KB_DATA_PORT);
}