|
iPXE
|
Serial console. More...
Go to the source code of this file.
Macros | |
| #define | SERIAL_PREFIX_null __null_ |
| #define | SERIAL_INLINE(_subsys, _api_func) SINGLE_API_INLINE ( SERIAL_PREFIX_ ## _subsys, _api_func ) |
| Calculate static inline serial API function name. More... | |
| #define | PROVIDE_SERIAL(_subsys, _api_func, _func) PROVIDE_SINGLE_API ( SERIAL_PREFIX_ ## _subsys, _api_func, _func ) |
| Provide a serial API implementation. More... | |
| #define | PROVIDE_SERIAL_INLINE(_subsys, _api_func) PROVIDE_SINGLE_API_INLINE ( SERIAL_PREFIX_ ## _subsys, _api_func ) |
| Provide a static inline serial API implementation. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static __always_inline struct uart * | SERIAL_INLINE (null, default_serial_console)(void) |
| Get null serial console UART. More... | |
| struct uart * | default_serial_console (void) |
| Get serial console UART. More... | |
| struct uart * | fixed_serial_console (void) |
| Get fixed serial console UART. More... | |
Variables | |
| struct uart * | serial_console |
| Active serial console UART. More... | |
Serial console.
Definition in file serial.h.
| #define SERIAL_INLINE | ( | _subsys, | |
| _api_func | |||
| ) | SINGLE_API_INLINE ( SERIAL_PREFIX_ ## _subsys, _api_func ) |
| #define PROVIDE_SERIAL | ( | _subsys, | |
| _api_func, | |||
| _func | |||
| ) | PROVIDE_SINGLE_API ( SERIAL_PREFIX_ ## _subsys, _api_func, _func ) |
| #define PROVIDE_SERIAL_INLINE | ( | _subsys, | |
| _api_func | |||
| ) | PROVIDE_SINGLE_API_INLINE ( SERIAL_PREFIX_ ## _subsys, _api_func ) |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
| struct uart* default_serial_console | ( | void | ) |
Get serial console UART.
| uart | Serial console UART, or NULL |
Referenced by serial_init().
| struct uart* fixed_serial_console | ( | void | ) |
Get fixed serial console UART.
| uart | Serial console UART, or NULL |
Definition at line 76 of file serial.c.
References uart::baud, COMCONSOLE, and COMSPEED.
Referenced by spcr_console().
| struct uart* serial_console |
Active serial console UART.
Explicitly initialised to NULL since this variable may be accessed before .bss has been zeroed.
Definition at line 69 of file serial.c.
Referenced by int21(), int22(), serial_getchar(), serial_init(), serial_iskey(), serial_putchar(), and serial_shutdown().
1.8.15