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

Functions

 LOG_MODULE_REGISTER (dev_fru)
 
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)
 
__weak void pal_load_fru_config (void)
 
void FRU_init (void)
 
__weak bool write_psb_inform (EEPROM_ENTRY *entry)
 

Variables

EEPROM_CFG fru_config [FRU_CFG_NUM]
 

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:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_fru  )

◆ pal_load_fru_config()

__weak void pal_load_fru_config ( void  )

◆ write_psb_inform()

__weak bool write_psb_inform ( EEPROM_ENTRY entry)

Variable Documentation

◆ fru_config

EEPROM_CFG fru_config[FRU_CFG_NUM]