|
iPXE
|
A console driver. More...
#include <console.h>
Data Fields | |
| int | disabled |
| Console disabled flags. | |
| void(* | putchar )(int character) |
| Write a character to the console. | |
| int(* | getchar )(void) |
| Read a character from the console. | |
| int(* | iskey )(void) |
| Check for available input. | |
| int(* | configure )(struct console_configuration *config) |
| Configure console. | |
| int | usage |
| Console usage bitmask. | |
A console driver.
Defines the functions that implement a particular console type. Must be made part of the console drivers table by using __console_driver.
| int console_driver::disabled |
Console disabled flags.
This is the bitwise OR of zero or more console disabled flags.
Definition at line 63 of file console.h.
Referenced by has_input(), and putchar().
| void(* console_driver::putchar) (int character) |
| int(* console_driver::getchar) (void) |
| int(* console_driver::iskey) (void) |
Check for available input.
| is_available | Input is available |
This should return true if a subsequent call to getchar() will not block.
Definition at line 88 of file console.h.
Referenced by has_input().
| int(* console_driver::configure) (struct console_configuration *config) |
Configure console.
| config | Console configuration, or NULL to reset |
| rc | Return status code |
Definition at line 95 of file console.h.
Referenced by console_configure().
| int console_driver::usage |