#define _DATA_HUB_GEN_H_\r
\r
#include <FrameworkDxe.h>\r
-#include <IndustryStandard/Smbios.h>\r
+#include <IndustryStandard/SmBios.h>\r
\r
#include <Guid/HobList.h>\r
-#include <Guid/Smbios.h>\r
+#include <Guid/SmBios.h>\r
#include <Guid/DataHubProducer.h>\r
#include <Guid/DataHubRecords.h>\r
\r
-#include <Protocol/Datahub.h>\r
+#include <Protocol/DataHub.h>\r
#include <Protocol/FrameworkHii.h>\r
#include <Protocol/HiiDatabase.h>\r
\r
// According to UEFI Spec, we should make sure Smbios table, \r
// ACPI table and Mps tables kept in memory of specified type\r
//\r
- ConvertSystemTable(TableGuidArray[Index], &Table);\r
+ ConvertSystemTable(TableGuidArray[Index], (VOID**)&Table);\r
gBS->InstallConfigurationTable (TableGuidArray[Index], (VOID *)Table);\r
}\r
}\r
}\r
\r
#define EFI_LDR_MEMORY_DESCRIPTOR_GUID \\r
- { 0x7701d7e5, 0x7d1d, 0x4432, 0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 }\r
+ { 0x7701d7e5, 0x7d1d, 0x4432, {0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 }}\r
\r
EFI_GUID gEfiLdrMemoryDescriptorGuid = EFI_LDR_MEMORY_DESCRIPTOR_GUID;\r
\r
if (MemoryDescHob.MemDesc[Index].PhysicalStart < 0x100000) {\r
continue;\r
}\r
- if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000) {\r
+ if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000ULL) {\r
continue;\r
}\r
if ((MemoryDescHob.MemDesc[Index].Type == EfiReservedMemoryType) ||\r
Status = gBS->HandleProtocol (\r
DeviceHandle,\r
&gEfiDevicePathProtocolGuid,\r
- &DevicePath\r
+ (VOID*)&DevicePath\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
// Add all the child handles as possible Console Device\r
//\r
for (Index = 0; Index < GopHandleCount; Index++) {\r
- Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, &TempDevicePath);\r
+ Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID*)&TempDevicePath);\r
if (EFI_ERROR (Status)) {\r
continue;\r
}\r
Status = gBS->HandleProtocol (\r
DeviceHandle,\r
&gEfiDevicePathProtocolGuid,\r
- &DevicePath\r
+ (VOID*)&DevicePath\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
Status = gBS->HandleProtocol (\r
DeviceHandle,\r
&gEfiDevicePathProtocolGuid,\r
- &DevicePath\r
+ (VOID*)&DevicePath\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
\r
for (Index = 0; Index < HandleCount; Index++) {\r
- Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, &PciIo);\r
+ Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID*)&PciIo);\r
if (EFI_ERROR (Status)) {\r
continue;\r
}\r
\r
#include <IndustryStandard/Pci.h>\r
#include <IndustryStandard/Acpi.h>\r
-#include <IndustryStandard/Smbios.h>\r
+#include <IndustryStandard/SmBios.h>\r
#include <IndustryStandard/LegacyBiosMpTable.h>\r
\r
#include <Library/DebugLib.h>\r
\r
#include <Guid/Bmp.h>\r
#include <Guid/Acpi.h>\r
-#include <Guid/Smbios.h>\r
+#include <Guid/SmBios.h>\r
#include <Guid/Mps.h>\r
#include <Guid/HobList.h>\r
#include <Guid/PciExpressBaseAddress.h>\r