OpenBIC
OpenSource Bridge-IC
plat_fru.c File Reference
#include <string.h>
#include "fru.h"
#include "plat_fru.h"
#include <logging/log.h>
#include "eeprom.h"
#include "libutil.h"
Include dependency graph for plat_fru.c:

Macros

#define RF_FRU_PORT   0x02
 
#define RF_FRU_ADDR   (0xA8 >> 1)
 

Functions

 LOG_MODULE_REGISTER (plat_fru)
 
bool set_cxl_version (EEPROM_ENTRY *entry)
 
bool get_cxl_version (EEPROM_ENTRY *entry)
 
void pal_load_fru_config (void)
 

Variables

const EEPROM_CFG plat_fru_config []
 
const EEPROM_CFG plat_cxl_version_area_config
 

Macro Definition Documentation

◆ RF_FRU_ADDR

#define RF_FRU_ADDR   (0xA8 >> 1)

◆ RF_FRU_PORT

#define RF_FRU_PORT   0x02

Function Documentation

◆ get_cxl_version()

bool get_cxl_version ( EEPROM_ENTRY entry)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fru  )

◆ pal_load_fru_config()

void pal_load_fru_config ( void  )

◆ set_cxl_version()

bool set_cxl_version ( EEPROM_ENTRY entry)
Here is the call graph for this function:

Variable Documentation

◆ plat_cxl_version_area_config

const EEPROM_CFG plat_cxl_version_area_config
Initial value:
= {
}
@ FRU_DEV_ACCESS_BYTE
Definition: fru.h:44
@ NV_ATMEL_24C128
Definition: fru.h:27
#define RF_FRU_PORT
Definition: plat_fru.c:26
#define RF_FRU_ADDR
Definition: plat_fru.c:27
#define CXL_FW_VERSION_MAX_SIZE
Definition: plat_fru.h:22
#define CXL_FW_VERSION_START
Definition: plat_fru.h:21
@ RF_FRU_ID
Definition: plat_fru.h:26

◆ plat_fru_config

const EEPROM_CFG plat_fru_config[]
Initial value:
= {
{
},
}
#define FRU_SIZE
Definition: eeprom.h:30
#define FRU_START
Definition: eeprom.h:29