OpenBIC
OpenSource Bridge-IC
plat_fru.h File Reference
#include "eeprom.h"
Include dependency graph for plat_fru.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MB_FRU_PORT   0x01
 
#define MB_FRU_ADDR   (0xA8 >> 1)
 
#define FRU_CFG_NUM   MAX_FRU_ID
 
#define SYS_DAM_OFFSET   0
 
#define BIOS_FW_VERSION_START   0x0A00
 
#define BIOS_FW_VERSION_MAX_SIZE   34
 
#define BIOS_FW_VERSION_BLOCK_NUM   2
 
#define BIOS_FW_VERSION_SECOND_BLOCK_OFFSET   17
 
#define BIOS_FW_VERSION_BLOCK_MAX_SIZE   17
 

Enumerations

enum  { MB_FRU_ID , SYS_DAM_ID , MAX_FRU_ID }
 

Functions

bool get_bios_version_area_config (EEPROM_CFG *config)
 
int set_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 
int get_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 

Macro Definition Documentation

◆ BIOS_FW_VERSION_BLOCK_MAX_SIZE

#define BIOS_FW_VERSION_BLOCK_MAX_SIZE   17

◆ BIOS_FW_VERSION_BLOCK_NUM

#define BIOS_FW_VERSION_BLOCK_NUM   2

◆ BIOS_FW_VERSION_MAX_SIZE

#define BIOS_FW_VERSION_MAX_SIZE   34

◆ BIOS_FW_VERSION_SECOND_BLOCK_OFFSET

#define BIOS_FW_VERSION_SECOND_BLOCK_OFFSET   17

◆ BIOS_FW_VERSION_START

#define BIOS_FW_VERSION_START   0x0A00

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   MAX_FRU_ID

◆ MB_FRU_ADDR

#define MB_FRU_ADDR   (0xA8 >> 1)

◆ MB_FRU_PORT

#define MB_FRU_PORT   0x01

◆ SYS_DAM_OFFSET

#define SYS_DAM_OFFSET   0

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MB_FRU_ID 
SYS_DAM_ID 
MAX_FRU_ID 

Function Documentation

◆ get_bios_version()

int get_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)

◆ get_bios_version_area_config()

bool get_bios_version_area_config ( EEPROM_CFG config)

◆ set_bios_version()

int set_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)