// SPDX-License-Identifier: GPL-2.0 /* * Serial port routines for use during early boot reporting. This code is * included from both the compressed kernel and the regular kernel. */ #include "boot.h" #define DEFAULT_SERIAL_PORT … #define DLAB … #define TXR … #define RXR … #define IER … #define IIR … #define FCR … #define LCR … #define MCR … #define LSR … #define MSR … #define DLL … #define DLH … #define DEFAULT_BAUD … static void early_serial_init(int port, int baud) { … } static void parse_earlyprintk(void) { … } #define BASE_BAUD … static unsigned int probe_baud(int port) { … } static void parse_console_uart8250(void) { … } void console_init(void) { … }