]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/IpmiNetFnStorage.h
MdePkg: UefiTcgPlatform.h: Add TCG_PCR_EVENT2_HDR definition
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / IpmiNetFnStorage.h
index 45c7d19f14dd6a19556f21dbc427fab175687cb4..7abcd4a3be4e9f559fc47894a9ae480e68d39d9b 100644 (file)
@@ -5,6 +5,7 @@
     FRU Inventory Commands (Chapter 34)\r
     SDR Repository (Chapter 33)\r
     System Event Log(SEL) Commands (Chapter 31)\r
+    SEL Record Formats (Chapter 32)\r
 \r
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
@@ -89,6 +90,7 @@ typedef struct {
 //  Constants and Structure definitions for "Get SDR Repository Info" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8   CompletionCode;\r
   UINT8   Version;\r
   UINT16  RecordCount;\r
   UINT16  FreeSpace;\r
@@ -101,7 +103,7 @@ typedef struct {
   UINT8   Reserved : 1;\r
   UINT8   SdrRepUpdateOp : 2;\r
   UINT8   Overflow : 1;\r
-} IPMI_SDR_REPOSITORY_INFO;\r
+} IPMI_GET_SDR_REPOSITORY_INFO;\r
 \r
 //\r
 //  Definitions for Get SDR Repository Allocateion Info command\r
@@ -281,7 +283,7 @@ typedef struct {
   UINT16      RecordId;\r
   UINT8       RecordOffset;\r
   UINT8       BytesToRead;\r
-} IPMI_GET_SDR;\r
+} IPMI_GET_SDR_REQUEST;\r
 \r
 //\r
 //  Definitions for Add SDR command\r
@@ -377,13 +379,14 @@ typedef struct {
 //  Constants and Structure definitions for "Get SEL Info" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8   CompletionCode;\r
   UINT8   Version;              // Version of SEL\r
   UINT16  NoOfEntries;          // No of Entries in the SEL\r
   UINT16  FreeSpace;            // Free space in Bytes\r
   UINT32  RecentAddTimeStamp;   // Most Recent Addition of Time Stamp\r
   UINT32  RecentEraseTimeStamp; // Most Recent Erasure of Time Stamp\r
   UINT8   OperationSupport;     // Operation Support\r
-} IPMI_SEL_INFO;\r
+} IPMI_GET_SEL_INFO_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get SEL Allocation Info command\r
@@ -411,14 +414,12 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get SEL Entry" command to follow here\r
 //\r
-#define IPMI_COMPLETE_SEL_RECORD 0xFF\r
-\r
 typedef struct {\r
   UINT8 ReserveId[2]; // Reservation ID, LS Byte First\r
   UINT8 SelRecID[2];  // Sel Record ID, LS Byte First\r
   UINT8 Offset;       // Offset Into Record\r
   UINT8 BytesToRead;  // Bytes to be Read, 0xFF for entire record\r
-} IPMI_GET_SEL_ENTRY;\r
+} IPMI_GET_SEL_ENTRY_REQUEST;\r
 \r
 //\r
 //  Definitions for Add SEL Entry command\r
@@ -428,34 +429,6 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Add SEL Entry" command to follow here\r
 //\r
-typedef struct {\r
-  UINT16  RecordId;\r
-  UINT8   RecordType;\r
-  UINT32  TimeStamp;\r
-  UINT16  GeneratorId;\r
-  UINT8   EvMRevision;\r
-  UINT8   SensorType;\r
-  UINT8   SensorNumber;\r
-  UINT8   EventDirType;\r
-  UINT8   OEMEvData1;\r
-  UINT8   OEMEvData2;\r
-  UINT8   OEMEvData3;\r
-} IPMI_SEL_RECORD_DATA;\r
-\r
-#define IPMI_SEL_SYSTEM_RECORD                     0x02\r
-\r
-#define IPMI_EVM_REVISION                          0x04\r
-#define IPMI_BIOS_ID                               0x18\r
-#define IPMI_FORMAT_REV                            0x00\r
-#define IPMI_FORMAT_REV1                           0x01\r
-#define IPMI_SOFTWARE_ID                           0x01\r
-#define IPMI_PLATFORM_VAL_ID                       0x01\r
-#define IPMI_GENERATOR_ID(i,f)                     ((i << 1) | (f << 1) | IPMI_SOFTWARE_ID)\r
-\r
-#define IPMI_SENSOR_TYPE_EVENT_CODE_DISCRETE       0x6F\r
-\r
-#define IPMI_OEM_SPECIFIC_DATA                     0x02\r
-#define IPMI_SENSOR_SPECIFIC_DATA                  0x03\r
 \r
 //\r
 //  Definitions for Partial Add SEL Entry command\r
@@ -477,7 +450,7 @@ typedef struct {
 typedef struct {\r
   UINT8 ReserveId[2];       // Reservation ID, LS byte first\r
   UINT8 RecordToDelete[2];  // Record to Delete, LS Byte First\r
-} IPMI_DELETE_SEL;\r
+} IPMI_DELETE_SEL_REQUEST;\r
 \r
 //\r
 //  Definitions for Clear SEL command\r
@@ -493,7 +466,7 @@ typedef struct {
   UINT8 AscL;       // Ascii for 'L' (0x4c)\r
   UINT8 AscR;       // Ascii for 'R' (0x52)\r
   UINT8 Erase;      // 0xAA, Initiate Erase, 0x00 Get Erase Status\r
-} IPMI_CLEAR_SEL;\r
+} IPMI_CLEAR_SEL_REQUEST;\r
 \r
 //\r
 //  Definitions for Get SEL Time command\r
@@ -530,5 +503,40 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Set Auxillary Log Status" command to follow here\r
 //\r
+\r
+#define IPMI_COMPLETE_SEL_RECORD 0xFF\r
+\r
+//\r
+//  Below is Definitions for SEL Record Formats (Chapter 32)\r
+//\r
+typedef struct {\r
+  UINT16  RecordId;\r
+  UINT8   RecordType;\r
+  UINT32  TimeStamp;\r
+  UINT16  GeneratorId;\r
+  UINT8   EvMRevision;\r
+  UINT8   SensorType;\r
+  UINT8   SensorNumber;\r
+  UINT8   EventDirType;\r
+  UINT8   OEMEvData1;\r
+  UINT8   OEMEvData2;\r
+  UINT8   OEMEvData3;\r
+} IPMI_SEL_EVENT_RECORD_DATA;\r
+\r
+#define IPMI_SEL_SYSTEM_RECORD                     0x02\r
+\r
+#define IPMI_EVM_REVISION                          0x04\r
+#define IPMI_BIOS_ID                               0x18\r
+#define IPMI_FORMAT_REV                            0x00\r
+#define IPMI_FORMAT_REV1                           0x01\r
+#define IPMI_SOFTWARE_ID                           0x01\r
+#define IPMI_PLATFORM_VAL_ID                       0x01\r
+#define IPMI_GENERATOR_ID(i,f)                     ((i << 1) | (f << 1) | IPMI_SOFTWARE_ID)\r
+\r
+#define IPMI_SENSOR_TYPE_EVENT_CODE_DISCRETE       0x6F\r
+\r
+#define IPMI_OEM_SPECIFIC_DATA                     0x02\r
+#define IPMI_SENSOR_SPECIFIC_DATA                  0x03\r
+\r
 #pragma pack()\r
 #endif\r