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

Go to the source code of this file.

Data Structures

struct  em100_msg_header
 
struct  em100_msg
 

Macros

#define __CONSOLE_SPI_ENABLE__
 
#define MAX_MSG_LENGTH   128
 
#define EM100_DEDICATED_CMD   0x11
 
#define EM100_UFIFO_CMD   0xC0
 
#define EM100_MSG_SIGNATURE   0x47364440
 

Enumerations

enum  em100_message_types {
  EM100_MSG_CHECKPOINT_1B = 0x01 , EM100_MSG_CHECKPOINT_2B , EM100_MSG_CHECKPOINT_4B , EM100_MSG_HEX ,
  EM100_MSG_ASCII , EM100_MSG_TIMESTAMP , EM100_MSG_LOOKUP
}
 

Functions

void spiconsole_init (void)
 
void spiconsole_tx_byte (unsigned char c)
 
static void __spiconsole_init (void)
 
static void __spiconsole_tx_byte (u8 data)
 

Variables

struct em100_msg_header __packed
 

Macro Definition Documentation

◆ __CONSOLE_SPI_ENABLE__

#define __CONSOLE_SPI_ENABLE__
Value:
(CONFIG(EM100PRO_SPI_CONSOLE) && \
@ CONFIG
Definition: dsi_common.h:201
#define ENV_SMM
Definition: rules.h:151
#define ENV_RAMSTAGE
Definition: rules.h:150
#define DEBUG_SMI
Definition: smihandler.c:12

Definition at line 11 of file spi.h.

◆ EM100_DEDICATED_CMD

#define EM100_DEDICATED_CMD   0x11

Definition at line 27 of file spi.h.

◆ EM100_MSG_SIGNATURE

#define EM100_MSG_SIGNATURE   0x47364440

Definition at line 29 of file spi.h.

◆ EM100_UFIFO_CMD

#define EM100_UFIFO_CMD   0xC0

Definition at line 28 of file spi.h.

◆ MAX_MSG_LENGTH

#define MAX_MSG_LENGTH   128

Definition at line 25 of file spi.h.

Enumeration Type Documentation

◆ em100_message_types

Enumerator
EM100_MSG_CHECKPOINT_1B 
EM100_MSG_CHECKPOINT_2B 
EM100_MSG_CHECKPOINT_4B 
EM100_MSG_HEX 
EM100_MSG_ASCII 
EM100_MSG_TIMESTAMP 
EM100_MSG_LOOKUP 

Definition at line 31 of file spi.h.

Function Documentation

◆ __spiconsole_init()

static void __spiconsole_init ( void  )
inlinestatic

Definition at line 21 of file spi.h.

Referenced by console_hw_init().

Here is the caller graph for this function:

◆ __spiconsole_tx_byte()

static void __spiconsole_tx_byte ( u8  data)
inlinestatic

Definition at line 22 of file spi.h.

Referenced by console_interactive_tx_byte().

Here is the caller graph for this function:

◆ spiconsole_init()

void spiconsole_init ( void  )

Definition at line 9 of file spiconsole.c.

References slave, spi_init(), and spi_setup_slave().

Here is the call graph for this function:

◆ spiconsole_tx_byte()

Variable Documentation

◆ __packed