/** @file\r
IPMI 2.0 definitions from the IPMI Specification Version 2.0, Revision 1.1.\r
+ IPMI Platform Management FRU Information Storage Definition v1.0 Revision 1.3.\r
\r
See IPMI specification, Appendix G, Command Assignments\r
and Appendix H, Sub-function Assignments.\r
\r
- Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
**/\r
\r
-#ifndef _IPMIDEFINITIONS_H_\r
-#define _IPMIDEFINITIONS_H_\r
+#ifndef _IPMI_H_\r
+#define _IPMI_H_\r
+\r
+#include <IndustryStandard/IpmiNetFnChassis.h>\r
+#include <IndustryStandard/IpmiNetFnBridge.h>\r
+#include <IndustryStandard/IpmiNetFnSensorEvent.h>\r
+#include <IndustryStandard/IpmiNetFnApp.h>\r
+#include <IndustryStandard/IpmiNetFnFirmware.h>\r
+#include <IndustryStandard/IpmiNetFnStorage.h>\r
+#include <IndustryStandard/IpmiNetFnTransport.h>\r
+#include <IndustryStandard/IpmiNetFnGroupExtension.h>\r
+\r
+#include <IndustryStandard/IpmiFruInformationStorage.h>\r
\r
-#include <IndustryStandard/IpmiNetFnChassisDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnBridgeDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnSensorEventDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnAppDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnFirmwareDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnStorageDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnTransportDefinitions.h>\r
-#include <IndustryStandard/IpmiNetFnGroupExtensionDefinitions.h>\r
+//\r
+// Generic Completion Codes definitions\r
+//\r
+#define IPMI_COMP_CODE_NORMAL 0x00\r
+#define IPMI_COMP_CODE_NODE_BUSY 0xC0\r
+#define IPMI_COMP_CODE_INVALID_COMMAND 0xC1\r
+#define IPMI_COMP_CODE_INVALID_FOR_GIVEN_LUN 0xC2\r
+#define IPMI_COMP_CODE_TIMEOUT 0xC3\r
+#define IPMI_COMP_CODE_OUT_OF_SPACE 0xC4\r
+#define IPMI_COMP_CODE_RESERVATION_CANCELED_OR_INVALID 0xC5\r
+#define IPMI_COMP_CODE_REQUEST_DATA_TRUNCATED 0xC6\r
+#define IPMI_COMP_CODE_INVALID_REQUEST_DATA_LENGTH 0xC7\r
+#define IPMI_COMP_CODE_REQUEST_EXCEED_LIMIT 0xC8\r
+#define IPMI_COMP_CODE_OUT_OF_RANGE 0xC9\r
+#define IPMI_COMP_CODE_CANNOT_RETURN 0xCA\r
+#define IPMI_COMP_CODE_NOT_PRESENT 0xCB\r
+#define IPMI_COMP_CODE_INVALID_DATA_FIELD 0xCC\r
+#define IPMI_COMP_CODE_COMMAND_ILLEGAL 0xCD\r
+#define IPMI_COMP_CODE_CMD_RESP_NOT_PROVIDED 0xCE\r
+#define IPMI_COMP_CODE_FAIL_DUP_REQUEST 0xCF\r
+#define IPMI_COMP_CODE_SDR_REP_IN_UPDATE_MODE 0xD0\r
+#define IPMI_COMP_CODE_DEV_IN_FW_UPDATE_MODE 0xD1\r
+#define IPMI_COMP_CODE_BMC_INIT_IN_PROGRESS 0xD2\r
+#define IPMI_COMP_CODE_DEST_UNAVAILABLE 0xD3\r
+#define IPMI_COMP_CODE_INSUFFICIENT_PRIVILEGE 0xD4\r
+#define IPMI_COMP_CODE_UNSUPPORTED_IN_PRESENT_STATE 0xD5\r
+#define IPMI_COMP_CODE_SUBFUNCTION_DISABLED 0xD6\r
+#define IPMI_COMP_CODE_UNSPECIFIED 0xFF\r
\r
+#define IPMI_CHANNEL_NUMBER_PRIMARY_IPMB 0x00\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_1 0x01\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_2 0x02\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_3 0x03\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_4 0x04\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_5 0x05\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_6 0x06\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_7 0x07\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_8 0x08\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_9 0x09\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_10 0x0A\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_11 0x0B\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_RESERVED_12 0x0C\r
+#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_RESERVED_13 0x0D\r
+#define IPMI_CHANNEL_NUMBER_PRIMARY_PRESENT_IF 0x0E\r
+#define IPMI_CHANNEL_NUMBER_PRIMARY_SYSTEM_INTERFACE 0x0F\r
#endif\r