1#ifndef KEYBOARD_H 2#define KEYBOARD_H 3 4 5#include <SupportDefs.h> 6 7 8union key { 9 uint16 ax; 10 struct { 11 uint8 ascii; 12 uint8 bios; 13 } code; 14}; 15 16#define BIOS_KEY_UP 0x48 17#define BIOS_KEY_DOWN 0x50 18#define BIOS_KEY_LEFT 0x4b 19#define BIOS_KEY_RIGHT 0x4d 20#define BIOS_KEY_HOME 0x47 21#define BIOS_KEY_END 0x4f 22#define BIOS_KEY_PAGE_UP 0x49 23#define BIOS_KEY_PAGE_DOWN 0x51 24 25#ifdef __cplusplus 26extern "C" { 27#endif 28 29extern void clear_key_buffer(void); 30extern union key wait_for_key(void); 31extern uint32 check_for_boot_keys(void); 32 33#ifdef __cplusplus 34} 35#endif 36 37#endif /* KEYBOARD_H */ 38