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 CXL_FW_VERSION_START   0x0A00
 
#define CXL_FW_VERSION_MAX_SIZE   16
 
#define FRU_CFG_NUM   MAX_FRU_ID
 

Enumerations

enum  FRU_ID {
  MB_FRU_ID = 0x00 , BB_FRU_ID , BPB_FRU_ID , PDB_FRU_ID ,
  SB_FRU_ID , PB_1_FRU_ID , PB_2_FRU_ID , PB_3_FRU_ID ,
  FB_1_FRU_ID , FB_2_FRU_ID , FB_3_FRU_ID , FB_4_FRU_ID ,
  FB_5_FRU_ID , FB_6_FRU_ID , FB_7_FRU_ID , FB_8_FRU_ID ,
  FB_9_FRU_ID , FB_10_FRU_ID , FB_11_FRU_ID , FB_12_FRU_ID ,
  FB_13_FRU_ID , FB_14_FRU_ID , FIO_FRU_ID , MAX_FRU_ID ,
  FIO_FRU_ID = 0x0D , CB_FRU_ID = 0x10 , ACCL_1_FRU_ID = 0x12 , ACCL_2_FRU_ID ,
  ACCL_3_FRU_ID , ACCL_4_FRU_ID , ACCL_5_FRU_ID , ACCL_6_FRU_ID ,
  ACCL_7_FRU_ID , ACCL_8_FRU_ID , ACCL_9_FRU_ID , ACCL_10_FRU_ID ,
  ACCL_11_FRU_ID , ACCL_12_FRU_ID , ACCL_1_CH1_FREYA_FRU_ID = 0x1E , ACCL_1_CH2_FREYA_FRU_ID ,
  ACCL_2_CH1_FREYA_FRU_ID , ACCL_2_CH2_FREYA_FRU_ID , ACCL_3_CH1_FREYA_FRU_ID , ACCL_3_CH2_FREYA_FRU_ID ,
  ACCL_4_CH1_FREYA_FRU_ID , ACCL_4_CH2_FREYA_FRU_ID , ACCL_5_CH1_FREYA_FRU_ID , ACCL_5_CH2_FREYA_FRU_ID ,
  ACCL_6_CH1_FREYA_FRU_ID , ACCL_6_CH2_FREYA_FRU_ID , ACCL_7_CH1_FREYA_FRU_ID , ACCL_7_CH2_FREYA_FRU_ID ,
  ACCL_8_CH1_FREYA_FRU_ID , ACCL_8_CH2_FREYA_FRU_ID , ACCL_9_CH1_FREYA_FRU_ID , ACCL_9_CH2_FREYA_FRU_ID ,
  ACCL_10_CH1_FREYA_FRU_ID , ACCL_10_CH2_FREYA_FRU_ID , ACCL_11_CH1_FREYA_FRU_ID , ACCL_11_CH2_FREYA_FRU_ID ,
  ACCL_12_CH1_FREYA_FRU_ID , ACCL_12_CH2_FREYA_FRU_ID , MAX_FRU_ID , MC_FRU_ID = 0x11 ,
  CXL_FRU_ID1 = 0x1E , CXL_FRU_ID2 , CXL_FRU_ID3 , CXL_FRU_ID4 ,
  MC_E1S_4_FRU_ID , MC_E1S_3_FRU_ID , MC_E1S_2_FRU_ID , MC_E1S_1_FRU_ID ,
  CXL_FRU_ID5 , CXL_FRU_ID6 , CXL_FRU_ID7 , CXL_FRU_ID8 ,
  SYS_DEBUG_ID , MAX_FRU_ID , LOG_EEPROM_ID = 0x00 , MAX_FRU_ID ,
  VF_FRU_ID , MAX_FRU_ID , NF_FRU_ID = 0 , MAX_FRU_ID ,
  RF_FRU_ID , MAX_FRU_ID
}
 

Functions

bool get_cxl_version (EEPROM_ENTRY *entry)
 
bool set_cxl_version (EEPROM_ENTRY *entry)
 

Macro Definition Documentation

◆ CXL_FW_VERSION_MAX_SIZE

#define CXL_FW_VERSION_MAX_SIZE   16

◆ CXL_FW_VERSION_START

#define CXL_FW_VERSION_START   0x0A00

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   MAX_FRU_ID

Enumeration Type Documentation

◆ FRU_ID

enum FRU_ID
Enumerator
MB_FRU_ID 
BB_FRU_ID 
BPB_FRU_ID 
PDB_FRU_ID 
SB_FRU_ID 
PB_1_FRU_ID 
PB_2_FRU_ID 
PB_3_FRU_ID 
FB_1_FRU_ID 
FB_2_FRU_ID 
FB_3_FRU_ID 
FB_4_FRU_ID 
FB_5_FRU_ID 
FB_6_FRU_ID 
FB_7_FRU_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C_E1S_1_FRU_ID 
CXL_FRU_ID5 
CXL_FRU_ID6 
CXL_FRU_ID7 
CXL_FRU_ID8 
SYS_DEBUG_ID 
MAX_FRU_ID 
LOG_EEPROM_ID 
MAX_FRU_ID 
VF_FRU_ID 
MAX_FRU_ID 
NF_FRU_ID 
MAX_FRU_ID 
RF_FRU_ID 
MAX_FRU_ID 

Function Documentation

◆ get_cxl_version()

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

◆ set_cxl_version()

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