1 #ifndef PLATFORM_KBD_H 2 #define PLATFORM_KBD_H 3 // plaform specific keyboard defines, see core/kbd_common.c for documentation 4 // platform code handles reading, updating physw 5 #define KBD_CUSTOM_UPDATE_KEY_STATE 1 6 #define KBD_CUSTOM_UPDATE_PHYSW_BITS 1 7 #define KBD_USB_OVERRIDE_FUNC 1 8 9 // key masks, used for press, release 10 #define KEYS_MASK0 0x00000000 11 #define KEYS_MASK1 0x00002FFE 12 #define KEYS_MASK2 0x00000000 13 14 15 // PHYSW_BITS is custom, but this is used for get_usb_bit 16 #define USB_MASK 0x40 17 18 // MMIO to read USB +5v directly, for get_usb_bit 19 #define USB_MMIO 0xc0220204 20 #endif