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

Go to the source code of this file.

Classes

struct  _EEPROM_CFG_
 
struct  _EEPROM_ENTRY_
 

Macros

#define EEPROM_WRITE_SIZE   0x20
 
#define FRU_START   0x0000
 
#define FRU_SIZE   0x0400
 
#define SEL_START   0x0400
 
#define SEL_SIZE   0x0400
 
#define GUID_START   0x0800
 
#define GUID_SIZE   0x0100
 
#define BIC_CONFIG_START   0x0900
 
#define BIC_CONFIG_SIZE   0x0100
 

Typedefs

typedef struct _EEPROM_CFG_ EEPROM_CFG
 
typedef struct _EEPROM_ENTRY_ EEPROM_ENTRY
 

Functions

bool eeprom_write (EEPROM_ENTRY *entry)
 
bool eeprom_read (EEPROM_ENTRY *entry)
 

Macro Definition Documentation

◆ BIC_CONFIG_SIZE

#define BIC_CONFIG_SIZE   0x0100

◆ BIC_CONFIG_START

#define BIC_CONFIG_START   0x0900

◆ EEPROM_WRITE_SIZE

#define EEPROM_WRITE_SIZE   0x20

◆ FRU_SIZE

#define FRU_SIZE   0x0400

◆ FRU_START

#define FRU_START   0x0000

◆ GUID_SIZE

#define GUID_SIZE   0x0100

◆ GUID_START

#define GUID_START   0x0800

◆ SEL_SIZE

#define SEL_SIZE   0x0400

◆ SEL_START

#define SEL_START   0x0400

Typedef Documentation

◆ EEPROM_CFG

typedef struct _EEPROM_CFG_ EEPROM_CFG

◆ EEPROM_ENTRY

typedef struct _EEPROM_ENTRY_ EEPROM_ENTRY

Function Documentation

◆ eeprom_read()

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

◆ eeprom_write()

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