TianoCore EDK2 master
Loading...
Searching...
No Matches
RedfishHostInterfaceIpmi.h
Go to the documentation of this file.
1
8#ifndef REDFISH_HOST_INTERFACE_IPMI_H_
9#define REDFISH_HOST_INTERFACE_IPMI_H_
10
11#include <Uefi.h>
13
14#define REDFISH_IPMI_GROUP_EXTENSION 0x52
15#define REDFISH_IPMI_GET_BOOTSTRAP_CREDENTIALS_CMD 0x02
16#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_ENABLE 0xA5
17#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_DISABLE 0x00
18#define REDFISH_IPMI_COMP_CODE_BOOTSTRAP_CREDENTIAL_DISABLED 0x80
19
23//
24#define USERNAME_MAX_LENGTH 16
25#define PASSWORD_MAX_LENGTH 16
26#define USERNAME_MAX_SIZE (USERNAME_MAX_LENGTH + 1) // NULL terminator
27#define PASSWORD_MAX_SIZE (PASSWORD_MAX_LENGTH + 1) // NULL terminator
28
29#pragma pack(1)
30
34typedef struct {
35 UINT8 GroupExtensionId;
36 UINT8 DisableBootstrapControl;
38
42typedef struct {
43 UINT8 CompletionCode;
44 UINT8 GroupExtensionId;
45 CHAR8 Username[USERNAME_MAX_LENGTH];
46 CHAR8 Password[PASSWORD_MAX_LENGTH];
48
49#pragma pack()
50
51#endif
#define USERNAME_MAX_LENGTH