代码拉取完成,页面将自动刷新
#ifndef __IPMI_WRITE_FRU_DATA_H__
#define __IPMI_WRITE_FRU_DATA_H__
#include <sdbusplus/bus.hpp>
// IPMI commands for Storage net functions.
enum ipmi_netfn_storage_cmds
{
IPMI_CMD_WRITE_FRU_DATA = 0x12
};
// Format of write fru data command
struct write_fru_data_t
{
uint8_t frunum;
uint8_t offsetls;
uint8_t offsetms;
uint8_t data;
} __attribute__((packed));
// Per IPMI v2.0 FRU specification
struct common_header
{
uint8_t fixed;
uint8_t internal_offset;
uint8_t chassis_offset;
uint8_t board_offset;
uint8_t product_offset;
uint8_t multi_offset;
uint8_t pad;
uint8_t crc;
} __attribute__((packed));
// first byte in header is 1h per IPMI V2 spec.
#define IPMI_FRU_HDR_BYTE_ZERO 1
#define IPMI_FRU_INTERNAL_OFFSET offsetof(struct common_header, internal_offset)
#define IPMI_FRU_CHASSIS_OFFSET offsetof(struct common_header, chassis_offset)
#define IPMI_FRU_BOARD_OFFSET offsetof(struct common_header, board_offset)
#define IPMI_FRU_PRODUCT_OFFSET offsetof(struct common_header, product_offset)
#define IPMI_FRU_MULTI_OFFSET offsetof(struct common_header, multi_offset)
#define IPMI_FRU_HDR_CRC_OFFSET offsetof(struct common_header, crc)
#define IPMI_EIGHT_BYTES 8
#define IPMI_FRU_MULTIREC_HDR_BYTES 5
/**
* Validate a FRU.
*
* @param[in] fruid - The ID to use for this FRU.
* @param[in] fruFilename - the filename of the FRU.
* @param[in] bus - an sdbusplus systemd bus for publishing the information.
* @param[in] bmcOnlyFru - If a particular area accessible only by BMC.
*/
int validateFRUArea(const uint8_t fruid, const char* fruFilename,
sdbusplus::bus_t& bus, const bool bmcOnlyFru);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。