2008-10-12 02:30:31 +01:00
|
|
|
#ifndef CONFIG_CONSOLE_H
|
|
|
|
|
#define CONFIG_CONSOLE_H
|
|
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
|
*
|
|
|
|
|
* Console configuration
|
|
|
|
|
*
|
2015-10-15 17:50:12 +01:00
|
|
|
* These options specify the console types that iPXE will use for
|
2008-10-12 02:30:31 +01:00
|
|
|
* interaction with the user.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2015-03-02 11:54:40 +00:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
2026-01-14 13:25:34 +00:00
|
|
|
FILE_SECBOOT ( PERMITTED );
|
2009-05-01 15:41:06 +01:00
|
|
|
|
2008-10-12 02:30:31 +01:00
|
|
|
#include <config/defaults.h>
|
|
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/*****************************************************************************
|
2015-10-15 17:50:12 +01:00
|
|
|
*
|
2026-01-16 16:52:40 +00:00
|
|
|
* Console types
|
2015-10-15 17:50:12 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/* Console types supported on all platforms */
|
2026-01-16 22:38:07 +00:00
|
|
|
#define CONSOLE_FRAMEBUFFER /* Graphical framebuffer console */
|
|
|
|
|
#define CONSOLE_SYSLOG /* Syslog console */
|
|
|
|
|
#define CONSOLE_SYSLOGS /* Encrypted syslog console */
|
2026-03-29 13:37:55 +01:00
|
|
|
//#define CONSOLE_DISKLOG /* Disk log console */
|
2015-10-15 17:50:12 +01:00
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/* Console types supported only on systems with serial ports */
|
|
|
|
|
#if ! defined ( SERIAL_NULL )
|
|
|
|
|
//#define CONSOLE_SERIAL /* Serial port console */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Console types supported only on BIOS platforms */
|
|
|
|
|
#if defined ( PLATFORM_pcbios )
|
|
|
|
|
#define CONSOLE_PCBIOS /* Default BIOS console */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Console types supported only on EFI platforms */
|
|
|
|
|
#if defined ( PLATFORM_efi )
|
|
|
|
|
#define CONSOLE_EFI /* Default EFI console */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Console types supported only on RISC-V SBI platforms */
|
|
|
|
|
#if defined ( PLATFORM_sbi )
|
|
|
|
|
#define CONSOLE_SBI /* RISC-V SBI debug console */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Console types supported only on Linux platforms */
|
|
|
|
|
#if defined ( PLATFORM_linux )
|
|
|
|
|
#define CONSOLE_LINUX /* Default Linux console */
|
|
|
|
|
#endif
|
2015-10-15 17:50:12 +01:00
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/* Console types supported only on x86 CPUs */
|
|
|
|
|
#if defined ( __i386__ ) || defined ( __x86_64__ )
|
|
|
|
|
//#define CONSOLE_DEBUGCON /* Bochs/QEMU/KVM debug port console */
|
|
|
|
|
//#define CONSOLE_DIRECT_VGA /* Direct access to VGA card */
|
|
|
|
|
//#define CONSOLE_PC_KBD /* Direct access to PC keyboard */
|
|
|
|
|
//#define CONSOLE_VMWARE /* VMware logfile console */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Enable serial console on platforms that are typically headless */
|
|
|
|
|
#if defined ( CONSOLE_SBI )
|
|
|
|
|
#define CONSOLE_SERIAL
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-01-16 22:38:07 +00:00
|
|
|
/* Disable console types not historically included in BIOS builds */
|
|
|
|
|
#if defined ( PLATFORM_pcbios )
|
|
|
|
|
#undef CONSOLE_FRAMEBUFFER
|
|
|
|
|
#undef CONSOLE_SYSLOG
|
|
|
|
|
#undef CONSOLE_SYSLOGS
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/*****************************************************************************
|
2015-10-15 17:50:12 +01:00
|
|
|
*
|
2026-01-16 16:52:40 +00:00
|
|
|
* Keyboard maps
|
|
|
|
|
*
|
|
|
|
|
* See hci/keymap/keymap_*.c for available keyboard maps.
|
2015-10-15 17:50:12 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
#define KEYBOARD_MAP us /* Default US keyboard map */
|
|
|
|
|
//#define KEYBOARD_MAP dynamic /* Runtime selectable keyboard map */
|
2011-03-16 12:01:48 +00:00
|
|
|
|
2026-01-16 16:52:40 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* Log levels
|
|
|
|
|
*
|
|
|
|
|
* Control which syslog() messages are generated. Note that this is
|
|
|
|
|
* not related in any way to CONSOLE_SYSLOG.
|
2015-10-15 17:50:12 +01:00
|
|
|
*
|
|
|
|
|
*/
|
2026-01-16 16:52:40 +00:00
|
|
|
|
|
|
|
|
#define LOG_LEVEL LOG_NONE
|
2012-03-26 19:50:50 +01:00
|
|
|
|
2014-08-19 16:17:25 +01:00
|
|
|
#include <config/named.h>
|
|
|
|
|
#include NAMED_CONFIG(console.h)
|
2010-03-22 23:19:00 +01:00
|
|
|
#include <config/local/console.h>
|
2014-08-19 16:17:25 +01:00
|
|
|
#include LOCAL_NAMED_CONFIG(console.h)
|
2010-03-22 23:19:00 +01:00
|
|
|
|
2008-10-12 02:30:31 +01:00
|
|
|
#endif /* CONFIG_CONSOLE_H */
|