You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keymap.h 554B

123456789101112131415161718192021222324252627282930
  1. #ifndef _IPXE_KEYMAP_H
  2. #define _IPXE_KEYMAP_H
  3. /**
  4. * @file
  5. *
  6. * Keyboard mappings
  7. *
  8. */
  9. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  10. #include <stdint.h>
  11. #include <ipxe/tables.h>
  12. /** A keyboard mapping */
  13. struct key_mapping {
  14. /** Character read from keyboard */
  15. uint8_t from;
  16. /** Character to be used instead */
  17. uint8_t to;
  18. } __attribute__ (( packed ));
  19. /** Keyboard mapping table */
  20. #define KEYMAP __table ( struct key_mapping, "keymap" )
  21. /** Define a keyboard mapping */
  22. #define __keymap __table_entry ( KEYMAP, 01 )
  23. #endif /* _IPXE_KEYMAP_H */