iPXE
|
VMware logfile console. More...
#include <string.h>
#include <ipxe/console.h>
#include <ipxe/lineconsole.h>
#include <ipxe/init.h>
#include <ipxe/guestrpc.h>
#include <config/console.h>
Go to the source code of this file.
Macros | |
#define | VMCONSOLE_BUFSIZE 128 |
VMware logfile console buffer size. More... | |
#define | CONSOLE_VMWARE ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | vmconsole_putchar (int character) |
Print a character to VMware logfile console. More... | |
static void | vmconsole_init (void) |
Initialise VMware logfile console. More... | |
struct init_fn vmconsole_init_fn | __init_fn (INIT_CONSOLE) |
VMware logfile console initialisation function. More... | |
Variables | |
static int | vmconsole_channel |
VMware logfile console GuestRPC channel. More... | |
struct { | |
char prefix [4] | |
char message [VMCONSOLE_BUFSIZE] | |
} | vmconsole_buffer |
VMware logfile console line buffer. More... | |
static struct ansiesc_handler | vmconsole_handlers [] |
VMware logfile console ANSI escape sequence handlers. More... | |
static struct line_console | vmconsole_line |
VMware logfile line console. More... | |
static int | vmconsole_entered |
VMware logfile console recursion marker. More... | |
struct console_driver vmconsole | __console_driver |
VMware logfile console driver. More... | |
VMware logfile console.
Definition in file vmconsole.c.
#define VMCONSOLE_BUFSIZE 128 |
VMware logfile console buffer size.
Definition at line 40 of file vmconsole.c.
#define CONSOLE_VMWARE ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI ) |
Definition at line 45 of file vmconsole.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Print a character to VMware logfile console.
character | Character to be printed |
Definition at line 81 of file vmconsole.c.
References DBG, guestrpc_command(), line_putchar(), NULL, rc, strerror(), vmconsole_buffer, vmconsole_channel, vmconsole_entered, and vmconsole_line.
|
static |
Initialise VMware logfile console.
Definition at line 117 of file vmconsole.c.
References DBG, guestrpc_open(), rc, strerror(), and vmconsole_channel.
struct init_fn vmconsole_init_fn __init_fn | ( | INIT_CONSOLE | ) |
VMware logfile console initialisation function.
|
static |
VMware logfile console GuestRPC channel.
Definition at line 49 of file vmconsole.c.
Referenced by vmconsole_init(), and vmconsole_putchar().
char prefix[4] |
Definition at line 53 of file vmconsole.c.
Referenced by deflate_alphabet(), efi_device_info(), efi_pci_info(), format_uri(), hash_df(), ifstat_errors(), ndp_prefix_fetch_ip6(), ndp_prefix_fetch_len6(), rsa_encode_digest(), and rsa_find_prefix().
char message[VMCONSOLE_BUFSIZE] |
Definition at line 54 of file vmconsole.c.
Referenced by acm_intr_complete(), ecm_intr_complete(), ncm_intr_complete(), and syslog_send().
struct { ... } vmconsole_buffer |
VMware logfile console line buffer.
Referenced by vmconsole_putchar().
|
static |
VMware logfile console ANSI escape sequence handlers.
Definition at line 60 of file vmconsole.c.
|
static |
VMware logfile line console.
Definition at line 65 of file vmconsole.c.
Referenced by vmconsole_putchar().
|
static |
VMware logfile console recursion marker.
Definition at line 74 of file vmconsole.c.
Referenced by vmconsole_putchar().
struct console_driver vmconsole __console_driver |
VMware logfile console driver.
Definition at line 107 of file vmconsole.c.