OpenBIC
OpenSource Bridge-IC
plat_fru.h File Reference
#include "eeprom.h"
#include "fru.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 FRU_CFG_NUM   MAX_FRU_ID
 
#define MB_FRU_PORT   0x01
 
#define MB_FRU_ADDR   0x54
 
#define DPV2_FRU_PORT   0x08
 
#define DPV2_FRU_ADDR   0x51
 
#define MB_CPU_FRU_PORT   0x0C
 
#define MB_CPU_FRU_ADDR   0x50
 
#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
 
#define BSD_IMAGE_START   0x0000
 
#define BSD_VERSION_START   0x0A40
 
#define BSD_VERSION_MAX_SIZE   4
 

Enumerations

enum  { MB_FRU_ID , DPV2_FRU_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)
 
bool write_bsd_version ()
 
uint32_t read_bsd_version ()
 

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

◆ BSD_IMAGE_START

#define BSD_IMAGE_START   0x0000

◆ BSD_VERSION_MAX_SIZE

#define BSD_VERSION_MAX_SIZE   4

◆ BSD_VERSION_START

#define BSD_VERSION_START   0x0A40

◆ DPV2_FRU_ADDR

#define DPV2_FRU_ADDR   0x51

◆ DPV2_FRU_PORT

#define DPV2_FRU_PORT   0x08

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   MAX_FRU_ID

◆ MB_CPU_FRU_ADDR

#define MB_CPU_FRU_ADDR   0x50

◆ MB_CPU_FRU_PORT

#define MB_CPU_FRU_PORT   0x0C

◆ MB_FRU_ADDR

#define MB_FRU_ADDR   0x54

◆ MB_FRU_PORT

#define MB_FRU_PORT   0x01

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MB_FRU_ID 
DPV2_FRU_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)

◆ read_bsd_version()

uint32_t read_bsd_version ( )
Here is the call graph for this function:

◆ set_bios_version()

int set_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)

◆ write_bsd_version()

bool write_bsd_version ( )
Here is the call graph for this function: