blob: e9edd13a6855baa904584b30415e35e1a6158002 [file] [log] [blame]
Ben Pai44cee312020-03-16 15:24:46 +08001#pragma once
2
3#include <ipmid/api.h>
4#include <stdint.h>
5
6#include <map>
7#include <string>
8
9// IPMI commands for net functions.
10enum ipmi_netfn_oem_cmds
11{
12 IPMI_CMD_DETECT_RISERF = 0x01,
13};
14
15constexpr int initError = -1; /* The parameter of definition error */
16constexpr unsigned char command = 0; /* The parameter of smbus command */
17constexpr unsigned char a[] = {
18 0x00, 0x00}; /* The response data : CPU0 & CPU1 are not present */
19constexpr unsigned char b[] = {
20 0x00, 0x01}; /* The response data : CPU1 is present but CPU0 isn't */
21constexpr unsigned char c[] = {
22 0x01, 0x00}; /* The response data : CPU0 is present but CPU1 isn't */
23constexpr unsigned char d[] = {
24 0x01, 0x01}; /* The response data : CPU0 & CPU1 are present */
25
26ipmi_ret_t ipmi_wistron_detect_riserf(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
27 ipmi_request_t request,
28 ipmi_response_t response,
29 ipmi_data_len_t data_len,
30 ipmi_context_t context);