blob: 64a05624e42c7b3a4caa843b09551e9499011f5b [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
Vishwa4be4b7a2015-10-31 22:55:50 -05004#include <systemd/sd-bus.h>
5
Chris Austenb45c4cb2015-11-01 06:34:56 -06006#ifdef __cplusplus
7extern "C"
8{
9#endif
10
Hariharasubramanian R44473092015-10-15 08:25:28 -050011/* Parse an IPMI write fru data message into a dictionary containing name value pair of VPD entries.*/
12int parse_fru (const void* msgbuf, sd_bus_message* vpdtbl);
Adriana Kobylak81aecc62016-05-12 13:52:47 -050013int parse_fru_area (const uint8_t area, const void* msgbuf, const size_t len, sd_bus_message* vpdtbl);
Hariharasubramanian Rc2d79462015-10-16 06:47:56 -050014
Chris Austenb45c4cb2015-11-01 06:34:56 -060015#ifdef __cplusplus
16}
17#endif
18
Hariharasubramanian Ra032c772015-10-20 07:28:19 -050019enum ipmi_fru_area_type
Hariharasubramanian Rc2d79462015-10-16 06:47:56 -050020{
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 Ra032c772015-10-20 07:28:19 -050027};
Hariharasubramanian R44473092015-10-15 08:25:28 -050028
29#endif