![]() |
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 | |
_Static_assert (ARRAY_SIZE(id_readings)==16, "Yo' messed up da table, bruh!") | |
static uint32_t | get_index (uint32_t channel, int *cached_id) |
uint32_t | board_id (void) |
board_id() - Get the board version More... | |
uint32_t | ram_code (void) |
uint32_t | sku_id (void) |
Variables | |
static const int | id_readings [] |
static int | cached_board_id = -1 |
static int | cached_ram_id = -1 |
_Static_assert | ( | ARRAY_SIZE(id_readings) | = =16 , |
"Yo' messed up da | table, | ||
bruh!" | |||
) |
board_id() - Get the board version
Return: board version on success, BOARD_ID_UNKNOWN on failure/error.
This function is used to get the mainboard version.
Definition at line 57 of file boardid.c.
References cached_board_id, and get_index().
Definition at line 36 of file boardid.c.
References ARRAY_SIZE, BIOS_DEBUG, die(), get_saradc_value(), id_readings, and printk.
Referenced by board_id(), and ram_code().
Definition at line 62 of file boardid.c.
References cached_ram_id, and get_index().
Definition at line 67 of file boardid.c.
References ARRAY_SIZE, CONFIG, GPIO, gpio_pullup_base2_value(), pins, sku_id(), and UNDEFINED_STRAPPING_ID.
|
static |
Definition at line 33 of file boardid.c.
Referenced by board_id().
|
static |
Definition at line 34 of file boardid.c.
Referenced by ram_code().
|
static |
Definition at line 8 of file boardid.c.
Referenced by get_index().