|
OpenBIC
OpenSource Bridge-IC
|
#include <string.h>#include "plat_i2c.h"#include <libutil.h>#include <stdlib.h>#include <logging/log.h>#include "fru.h"#include "plat_fru.h"#include <time.h>
Classes | |
| struct | ChassisInfo |
| struct | BoardInfo |
| struct | ProductInfo |
| struct | FRU_INFO |
Macros | |
| #define | FRU_START 0x0000 |
| #define | FRU_SIZE 0x0400 |
| #define | CPLD_FRU_START 0x0000 |
| #define | CPLD_FRU_SIZE 0x0400 |
| #define | CHASSIS_CUSTOM_DATA_MAX 24 |
| #define | BOARD_CUSTOM_DATA_MAX 4 |
Functions | |
| LOG_MODULE_REGISTER (plat_fru) | |
| void | pal_load_fru_config (void) |
| bool | plat_eeprom_write (uint32_t offset, uint8_t *data, uint16_t data_len) |
| bool | plat_eeprom_read (uint32_t offset, uint8_t *data, uint16_t data_len) |
| bool | plat_cpld_fru_read (uint32_t offset, uint8_t *data, uint16_t data_len) |
| bool | plat_get_cpld_fru_data (uint8_t *data) |
| FRU_INFO * | create_fru_info (void) |
| bool | init_fru_info (void) |
| void | print_fru_info (void) |
Variables | |
| const EEPROM_CFG | plat_fru_config [] |
| FRU_INFO * | plat_fru_info = NULL |
| #define BOARD_CUSTOM_DATA_MAX 4 |
| #define CHASSIS_CUSTOM_DATA_MAX 24 |
| #define CPLD_FRU_SIZE 0x0400 |
| #define CPLD_FRU_START 0x0000 |
| #define FRU_SIZE 0x0400 |
| #define FRU_START 0x0000 |
| FRU_INFO * create_fru_info | ( | void | ) |
| bool init_fru_info | ( | void | ) |

| LOG_MODULE_REGISTER | ( | plat_fru | ) |
| void pal_load_fru_config | ( | void | ) |
| bool plat_cpld_fru_read | ( | uint32_t | offset, |
| uint8_t * | data, | ||
| uint16_t | data_len | ||
| ) |

| bool plat_eeprom_read | ( | uint32_t | offset, |
| uint8_t * | data, | ||
| uint16_t | data_len | ||
| ) |

| bool plat_eeprom_write | ( | uint32_t | offset, |
| uint8_t * | data, | ||
| uint16_t | data_len | ||
| ) |

| bool plat_get_cpld_fru_data | ( | uint8_t * | data | ) |

| void print_fru_info | ( | void | ) |
| const EEPROM_CFG plat_fru_config[] |
| FRU_INFO* plat_fru_info = NULL |