iPXE
keymap.h
Go to the documentation of this file.
00001 #ifndef _IPXE_KEYMAP_H
00002 #define _IPXE_KEYMAP_H
00003 
00004 /**
00005  * @file
00006  *
00007  * Keyboard mappings
00008  *
00009  */
00010 
00011 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00012 
00013 #include <stdint.h>
00014 #include <ipxe/tables.h>
00015 
00016 /** A keyboard mapping */
00017 struct key_mapping {
00018         /** Character read from keyboard */
00019         uint8_t from;
00020         /** Character to be used instead */
00021         uint8_t to;
00022 } __attribute__ (( packed ));
00023 
00024 /** Keyboard mapping table */
00025 #define KEYMAP __table ( struct key_mapping, "keymap" )
00026 
00027 /** Define a keyboard mapping */
00028 #define __keymap __table_entry ( KEYMAP, 01 )
00029 
00030 #endif /* _IPXE_KEYMAP_H */