|
iPXE
|
Serial console. More...
Go to the source code of this file.
Macros | |
| #define | SERIAL_PREFIX_null __null_ |
| #define | SERIAL_INLINE(_subsys, _api_func) |
| Calculate static inline serial API function name. | |
| #define | PROVIDE_SERIAL(_subsys, _api_func, _func) |
| Provide a serial API implementation. | |
| #define | PROVIDE_SERIAL_INLINE(_subsys, _api_func) |
| Provide a static inline serial API implementation. | |
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. | |
| struct uart * | default_serial_console (void) |
| Get serial console UART. | |
| struct uart * | fixed_serial_console (void) |
| Get fixed serial console UART. | |
Variables | |
| struct uart * | serial_console |
| Active serial console UART. | |
Serial console.
Definition in file serial.h.
| #define SERIAL_INLINE | ( | _subsys, | |
| _api_func ) |
Calculate static inline serial API function name.
| _prefix | Subsystem prefix |
| _api_func | API function |
| _subsys_func | Subsystem API function |
Definition at line 29 of file serial.h.
| #define PROVIDE_SERIAL | ( | _subsys, | |
| _api_func, | |||
| _func ) |
Provide a serial API implementation.
| _prefix | Subsystem prefix |
| _api_func | API function |
| _func | Implementing function |
Definition at line 39 of file serial.h.
| #define PROVIDE_SERIAL_INLINE | ( | _subsys, | |
| _api_func ) |
Provide a static inline serial API implementation.
| _prefix | Subsystem prefix |
| _api_func | API function |
Definition at line 48 of file serial.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Get null serial console UART.
| uart | Serial console UART, or NULL |
Definition at line 57 of file serial.h.
References default_serial_console(), and NULL.
| struct uart * default_serial_console | ( | void | ) |
Get serial console UART.
| uart | Serial console UART, or NULL |
References serial_console.
Referenced by PROVIDE_SERIAL(), PROVIDE_SERIAL(), PROVIDE_SERIAL(), PROVIDE_SERIAL_INLINE(), serial_init(), and SERIAL_INLINE().
|
extern |
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 PROVIDE_SERIAL(), and spcr_console().
|
extern |
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 default_serial_console(), int21(), int22(), serial_getchar(), serial_init(), serial_iskey(), serial_putchar(), and serial_shutdown().