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 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
+ (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP<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
{\r
0x19,\r
L" FBD2"\r
+ },\r
+ {\r
+ 0x1A,\r
+ L" DDR4"\r
+ },\r
+ {\r
+ 0x1B,\r
+ L" LPDDR"\r
+ },\r
+ {\r
+ 0x1C,\r
+ L" LPDDR2"\r
+ },\r
+ {\r
+ 0x1D,\r
+ L" LPDDR3"\r
+ },\r
+ {\r
+ 0x1E,\r
+ L" LPDDR4"\r
}\r
};\r
\r
L" Integrated Refrigeration "\r
},\r
{\r
- 0x0A,\r
+ 0x10,\r
L" Active Cooling "\r
},\r
{\r
- 0x0B,\r
+ 0x11,\r
L" Passive Cooling "\r
},\r
};\r
42,\r
L" Management Controller Host Interface"\r
},\r
+ {\r
+ 43,\r
+ L" TPM Device"\r
+ },\r
{\r
0x7E,\r
L" Inactive"\r
//\r
if ((High > Low && Key >= Low && Key <= High) \r
|| (Table[Index].Key == Key)) {\r
- StrnCpy (Info, Table[Index].Info, InfoLen-1);\r
- StrnCat (Info, L"\n", InfoLen - 1 - StrLen(Info));\r
+ StrnCpyS (Info, InfoLen, Table[Index].Info, InfoLen - 1);\r
+ StrnCatS (Info, InfoLen, L"\n", InfoLen - 1 - StrLen(Info));\r
return Key;\r
}\r
}\r
\r
- StrnCpy (Info, L"Undefined Value\n", InfoLen - 1);\r
+ StrCpyS (Info, InfoLen, L"Undefined Value\n");\r
return QUERY_TABLE_UNFOUND;\r
}\r
\r