Translate the DataHub records via EFI_DATA_HUB_PROTOCOL to Smbios recorders \r
via EFI_SMBIOS_PROTOCOL.\r
\r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 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
\r
#include "Thunk.h"\r
\r
-EFI_GUID ZeroGuid = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } };\r
EFI_SMBIOS_PROTOCOL *mSmbiosProtocol = NULL;\r
\r
/**\r
// Find a matching entry in the conversion table for this\r
// (SubClass, RecordNumber) pair\r
//\r
- for (; !CompareGuid (&(mConversionTable[Index].SubClass), &ZeroGuid); Index++) {\r
+ for (; !CompareGuid (&(mConversionTable[Index].SubClass), &gZeroGuid); Index++) {\r
if (CompareGuid (\r
&(mConversionTable[Index].SubClass),\r
&(RecordHeader->DataRecordGuid)\r
}\r
}\r
\r
- if (CompareGuid (&(mConversionTable[Index].SubClass), &ZeroGuid)) {\r
+ if (CompareGuid (&(mConversionTable[Index].SubClass), &gZeroGuid)) {\r
//\r
// We cannot find a matching entry in conversion table,\r
// this means this data record cannot be used for SMBIOS.\r
StructureNode->SmbiosType = Conversion->SmbiosType;\r
}\r
\r
- StructureNode->SmbiosHandle = 0;\r
+ StructureNode->SmbiosHandle = SMBIOS_HANDLE_PI_RESERVED;\r
Status = SmbiosProtocolCreateRecord (\r
NULL, \r
StructureNode\r
EFI_SMBIOS_TABLE_HEADER *RecordInSmbiosDatabase;\r
EFI_STATUS Status;\r
\r
- SearchingHandle = 0;\r
+ SearchingHandle = SMBIOS_HANDLE_PI_RESERVED;\r
Smbios = GetSmbiosProtocol();\r
ASSERT (Smbios != NULL);\r
\r