ipmi_constants.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistribution of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistribution in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. *
  15. * Neither the name of Sun Microsystems, Inc. or the names of
  16. * contributors may be used to endorse or promote products derived
  17. * from this software without specific prior written permission.
  18. *
  19. * This software is provided "AS IS," without a warranty of any kind.
  20. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
  21. * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
  22. * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
  23. * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
  24. * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
  25. * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
  26. * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
  27. * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
  28. * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
  29. * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
  30. * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  31. */
  32. #ifndef IPMI_CONSTANTS_H
  33. #define IPMI_CONSTANTS_H
  34. /*
  35. * COMMANDS
  36. */
  37. #define IPMI_GET_SDR_REPOSITORY_INFO 0x20
  38. #define IPMI_SOL_ACTIVATING 0x20
  39. #define IPMI_SET_SOL_CONFIG_PARAMETERS 0x21
  40. #define IPMI_GET_SOL_CONFIG_PARAMETERS 0x22
  41. #define IPMI_SET_USER_ACCESS 0x43
  42. #define IPMI_GET_USER_ACCESS 0x44
  43. #define IPMI_SET_USER_NAME 0x45
  44. #define IPMI_GET_USER_NAME 0x46
  45. #define IPMI_SET_USER_PASSWORD 0x47
  46. #define IPMI_ACTIVATE_PAYLOAD 0x48
  47. #define IPMI_DEACTIVATE_PAYLOAD 0x49
  48. #define IPMI_SUSPEND_RESUME_PAYLOAD_ENCRYPTYION 0x55
  49. #define IPMI_GET_SEL_TIME 0x48
  50. #define IPMI_SET_SEL_TIME 0x49
  51. #define IPMI_SET_USER_PAYLOAD_ACCESS 0x4c
  52. #define IPMI_GET_USER_PAYLOAD_ACCESS 0x4d
  53. #define IPMI_1_5_AUTH_TYPE_BIT_NONE 0x01
  54. #define IPMI_1_5_AUTH_TYPE_BIT_MD2 0x02
  55. #define IPMI_1_5_AUTH_TYPE_BIT_MD5 0x04
  56. #define IPMI_1_5_AUTH_TYPE_BIT_PASSWORD 0x10
  57. #define IPMI_1_5_AUTH_TYPE_BIT_OEM 0x20
  58. #define IPMI_SESSION_AUTHTYPE_NONE 0x0
  59. #define IPMI_SESSION_AUTHTYPE_MD2 0x1
  60. #define IPMI_SESSION_AUTHTYPE_MD5 0x2
  61. #define IPMI_SESSION_AUTHTYPE_KEY 0x4
  62. #define IPMI_SESSION_AUTHTYPE_PASSWORD IPMI_SESSION_AUTHTYPE_KEY
  63. #define IPMI_SESSION_AUTHTYPE_OEM 0x5
  64. #define IPMI_SESSION_AUTHTYPE_RMCP_PLUS 0x6
  65. #define IPMI_SESSION_PRIV_UNSPECIFIED 0x0
  66. #define IPMI_SESSION_PRIV_CALLBACK 0x1
  67. #define IPMI_SESSION_PRIV_USER 0x2
  68. #define IPMI_SESSION_PRIV_OPERATOR 0x3
  69. #define IPMI_SESSION_PRIV_ADMIN 0x4
  70. #define IPMI_SESSION_PRIV_OEM 0x5
  71. #define IPMI_SET_IN_PROGRESS_SET_COMPLETE 0x00
  72. #define IPMI_SET_IN_PROGRESS_IN_PROGRESS 0x01
  73. #define IPMI_SET_IN_PROGRESS_COMMIT_WRITE 0x02
  74. #define IPMI_CHANNEL_MEDIUM_RESERVED 0x0
  75. #define IPMI_CHANNEL_MEDIUM_IPMB_I2C 0x1
  76. #define IPMI_CHANNEL_MEDIUM_ICMB_1 0x2
  77. #define IPMI_CHANNEL_MEDIUM_ICMB_09 0x3
  78. #define IPMI_CHANNEL_MEDIUM_LAN 0x4
  79. #define IPMI_CHANNEL_MEDIUM_SERIAL 0x5
  80. #define IPMI_CHANNEL_MEDIUM_LAN_OTHER 0x6
  81. #define IPMI_CHANNEL_MEDIUM_SMBUS_PCI 0x7
  82. #define IPMI_CHANNEL_MEDIUM_SMBUS_1 0x8
  83. #define IPMI_CHANNEL_MEDIUM_SMBUS_2 0x9
  84. #define IPMI_CHANNEL_MEDIUM_USB_1 0xa
  85. #define IPMI_CHANNEL_MEDIUM_USB_2 0xb
  86. #define IPMI_CHANNEL_MEDIUM_SYSTEM 0xc
  87. #define IPMI_CHASSIS_CTL_POWER_DOWN 0x0
  88. #define IPMI_CHASSIS_CTL_POWER_UP 0x1
  89. #define IPMI_CHASSIS_CTL_POWER_CYCLE 0x2
  90. #define IPMI_CHASSIS_CTL_HARD_RESET 0x3
  91. #define IPMI_CHASSIS_CTL_PULSE_DIAG 0x4
  92. #define IPMI_CHASSIS_CTL_ACPI_SOFT 0x5
  93. #define IPMI_CHASSIS_POLICY_NO_CHANGE 0x3
  94. #define IPMI_CHASSIS_POLICY_ALWAYS_ON 0x2
  95. #define IPMI_CHASSIS_POLICY_PREVIOUS 0x1
  96. #define IPMI_CHASSIS_POLICY_ALWAYS_OFF 0x0
  97. #define IPMI_CHASSIS_BOOTPARAM_SET_IN_PROGRESS 0
  98. #define IPMI_CHASSIS_BOOTPARAM_SVCPART_SELECT 1
  99. #define IPMI_CHASSIS_BOOTPARAM_SVCPART_SCAN 2
  100. #define IPMI_CHASSIS_BOOTPARAM_FLAG_VALID 3
  101. #define IPMI_CHASSIS_BOOTPARAM_INFO_ACK 4
  102. #define IPMI_CHASSIS_BOOTPARAM_BOOT_FLAGS 5
  103. #define IPMI_CHASSIS_BOOTPARAM_INIT_INFO 6
  104. #define IPMI_CHASSIS_BOOTPARAM_INIT_MBOX 7
  105. /* From table 13-17 of the IPMI v2 specification */
  106. #define IPMI_AUTH_RAKP_NONE 0x00
  107. #define IPMI_AUTH_RAKP_HMAC_SHA1 0x01
  108. #define IPMI_AUTH_RAKP_HMAC_MD5 0x02
  109. #define IPMI_AUTH_RAKP_HMAC_SHA256 0x03
  110. /* From table 13-18 of the IPMI v2 specification */
  111. #define IPMI_INTEGRITY_NONE 0x00
  112. #define IPMI_INTEGRITY_HMAC_SHA1_96 0x01
  113. #define IPMI_INTEGRITY_HMAC_MD5_128 0x02
  114. #define IPMI_INTEGRITY_MD5_128 0x03
  115. #define IPMI_INTEGRITY_HMAC_SHA256_128 0x04
  116. /* From table 13-19 of the IPMI v2 specfication */
  117. #define IPMI_CRYPT_NONE 0x00
  118. #define IPMI_CRYPT_AES_CBC_128 0x01
  119. #define IPMI_CRYPT_XRC4_128 0x02
  120. #define IPMI_CRYPT_XRC4_40 0x03
  121. #endif /*IPMI_CONSTANTS_H*/