|
iPXE
|
ACPI Serial Port Console Redirection (SPCR) More...
#include <errno.h>#include <ipxe/serial.h>#include <ipxe/pci.h>#include <ipxe/ns16550.h>#include <ipxe/spcr.h>Go to the source code of this file.
Macros | |
| #define | SERIAL_PREFIX_spcr __spcr_ |
| #define | SPCR_BAUD_BASE 115200 |
| Base baud rate for SPCR divisors. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | spcr_16550 (struct spcr_table *spcr, struct uart *uart) |
| Configure 16550-based serial console. More... | |
| static struct uart * | spcr_console (void) |
| Identify default serial console. More... | |
| PROVIDE_SERIAL (spcr, default_serial_console, spcr_console) | |
Variables | |
| static struct uart | spcr_uart |
| SPCR-defined UART. More... | |
| static struct ns16550_uart | spcr_ns16550 |
| SPCR-defined 16550 UART. More... | |
| static const uint8_t | spcr_baud_divisor [SPCR_BAUD_MAX] |
| SPCR baud rate divisors. More... | |
ACPI Serial Port Console Redirection (SPCR)
Definition in file spcr.c.
| #define SPCR_BAUD_BASE 115200 |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Configure 16550-based serial console.
| spcr | SPCR table |
| uart | UART to configure |
| rc | Return status code |
Definition at line 76 of file spcr.c.
References acpi_ioremap(), spcr_table::base, ns16550_uart::base, spcr_table::clock, ns16550_uart::clock, DBGC, ENODEV, le32_to_cpu, NS16550_LEN, ns16550_operations, uart::op, uart::priv, and spcr_ns16550.
Referenced by spcr_console().
|
static |
Identify default serial console.
| uart | Default serial console UART, or NULL |
Definition at line 102 of file spcr.c.
References spcr_table::acpi, acpi, acpi_table(), acpi_address::address, spcr_table::base, uart::baud, spcr_table::baud, container_of, cpu_to_le16, DBGC, DBGC2, DBGC2_HDA, fixed_serial_console(), le16_to_cpu, le32_to_cpu, le64_to_cpu, acpi_header::length, offsetof, PCI_ANY_ID, spcr_table::pci_bus, spcr_table::pci_dev, spcr_table::pci_device_id, PCI_FMT, spcr_table::pci_func, spcr_table::pci_segment, spcr_table::pci_vendor_id, spcr_table::precise, rc, spcr_16550(), SPCR_BAUD_BASE, spcr_baud_divisor, SPCR_BAUD_MAX, SPCR_SIGNATURE, SPCR_TYPE_16450, SPCR_TYPE_16550, SPCR_TYPE_16550_GAS, spcr_uart, spcr_table::type, acpi_address::type, and typeof().
| PROVIDE_SERIAL | ( | spcr | , |
| default_serial_console | , | ||
| spcr_console | |||
| ) |
|
static |
SPCR-defined UART.
Definition at line 45 of file spcr.c.
Referenced by spcr_console().
|
static |
SPCR-defined 16550 UART.
Definition at line 51 of file spcr.c.
Referenced by spcr_16550().
|
static |
SPCR baud rate divisors.
Definition at line 59 of file spcr.c.
Referenced by spcr_console().
1.8.15