coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec_boardid.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <boardid.h>
5 
7 {
9 
10  if (id == BOARD_ID_INIT) {
12  id = BOARD_ID_UNKNOWN;
13  }
14 
15  return id;
16 }
#define BOARD_ID_INIT
Definition: boardid.h:11
#define BOARD_ID_UNKNOWN
Definition: boardid.h:10
int google_chromeec_get_board_version(uint32_t *version)
google_chromeec_get_board_version() - Get the board version
Definition: ec.c:915
uint32_t board_id(void)
board_id() - Get the board version
Definition: ec_boardid.c:6
#define MAYBE_STATIC_NONZERO
Definition: stddef.h:38
unsigned int uint32_t
Definition: stdint.h:14