diff options
| author | Michael Brown | 2025-06-17 16:44:12 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-06-17 16:44:12 +0200 |
| commit | 60e167c00b138fdb162e7b2192e9cbb196ed3cbd (patch) | |
| tree | 1e6ffb356005986887935a951a9b0a4040b2df35 /src/include | |
| parent | [riscv] Write SBI console output to early UART, if enabled (diff) | |
| download | ipxe-60e167c00b138fdb162e7b2192e9cbb196ed3cbd.tar.gz ipxe-60e167c00b138fdb162e7b2192e9cbb196ed3cbd.tar.xz ipxe-60e167c00b138fdb162e7b2192e9cbb196ed3cbd.zip | |
[uart] Remove ability to use frame formats other than 8n1
In the context of serial consoles, the use of any frame formats other
than the standard 8 data bits, no parity, and one stop bit is so rare
as to be nonexistent.
Remove the almost certainly unused support for custom frame formats.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/gdbserial.h | 5 | ||||
| -rw-r--r-- | src/include/ipxe/uart.h | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/include/ipxe/gdbserial.h b/src/include/ipxe/gdbserial.h index e1040c94e..166eb4f0d 100644 --- a/src/include/ipxe/gdbserial.h +++ b/src/include/ipxe/gdbserial.h @@ -9,12 +9,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); -#include <stdint.h> - struct gdb_transport; extern struct gdb_transport * gdbserial_configure ( unsigned int port, - unsigned int baud, - uint8_t lcr ); + unsigned int baud ); #endif /* _IPXE_GDBSERIAL_H */ diff --git a/src/include/ipxe/uart.h b/src/include/ipxe/uart.h index c63eae615..86583ee2f 100644 --- a/src/include/ipxe/uart.h +++ b/src/include/ipxe/uart.h @@ -82,8 +82,6 @@ struct uart { void *base; /** Baud rate divisor */ uint16_t divisor; - /** Line control register */ - uint8_t lcr; }; /** Symbolic names for port indexes */ @@ -127,6 +125,6 @@ static inline uint8_t uart_receive ( struct uart *uart ) { extern void uart_transmit ( struct uart *uart, uint8_t data ); extern void uart_flush ( struct uart *uart ); extern int uart_exists ( struct uart *uart ); -extern int uart_init ( struct uart *uart, unsigned int baud, uint8_t lcr ); +extern int uart_init ( struct uart *uart, unsigned int baud ); #endif /* _IPXE_UART_H */ |
