iPXE
console.h
Go to the documentation of this file.
1 #ifndef CONFIG_CONSOLE_H
2 #define CONFIG_CONSOLE_H
3 
4 /** @file
5  *
6  * Console configuration
7  *
8  * These options specify the console types that iPXE will use for
9  * interaction with the user.
10  *
11  */
12 
13 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
14 FILE_SECBOOT ( PERMITTED );
15 
16 #include <config/defaults.h>
17 
18 /*****************************************************************************
19  *
20  * Console types
21  *
22  */
23 
24 /* Console types supported on all platforms */
25 #define CONSOLE_FRAMEBUFFER /* Graphical framebuffer console */
26 #define CONSOLE_SYSLOG /* Syslog console */
27 #define CONSOLE_SYSLOGS /* Encrypted syslog console */
28 
29 /* Console types supported only on systems with serial ports */
30 #if ! defined ( SERIAL_NULL )
31  //#define CONSOLE_SERIAL /* Serial port console */
32 #endif
33 
34 /* Console types supported only on BIOS platforms */
35 #if defined ( PLATFORM_pcbios )
36  //#define CONSOLE_INT13 /* INT13 disk log console */
37  #define CONSOLE_PCBIOS /* Default BIOS console */
38 #endif
39 
40 /* Console types supported only on EFI platforms */
41 #if defined ( PLATFORM_efi )
42  #define CONSOLE_EFI /* Default EFI console */
43 #endif
44 
45 /* Console types supported only on RISC-V SBI platforms */
46 #if defined ( PLATFORM_sbi )
47  #define CONSOLE_SBI /* RISC-V SBI debug console */
48 #endif
49 
50 /* Console types supported only on Linux platforms */
51 #if defined ( PLATFORM_linux )
52  #define CONSOLE_LINUX /* Default Linux console */
53 #endif
54 
55 /* Console types supported only on x86 CPUs */
56 #if defined ( __i386__ ) || defined ( __x86_64__ )
57  //#define CONSOLE_DEBUGCON /* Bochs/QEMU/KVM debug port console */
58  //#define CONSOLE_DIRECT_VGA /* Direct access to VGA card */
59  //#define CONSOLE_PC_KBD /* Direct access to PC keyboard */
60  //#define CONSOLE_VMWARE /* VMware logfile console */
61 #endif
62 
63 /* Enable serial console on platforms that are typically headless */
64 #if defined ( CONSOLE_SBI )
65  #define CONSOLE_SERIAL
66 #endif
67 
68 /* Disable console types not historically included in BIOS builds */
69 #if defined ( PLATFORM_pcbios )
70  #undef CONSOLE_FRAMEBUFFER
71  #undef CONSOLE_SYSLOG
72  #undef CONSOLE_SYSLOGS
73 #endif
74 
75 /*****************************************************************************
76  *
77  * Keyboard maps
78  *
79  * See hci/keymap/keymap_*.c for available keyboard maps.
80  *
81  */
82 
83 #define KEYBOARD_MAP us /* Default US keyboard map */
84 //#define KEYBOARD_MAP dynamic /* Runtime selectable keyboard map */
85 
86 /*****************************************************************************
87  *
88  * Log levels
89  *
90  * Control which syslog() messages are generated. Note that this is
91  * not related in any way to CONSOLE_SYSLOG.
92  *
93  */
94 
95 #define LOG_LEVEL LOG_NONE
96 
97 #include <config/named.h>
98 #include NAMED_CONFIG(console.h)
99 #include <config/local/console.h>
100 #include LOCAL_NAMED_CONFIG(console.h)
101 
102 #endif /* CONFIG_CONSOLE_H */
Named configurations.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
FILE_SECBOOT(PERMITTED)