mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
add chassis power control vals
This commit is contained in:
parent
b65ec95257
commit
d5d36e1941
@ -95,6 +95,18 @@
|
|||||||
#define IPMI_CHANNEL_MEDIUM_USB_2 0xb
|
#define IPMI_CHANNEL_MEDIUM_USB_2 0xb
|
||||||
#define IPMI_CHANNEL_MEDIUM_SYSTEM 0xc
|
#define IPMI_CHANNEL_MEDIUM_SYSTEM 0xc
|
||||||
|
|
||||||
|
#define IPMI_CHASSIS_CTL_POWER_DOWN 0x0
|
||||||
|
#define IPMI_CHASSIS_CTL_POWER_UP 0x1
|
||||||
|
#define IPMI_CHASSIS_CTL_POWER_CYCLE 0x2
|
||||||
|
#define IPMI_CHASSIS_CTL_HARD_RESET 0x3
|
||||||
|
#define IPMI_CHASSIS_CTL_PULSE_DIAG 0x4
|
||||||
|
#define IPMI_CHASSIS_CTL_ACPI_SOFT 0x5
|
||||||
|
|
||||||
|
#define IPMI_CHASSIS_POLICY_NO_CHANGE 0x3
|
||||||
|
#define IPMI_CHASSIS_POLICY_ALWAYS_ON 0x2
|
||||||
|
#define IPMI_CHASSIS_POLICY_PREVIOUS 0x1
|
||||||
|
#define IPMI_CHASSIS_POLICY_ALWAYS_OFF 0x0
|
||||||
|
|
||||||
/* From table 13-17 of the IPMI v2 specification */
|
/* From table 13-17 of the IPMI v2 specification */
|
||||||
#define IPMI_AUTH_RAKP_NONE 0x00
|
#define IPMI_AUTH_RAKP_NONE 0x00
|
||||||
#define IPMI_AUTH_RAKP_HMAC_SHA1 0x01
|
#define IPMI_AUTH_RAKP_HMAC_SHA1 0x01
|
||||||
|
@ -51,6 +51,7 @@ extern const struct valstr ipmi_authtype_session_vals[];
|
|||||||
extern const struct valstr ipmi_authtype_vals[];
|
extern const struct valstr ipmi_authtype_vals[];
|
||||||
extern const struct valstr ipmi_channel_protocol_vals[];
|
extern const struct valstr ipmi_channel_protocol_vals[];
|
||||||
extern const struct valstr ipmi_channel_medium_vals[];
|
extern const struct valstr ipmi_channel_medium_vals[];
|
||||||
|
extern const struct valstr ipmi_chassis_power_control_vals[];
|
||||||
extern const struct valstr ipmi_auth_algorithms[];
|
extern const struct valstr ipmi_auth_algorithms[];
|
||||||
extern const struct valstr ipmi_integrity_algorithms[];
|
extern const struct valstr ipmi_integrity_algorithms[];
|
||||||
extern const struct valstr ipmi_encryption_algorithms[];
|
extern const struct valstr ipmi_encryption_algorithms[];
|
||||||
|
@ -254,6 +254,16 @@ const struct valstr completion_code_vals[] = {
|
|||||||
{ 0x00, NULL }
|
{ 0x00, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const struct valstr ipmi_chassis_power_control_vals[] = {
|
||||||
|
{ IPMI_CHASSIS_CTL_POWER_DOWN, "Down/Off" },
|
||||||
|
{ IPMI_CHASSIS_CTL_POWER_UP, "Up/On" },
|
||||||
|
{ IPMI_CHASSIS_CTL_POWER_CYCLE, "Cycle" },
|
||||||
|
{ IPMI_CHASSIS_CTL_HARD_RESET, "Reset" },
|
||||||
|
{ IPMI_CHASSIS_CTL_PULSE_DIAG, "Diag" },
|
||||||
|
{ IPMI_CHASSIS_CTL_ACPI_SOFT, "Soft" },
|
||||||
|
{ 0x00, NULL },
|
||||||
|
};
|
||||||
|
|
||||||
const struct valstr ipmi_auth_algorithms[] = {
|
const struct valstr ipmi_auth_algorithms[] = {
|
||||||
{ IPMI_AUTH_RAKP_NONE, "none" },
|
{ IPMI_AUTH_RAKP_NONE, "none" },
|
||||||
{ IPMI_AUTH_RAKP_HMAC_SHA1, "hmac_sha1" },
|
{ IPMI_AUTH_RAKP_HMAC_SHA1, "hmac_sha1" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user