coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
boardid.c File Reference
#include <baseboard/variants.h>
#include <boardid.h>
#include <ec/google/chromeec/ec.h>
Include dependency graph for boardid.c:

Go to the source code of this file.

Functions

int variant_board_id (void)
 variant_board_id() - Get the board id for the current board variant More...
 

Function Documentation

◆ variant_board_id()

int variant_board_id ( void  )

variant_board_id() - Get the board id for the current board variant

Return: board id on success, -1 on failure/error.

Definition at line 7 of file boardid.c.

References BOARD_ID_INIT, BOARD_ID_UNKNOWN, CONFIG, google_chromeec_get_board_version(), and MAYBE_STATIC_NONZERO.

Referenced by board_id().

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