xref: /haiku/src/system/boot/platform/efi/efi_platform.h (revision 485b5cf8bc00ab5aaee5db81a91d135dc61d9cc3)
1 /*
2  * Copyright 2013, Fredrik Homlqvist, fredrik.holmqvist@gmail.com. All rights reserved.
3  * Copyright 2019-2020, Haiku, Inc. All rights reserved.
4  * Distributed under the terms of the MIT License.
5  *
6  * Authors:
7  * 		Alexander von Gluck IV <kallisti5@unixzen.com>
8  */
9 #ifndef EFI_PLATFORM_H
10 #define EFI_PLATFORM_H
11 
12 
13 #include <efi/system-table.h>
14 
15 
16 #define EFI_TEXT_ATTR(f,b)  ((f) | ((b) << 4))
17 
18 #define CHAR_NULL                       0x0000
19 #define CHAR_BACKSPACE                  0x0008
20 #define CHAR_TAB                        0x0009
21 #define CHAR_LINEFEED                   0x000A
22 #define CHAR_CARRIAGE_RETURN            0x000D
23 
24 #define SCAN_NULL                       0x0000
25 #define SCAN_UP                         0x0001
26 #define SCAN_DOWN                       0x0002
27 #define SCAN_RIGHT                      0x0003
28 #define SCAN_LEFT                       0x0004
29 #define SCAN_HOME                       0x0005
30 #define SCAN_END                        0x0006
31 #define SCAN_INSERT                     0x0007
32 #define SCAN_DELETE                     0x0008
33 #define SCAN_PAGE_UP                    0x0009
34 #define SCAN_PAGE_DOWN                  0x000A
35 #define SCAN_F1                         0x000B
36 #define SCAN_F2                         0x000C
37 #define SCAN_F3                         0x000D
38 #define SCAN_F4                         0x000E
39 #define SCAN_F5                         0x000F
40 #define SCAN_F6                         0x0010
41 #define SCAN_F7                         0x0011
42 #define SCAN_F8                         0x0012
43 #define SCAN_F9                         0x0013
44 #define SCAN_F10                        0x0014
45 #define SCAN_F11                        0x0015
46 #define SCAN_F12                        0x0016
47 #define SCAN_ESC                        0x0017
48 
49 
50 extern const efi_system_table		*kSystemTable;
51 extern const efi_boot_services		*kBootServices;
52 extern const efi_runtime_services	*kRuntimeServices;
53 extern efi_handle kImage;
54 
55 #endif	/* EFI_PLATFORM_H */
56