summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/ipxe/keymap.h
blob: 9ac42a6b13e2fa54204fe2b4b074e42782c4c187 (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
#ifndef _IPXE_KEYMAP_H
#define _IPXE_KEYMAP_H

/**
 * @file
 *
 * Keyboard mappings
 *
 */

FILE_LICENCE ( GPL2_OR_LATER );

#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 )

#endif /* _IPXE_KEYMAP_H */