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

Go to the source code of this file.

Macros

#define __CONSOLE_FLASH_ENABLE__   CONFIG(CONSOLE_SPI_FLASH)
 

Functions

void flashconsole_init (void)
 
void flashconsole_tx_byte (unsigned char c)
 
void flashconsole_tx_flush (void)
 
static void __flashconsole_init (void)
 
static void __flashconsole_tx_byte (u8 data)
 
static void __flashconsole_tx_flush (void)
 

Macro Definition Documentation

◆ __CONSOLE_FLASH_ENABLE__

#define __CONSOLE_FLASH_ENABLE__   CONFIG(CONSOLE_SPI_FLASH)

Definition at line 12 of file flash.h.

Function Documentation

◆ __flashconsole_init()

static void __flashconsole_init ( void  )
inlinestatic

Definition at line 25 of file flash.h.

Referenced by console_hw_init().

Here is the caller graph for this function:

◆ __flashconsole_tx_byte()

static void __flashconsole_tx_byte ( u8  data)
inlinestatic

Definition at line 26 of file flash.h.

Referenced by console_stored_tx_byte().

Here is the caller graph for this function:

◆ __flashconsole_tx_flush()

static void __flashconsole_tx_flush ( void  )
inlinestatic

Definition at line 27 of file flash.h.

Referenced by console_tx_flush().

Here is the caller graph for this function:

◆ flashconsole_init()

void flashconsole_init ( void  )

Definition at line 19 of file flashconsole.c.

References BIOS_INFO, buffer, fmap_locate_area_as_rdev_rw(), MIN, offset, printk, rdev, rdev_ptr, rdev_readat(), READ_BUFFER_SIZE, and region_device_sz().

Here is the call graph for this function:

◆ flashconsole_tx_byte()

void flashconsole_tx_byte ( unsigned char  c)

Definition at line 70 of file flashconsole.c.

References c, flashconsole_tx_flush(), line_buffer, LINE_BUFFER_SIZE, line_offset, offset, rdev_ptr, and region_device_sz().

Here is the call graph for this function:

◆ flashconsole_tx_flush()

void flashconsole_tx_flush ( void  )

Definition at line 86 of file flashconsole.c.

References line_buffer, line_offset, offset, rdev, rdev_ptr, rdev_writeat(), and region_device_sz().

Referenced by flashconsole_tx_byte().

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