coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
boardid.h File Reference
#include <stdint.h>
Include dependency graph for boardid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNDEFINED_STRAPPING_ID   (~0)
 
#define BOARD_ID_UNKNOWN   ~((uint32_t)0) /* unsigned equivalent to -1 */
 
#define BOARD_ID_INIT   ~((uint32_t)1) /* unsigned equivalent to -2 */
 

Functions

uint32_t board_id (void)
 board_id() - Get the board version More...
 
uint32_t ram_code (void)
 
uint32_t sku_id (void)
 

Macro Definition Documentation

◆ BOARD_ID_INIT

#define BOARD_ID_INIT   ~((uint32_t)1) /* unsigned equivalent to -2 */

Definition at line 11 of file boardid.h.

◆ BOARD_ID_UNKNOWN

#define BOARD_ID_UNKNOWN   ~((uint32_t)0) /* unsigned equivalent to -1 */

Definition at line 10 of file boardid.h.

◆ UNDEFINED_STRAPPING_ID

#define UNDEFINED_STRAPPING_ID   (~0)

Definition at line 8 of file boardid.h.

Function Documentation

◆ board_id()

uint32_t board_id ( void  )

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 6 of file ec_boardid.c.

◆ ram_code()

◆ sku_id()