coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbmem_console.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for cbmem_console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __CBMEM_CONSOLE_ENABLE__
 

Functions

void cbmemc_init (void)
 
void cbmemc_tx_byte (unsigned char data)
 
static void __cbmemc_init (void)
 
static void __cbmemc_tx_byte (u8 data)
 
void cbmemc_copy_in (void *buffer, size_t size)
 
void cbmem_dump_console_to_uart (void)
 
void cbmem_dump_console (void)
 
void smm_get_cbmemc_buffer (void **buffer_out, size_t *size_out)
 

Macro Definition Documentation

◆ __CBMEM_CONSOLE_ENABLE__

#define __CBMEM_CONSOLE_ENABLE__
Value:
(CONFIG(CONSOLE_CBMEM) && \
ENV_ROMSTAGE || (ENV_BOOTBLOCK && CONFIG(BOOTBLOCK_CONSOLE)) || \
@ CONFIG
Definition: dsi_common.h:201
#define ENV_BOOTBLOCK
Definition: rules.h:148
#define ENV_SMM
Definition: rules.h:151
#define ENV_RAMSTAGE
Definition: rules.h:150
#define ENV_SEPARATE_VERSTAGE
Definition: rules.h:152
#define ENV_POSTCAR
Definition: rules.h:154
#define DEBUG_SMI
Definition: smihandler.c:12

Definition at line 11 of file cbmem_console.h.

Function Documentation

◆ __cbmemc_init()

static void __cbmemc_init ( void  )
inlinestatic

Definition at line 20 of file cbmem_console.h.

Referenced by console_hw_init().

Here is the caller graph for this function:

◆ __cbmemc_tx_byte()

static void __cbmemc_tx_byte ( u8  data)
inlinestatic

Definition at line 21 of file cbmem_console.h.

Referenced by console_stored_tx_byte(), line_start(), vprintk(), wrap_putchar(), and write_qclib_log_to_cbmemc().

Here is the caller graph for this function:

◆ cbmem_dump_console()

void cbmem_dump_console ( void  )

Definition at line 209 of file cbmem_console.c.

References BIOS_LOG_IS_MARKER, cbmem_console::body, console_paused, current_console, cbmem_console::cursor, CURSOR_MASK, do_putchar(), OVERFLOW, and cbmem_console::size.

Referenced by console_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cbmem_dump_console_to_uart()

void cbmem_dump_console_to_uart ( void  )

Referenced by vboot_reboot().

Here is the caller graph for this function:

◆ cbmemc_copy_in()

void cbmemc_copy_in ( void buffer,
size_t  size 
)

Definition at line 149 of file cbmem_console.c.

References buffer, buffer_valid(), copy_console_buffer(), and cbmem_console::size.

Referenced by replay_transfer_buffer_cbmemc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cbmemc_init()

void cbmemc_init ( void  )

Definition at line 82 of file cbmem_console.c.

References ENV_ROMSTAGE_OR_BEFORE, ENV_SMM, init_console_ptr(), NULL, REGION_SIZE, smm_get_cbmemc_buffer(), and static_console.

Referenced by replay_transfer_buffer_cbmemc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cbmemc_tx_byte()

void cbmemc_tx_byte ( unsigned char  data)

Definition at line 100 of file cbmem_console.c.

References cbmem_console::body, console_paused, current_console, cbmem_console::cursor, CURSOR_MASK, OVERFLOW, and cbmem_console::size.

Referenced by copy_console_buffer().

Here is the caller graph for this function:

◆ smm_get_cbmemc_buffer()

void smm_get_cbmemc_buffer ( void **  buffer_out,
size_t size_out 
)

Definition at line 52 of file smm_module_handler.c.

References smm_runtime::cbmemc, and smm_runtime::cbmemc_size.

Referenced by cbmemc_init().

Here is the caller graph for this function: