iPXE
keymap.h
Go to the documentation of this file.
1 #ifndef _IPXE_KEYMAP_H
2 #define _IPXE_KEYMAP_H
3 
4 /**
5  * @file
6  *
7  * Keyboard mappings
8  *
9  */
10 
11 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
12 
13 #include <stdint.h>
14 #include <ipxe/tables.h>
15 
16 /** A keyboard mapping */
17 struct key_mapping {
18  /** Character read from keyboard */
20  /** Character to be used instead */
22 } __attribute__ (( packed ));
23 
24 /** Keyboard mapping table */
25 #define KEYMAP __table ( struct key_mapping, "keymap" )
26 
27 /** Define a keyboard mapping */
28 #define __keymap __table_entry ( KEYMAP, 01 )
29 
30 #endif /* _IPXE_KEYMAP_H */
#define __attribute__(x)
Definition: compiler.h:10
uint8_t from
Character read from keyboard.
Definition: keymap.h:19
A keyboard mapping.
Definition: keymap.h:17
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint8_t to
Character to be used instead.
Definition: keymap.h:21
unsigned char uint8_t
Definition: stdint.h:10
Linker tables.