]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/SmbiosView: SMBIOS 3.3.0 add PCI gen4 values for type 9
authorGao, Zhichao <zhichao.gao@intel.com>
Tue, 12 Nov 2019 03:48:57 +0000 (09:18 +0530)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 14 Nov 2019 03:06:27 +0000 (03:06 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2305

System Slots (Type 9):
- SMBIOSCR00184: add PCI Express Gen 4 values

Add the SmBios.h to use the MARCOs or enums.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.h

index fdb7a47d33250fc2c244d6196b88e836099ce913..94d995bda1eb3197923d97326f215a988e23add6 100644 (file)
@@ -2,7 +2,7 @@
   Build a table, each item is (Key, Info) pair.\r
   And give a interface of query a string out of a table.\r
 \r
-  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -1523,6 +1523,30 @@ TABLE_ITEM  SystemSlotTypeTable[] = {
   {\r
     0xB6,\r
     L"PCI Express Gen 3 X16"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4,\r
+    L"PCI Express Gen 4"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4X1,\r
+    L"PCI Express Gen 4 X1"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4X2,\r
+    L"PCI Express Gen 4 X2"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4X4,\r
+    L"PCI Express Gen 4 X4"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4X8,\r
+    L"PCI Express Gen 4 X8"\r
+  },\r
+  {\r
+    SlotTypePciExpressGen4X16,\r
+    L"PCI Express Gen 4 X16"\r
   }\r
 };\r
 \r
index 60fb42c59c341c252bf9f0269eaeae279f1f6e44..756009b2f2a1a717573d85432590b0e48fb76a78 100644 (file)
@@ -2,7 +2,7 @@
   Build a table, each item is (key, info) pair.\r
   and give a interface of query a string out of a table.\r
 \r
-  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -10,6 +10,8 @@
 #ifndef _SMBIOS_QUERY_TABLE_H_\r
 #define _SMBIOS_QUERY_TABLE_H_\r
 \r
+#include <IndustryStandard/SmBios.h>\r
+\r
 #define QUERY_TABLE_UNFOUND 0xFF\r
 \r
 typedef struct TABLE_ITEM {\r