coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
elog.c File Reference
#include <commonlib/bsd/bcd.h>
#include <commonlib/bsd/elog.h>
#include <stddef.h>
Include dependency graph for elog.c:

Go to the source code of this file.

Functions

enum cb_err elog_verify_header (const struct elog_header *header)
 
const struct event_headerelog_get_next_event (const struct event_header *event)
 
const voidevent_get_data (const struct event_header *event)
 
void elog_fill_timestamp (struct event_header *event, uint8_t sec, uint8_t min, uint8_t hour, uint8_t mday, uint8_t mon, uint16_t year)
 
void elog_update_checksum (struct event_header *event, uint8_t checksum)
 
uint8_t elog_checksum_event (const struct event_header *event)
 

Function Documentation

◆ elog_checksum_event()

uint8_t elog_checksum_event ( const struct event_header event)

Definition at line 80 of file elog.c.

References checksum().

Referenced by elog_add_event_raw(), and elog_is_event_valid().

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

◆ elog_fill_timestamp()

void elog_fill_timestamp ( struct event_header event,
uint8_t  sec,
uint8_t  min,
uint8_t  hour,
uint8_t  mday,
uint8_t  mon,
uint16_t  year 
)

Definition at line 52 of file elog.c.

References bin2bcd(), event_header::day, event_header::hour, event_header::minute, event_header::month, event_header::second, and year.

Referenced by elog_add_event_raw().

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

◆ elog_get_next_event()

const struct event_header* elog_get_next_event ( const struct event_header event)

Definition at line 32 of file elog.c.

References NULL.

◆ elog_update_checksum()

void elog_update_checksum ( struct event_header event,
uint8_t  checksum 
)

Definition at line 74 of file elog.c.

References checksum().

Referenced by elog_add_event_raw().

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

◆ elog_verify_header()

enum cb_err elog_verify_header ( const struct elog_header header)

Definition at line 1 of file elog.c.

References CB_ERR, CB_SUCCESS, ELOG_SIGNATURE, ELOG_VERSION, header, arm64_kernel_header::magic, and NULL.

Referenced by elog_is_header_valid().

Here is the caller graph for this function:

◆ event_get_data()

const void* event_get_data ( const struct event_header event)

Definition at line 42 of file elog.c.