mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
On platforms where we expect ACPI tables to exist, use the serial port defined by the ACPI Serial Port Console Redirection (SPCR) table by default, falling back to the fixed serial port defined at build time. Signed-off-by: Michael Brown <mcb30@ipxe.org>
44 lines
1015 B
C
44 lines
1015 B
C
#ifndef CONFIG_SERIAL_H
|
|
#define CONFIG_SERIAL_H
|
|
|
|
/** @file
|
|
*
|
|
* Serial port configuration
|
|
*
|
|
* These options affect the operation of the serial console. They
|
|
* take effect only if the serial console is included using the
|
|
* CONSOLE_SERIAL option.
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#include <config/defaults.h>
|
|
|
|
#define COMCONSOLE COM1 /* I/O port address */
|
|
|
|
/* Keep settings from a previous user of the serial port (e.g. lilo or
|
|
* LinuxBIOS), ignoring COMSPEED.
|
|
*/
|
|
#undef COMPRESERVE
|
|
|
|
#ifndef COMPRESERVE
|
|
#define COMSPEED 115200 /* Baud rate */
|
|
#endif
|
|
|
|
/* Uncomment these to ignore the ACPI SPCR table (if present) */
|
|
//#undef SERIAL_SPCR
|
|
//#define SERIAL_FIXED
|
|
|
|
/* Early UART configuration (for bare metal prefix debugging only) */
|
|
//#define EARLY_UART_MODEL 8250
|
|
//#define EARLY_UART_REG_BASE 0x10000000
|
|
//#define EARLY_UART_REG_SHIFT 0
|
|
|
|
#include <config/named.h>
|
|
#include NAMED_CONFIG(serial.h)
|
|
#include <config/local/serial.h>
|
|
#include LOCAL_NAMED_CONFIG(serial.h)
|
|
|
|
#endif /* CONFIG_SERIAL_H */
|