Hariharasubramanian R | 4447309 | 2015-10-15 08:25:28 -0500 | [diff] [blame] | 1 | #ifndef OPENBMC_IPMI_FRU_PARSER_H |
| 2 | #define OPENBMC_IPMI_FRU_PARSER_H |
| 3 | |
| 4 | /* Parse an IPMI write fru data message into a dictionary containing name value pair of VPD entries.*/ |
| 5 | int parse_fru (const void* msgbuf, sd_bus_message* vpdtbl); |
Hariharasubramanian R | c2d7946 | 2015-10-16 06:47:56 -0500 | [diff] [blame] | 6 | int parse_fru_area (const uint8_t area, const void* msgbuf, const uint8_t len, sd_bus_message* vpdtbl); |
| 7 | |
| 8 | enum openbmc_ipmi_fru_area_type |
| 9 | { |
| 10 | IPMI_FRU_AREA_INTERNAL_USE = 0x00, |
| 11 | IPMI_FRU_AREA_CHASSIS_INFO, |
| 12 | IPMI_FRU_AREA_BOARD_INFO, |
| 13 | IPMI_FRU_AREA_PRODUCT_INFO, |
| 14 | IPMI_FRU_AREA_MULTI_RECORD, |
| 15 | IPMI_FRU_AREA_TYPE_MAX |
| 16 | } |
Hariharasubramanian R | 4447309 | 2015-10-15 08:25:28 -0500 | [diff] [blame] | 17 | |
| 18 | #endif |