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

Go to the source code of this file.

Functions

static int get_board_id_via_ext_ec (void)
 
int get_board_id (void)
 

Function Documentation

◆ get_board_id()

int get_board_id ( void  )

Definition at line 19 of file board_id.c.

References buffer, CONFIG, EC_FAB_ID_CMD, get_board_id_via_ext_ec(), MAYBE_STATIC_NONZERO, recv_ec_data(), and send_ec_command().

Here is the call graph for this function:

◆ get_board_id_via_ext_ec()

static int get_board_id_via_ext_ec ( void  )
static

Definition at line 8 of file board_id.c.

References BOARD_ID_INIT, BOARD_ID_UNKNOWN, and google_chromeec_get_board_version().

Referenced by get_board_id().

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