blob: 62b3bb13120b21718a7d59c1a91bbc18788b663b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _IPXE_KEYMAP_H
#define _IPXE_KEYMAP_H
/**
* @file
*
* Keyboard mappings
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <ipxe/tables.h>
/** A keyboard mapping */
struct key_mapping {
/** Character read from keyboard */
uint8_t from;
/** Character to be used instead */
uint8_t to;
} __attribute__ (( packed ));
/** Keyboard mapping table */
#define KEYMAP __table ( struct key_mapping, "keymap" )
/** Define a keyboard mapping */
#define __keymap __table_entry ( KEYMAP, 01 )
extern unsigned int key_remap ( unsigned int character );
#endif /* _IPXE_KEYMAP_H */
|