1 #ifndef PLATFORM_KBD_H 2 #define PLATFORM_KBD_H 3 4 // plaform specific keyboard defines, see core/kbd_common.c for documentation 5 #define KEYS_MASK0 (0x00013FFE) 6 #define KEYS_MASK1 (0x00000C00) 7 #define KEYS_MASK2 (0x00000000) 8 9 // from stubs_entry.S 10 #define SD_READONLY_FLAG 0x20000000 // Found @0xfc637ee0, levent 0x30a 11 #define SD_READONLY_IDX 1 12 #define USB_MASK 0x00800000 // Found @0xfc637f28, levent 0x302 13 #define USB_IDX 2 14 15 // HDMI hotplug, from watching physw_status and jumping pins 16 #define HDMI_HPD_FLAG 0x00000020 17 #define HDMI_HPD_IDX 2 18 19 // standard fw doesn't care about bat door 20 /* 21 #define BATTCOVER_FLAG 0x00400000 // Found @0xfc637f20, levent 0x305 22 #define BATTCOVER_IDX 2 23 */ 24 25 #endif