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
13FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
14FILE_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#define CONSOLE_DMESG /* In-memory ring buffer console */
29//#define CONSOLE_DISKLOG /* Disk log console */
30
31/* Console types supported only on systems with serial ports */
32#if ! defined ( SERIAL_NULL )
33 //#define CONSOLE_SERIAL /* Serial port console */
34#endif
35
36/* Console types supported only on BIOS platforms */
37#if defined ( PLATFORM_pcbios )
38 #define CONSOLE_PCBIOS /* Default BIOS console */
39#endif
40
41/* Console types supported only on EFI platforms */
42#if defined ( PLATFORM_efi )
43 #define CONSOLE_EFI /* Default EFI console */
44#endif
45
46/* Console types supported only on RISC-V SBI platforms */
47#if defined ( PLATFORM_sbi )
48 #define CONSOLE_SBI /* RISC-V SBI debug console */
49#endif
50
51/* Console types supported only on Linux platforms */
52#if defined ( PLATFORM_linux )
53 #define CONSOLE_LINUX /* Default Linux console */
54#endif
55
56/* Console types supported only on x86 CPUs */
57#if defined ( __i386__ ) || defined ( __x86_64__ )
58 //#define CONSOLE_DEBUGCON /* Bochs/QEMU/KVM debug port console */
59 //#define CONSOLE_DIRECT_VGA /* Direct access to VGA card */
60 //#define CONSOLE_PC_KBD /* Direct access to PC keyboard */
61 //#define CONSOLE_VMWARE /* VMware logfile console */
62#endif
63
64/* Enable serial console on platforms that are typically headless */
65#if defined ( CONSOLE_SBI )
66 #define CONSOLE_SERIAL
67#endif
68
69/* Disable console types not historically included in BIOS builds */
70#if defined ( PLATFORM_pcbios )
71 #undef CONSOLE_FRAMEBUFFER
72 #undef CONSOLE_SYSLOG
73 #undef CONSOLE_SYSLOGS
74#endif
75
76/*****************************************************************************
77 *
78 * Keyboard maps
79 *
80 * See hci/keymap/keymap_*.c for available keyboard maps.
81 *
82 */
83
84#define KEYBOARD_MAP us /* Default US keyboard map */
85//#define KEYBOARD_MAP dynamic /* Runtime selectable keyboard map */
86
87/* Use dynamic keyboard by default on EFI platforms */
88#if defined ( PLATFORM_efi )
89 #undef KEYBOARD_MAP
90 #define KEYBOARD_MAP dynamic
91#endif
92
93/*****************************************************************************
94 *
95 * Log levels
96 *
97 * Control which syslog() messages are generated. Note that this is
98 * not related in any way to CONSOLE_SYSLOG.
99 *
100 */
101
102#define LOG_LEVEL LOG_NONE
103
104#include <config/named.h>
105#include NAMED_CONFIG(console.h)
106#include <config/local/console.h>
107#include LOCAL_NAMED_CONFIG(console.h)
108
109#endif /* CONFIG_CONSOLE_H */
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:921
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:951
Named configurations.