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

Go to the source code of this file.

Macros

#define FRU_ID_NOT_FOUND   0xFF
 

Enumerations

enum  FRU_DEV_TYPE {
  NV_ATMEL_24C02 , NV_ATMEL_24C64 , NV_ATMEL_24C128 , PUYA_P24C128F ,
  ST_M24C64_W , ST_M24128_BW , ST_M24512_RDW , ROHM_BR24G512
}
 
enum  {
  FRU_WRITE_SUCCESS , FRU_READ_SUCCESS , FRU_INVALID_ID , FRU_OUT_OF_RANGE ,
  FRU_FAIL_TO_ACCESS
}
 
enum  { FRU_DEV_ACCESS_BYTE , FRU_DEV_ACCESS_WORD }
 

Functions

bool find_FRU_ID (uint8_t FRUID, uint8_t *fru_id)
 
uint8_t get_FRU_access (uint8_t FRUID)
 
uint16_t find_FRU_size (uint8_t FRUID)
 
uint8_t FRU_read (EEPROM_ENTRY *entry)
 
uint8_t FRU_write (EEPROM_ENTRY *entry)
 
void pal_load_fru_config (void)
 
void FRU_init (void)
 
bool write_psb_inform (EEPROM_ENTRY *entry)
 

Variables

EEPROM_CFG fru_config []
 

Macro Definition Documentation

◆ FRU_ID_NOT_FOUND

#define FRU_ID_NOT_FOUND   0xFF

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FRU_WRITE_SUCCESS 
FRU_READ_SUCCESS 
FRU_INVALID_ID 
FRU_OUT_OF_RANGE 
FRU_FAIL_TO_ACCESS 

◆ anonymous enum

anonymous enum
Enumerator
FRU_DEV_ACCESS_BYTE 
FRU_DEV_ACCESS_WORD 

◆ FRU_DEV_TYPE

Enumerator
NV_ATMEL_24C02 
NV_ATMEL_24C64 
NV_ATMEL_24C128 
PUYA_P24C128F 
ST_M24C64_W 
ST_M24128_BW 
ST_M24512_RDW 
ROHM_BR24G512 

Function Documentation

◆ find_FRU_ID()

bool find_FRU_ID ( uint8_t  FRUID,
uint8_t *  fru_id 
)

◆ find_FRU_size()

uint16_t find_FRU_size ( uint8_t  FRUID)
Here is the call graph for this function:

◆ FRU_init()

void FRU_init ( void  )
Here is the call graph for this function:

◆ FRU_read()

uint8_t FRU_read ( EEPROM_ENTRY entry)
Here is the call graph for this function:

◆ FRU_write()

uint8_t FRU_write ( EEPROM_ENTRY entry)
Here is the call graph for this function:

◆ get_FRU_access()

uint8_t get_FRU_access ( uint8_t  FRUID)
Here is the call graph for this function:

◆ pal_load_fru_config()

void pal_load_fru_config ( void  )

◆ write_psb_inform()

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

Variable Documentation

◆ fru_config

EEPROM_CFG fru_config[]
extern