coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
enum cb_err | elog_verify_header (const struct elog_header *header) |
const struct event_header * | elog_get_next_event (const struct event_header *event) |
const void * | event_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) |
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().
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().
const struct event_header* elog_get_next_event | ( | const struct event_header * | event | ) |
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().
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().
const void* event_get_data | ( | const struct event_header * | event | ) |