Handle ACKs, NACKs and restore state on booting

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-23 20:43:44 +02:00
parent 400ef90dba
commit f0b02c9c86
2 changed files with 88 additions and 29 deletions

View file

@ -28,6 +28,8 @@
#define KEYBOARD_AT_TRANSLATE 0x40
#define GRUB_AT_ACK 0xfa
#define GRUB_AT_NACK 0xfe
#define GRUB_AT_TRIES 5
#define KEYBOARD_ISMAKE(x) !((x) & 0x80)
#define KEYBOARD_ISREADY(x) ((x) & 0x01)