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 | |
Vishwa | 4be4b7a | 2015-10-31 22:55:50 -0500 | [diff] [blame] | 4 | #include <systemd/sd-bus.h> |
| 5 | |
Chris Austen | b45c4cb | 2015-11-01 06:34:56 -0600 | [diff] [blame] | 6 | #ifdef __cplusplus |
| 7 | extern "C" |
| 8 | { |
| 9 | #endif |
| 10 | |
Hariharasubramanian R | 4447309 | 2015-10-15 08:25:28 -0500 | [diff] [blame] | 11 | /* Parse an IPMI write fru data message into a dictionary containing name value pair of VPD entries.*/ |
| 12 | int parse_fru (const void* msgbuf, sd_bus_message* vpdtbl); |
Adriana Kobylak | 81aecc6 | 2016-05-12 13:52:47 -0500 | [diff] [blame] | 13 | int parse_fru_area (const uint8_t area, const void* msgbuf, const size_t len, sd_bus_message* vpdtbl); |
Hariharasubramanian R | c2d7946 | 2015-10-16 06:47:56 -0500 | [diff] [blame] | 14 | |
Chris Austen | b45c4cb | 2015-11-01 06:34:56 -0600 | [diff] [blame] | 15 | #ifdef __cplusplus |
| 16 | } |
| 17 | #endif |
| 18 | |
Hariharasubramanian R | a032c77 | 2015-10-20 07:28:19 -0500 | [diff] [blame] | 19 | enum ipmi_fru_area_type |
Hariharasubramanian R | c2d7946 | 2015-10-16 06:47:56 -0500 | [diff] [blame] | 20 | { |
| 21 | IPMI_FRU_AREA_INTERNAL_USE = 0x00, |
| 22 | IPMI_FRU_AREA_CHASSIS_INFO, |
| 23 | IPMI_FRU_AREA_BOARD_INFO, |
| 24 | IPMI_FRU_AREA_PRODUCT_INFO, |
| 25 | IPMI_FRU_AREA_MULTI_RECORD, |
| 26 | IPMI_FRU_AREA_TYPE_MAX |
Hariharasubramanian R | a032c77 | 2015-10-20 07:28:19 -0500 | [diff] [blame] | 27 | }; |
Hariharasubramanian R | 4447309 | 2015-10-15 08:25:28 -0500 | [diff] [blame] | 28 | |
| 29 | #endif |