blob: b6b9476bd40206e32f1b25afce48245870bcdf4b [file] [log] [blame]
Hariharasubramanian R44473092015-10-15 08:25:28 -05001#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.*/
5int parse_fru (const void* msgbuf, sd_bus_message* vpdtbl);
Hariharasubramanian Rc2d79462015-10-16 06:47:56 -05006int parse_fru_area (const uint8_t area, const void* msgbuf, const uint8_t len, sd_bus_message* vpdtbl);
7
8enum 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 R44473092015-10-15 08:25:28 -050017
18#endif