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

Functions

 LOG_MODULE_REGISTER (plat_fru)
 
void pal_load_fru_config (void)
 
int set_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 
int get_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 

Variables

const EEPROM_CFG plat_fru_config []
 
const EEPROM_CFG plat_bios_version_area_config
 

Function Documentation

◆ get_bios_version()

int get_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)
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_bios_version()

int set_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)
Here is the call graph for this function:

Variable Documentation

◆ plat_bios_version_area_config

const EEPROM_CFG plat_bios_version_area_config
Initial value:
= {
}
@ MB_FRU_ID
Definition: plat_fru.h:21
#define MB_FRU_ADDR
Definition: plat_fru.h:49
@ FRU_DEV_ACCESS_BYTE
Definition: fru.h:44
@ NV_ATMEL_24C128
Definition: fru.h:27
#define BIOS_FW_VERSION_MAX_SIZE
Definition: plat_fru.h:38
#define MB_FRU_PORT
Definition: plat_fru.h:31
#define BIOS_FW_VERSION_START
Definition: plat_fru.h:37

◆ plat_fru_config

const EEPROM_CFG plat_fru_config[]
Initial value:
= {
{
},
{
},
}
#define BIC_CONFIG_SIZE
Definition: eeprom.h:39
#define FRU_SIZE
Definition: eeprom.h:30
#define BIC_CONFIG_START
Definition: eeprom.h:38
#define FRU_START
Definition: eeprom.h:29
@ SYS_DAM_ID
Definition: plat_fru.h:35