mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Clean up DataHubGenDxe:
1. Fix the structure assignment 2. Removed the unused DXS file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7403 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8c7f0932d6
commit
3eb90413ba
@ -172,7 +172,7 @@ InstallMemoryDataHub (
|
|||||||
DataRecord.Record.ArrayStartAddress.MemoryArrayStartAddress = LShiftU64(SmbiosTable.Type19->StartingAddress, 10);
|
DataRecord.Record.ArrayStartAddress.MemoryArrayStartAddress = LShiftU64(SmbiosTable.Type19->StartingAddress, 10);
|
||||||
DataRecord.Record.ArrayStartAddress.MemoryArrayEndAddress = LShiftU64((UINT64) SmbiosTable.Type19->EndingAddress + 1, 10) - 1;
|
DataRecord.Record.ArrayStartAddress.MemoryArrayEndAddress = LShiftU64((UINT64) SmbiosTable.Type19->EndingAddress + 1, 10) - 1;
|
||||||
|
|
||||||
DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.ProducerName = gEfiMemoryProducerGuid;
|
CopyGuid (&DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.ProducerName, &gEfiMemoryProducerGuid);
|
||||||
DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.Instance = 0;
|
DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.Instance = 0;
|
||||||
DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.SubInstance = EFI_SUBCLASS_INSTANCE_NON_APPLICABLE;
|
DataRecord.Record.ArrayStartAddress.PhysicalMemoryArrayLink.SubInstance = EFI_SUBCLASS_INSTANCE_NON_APPLICABLE;
|
||||||
DataRecord.Record.ArrayStartAddress.MemoryArrayPartitionWidth = (UINT16)(SmbiosTable.Type19->PartitionWidth);
|
DataRecord.Record.ArrayStartAddress.MemoryArrayPartitionWidth = (UINT16)(SmbiosTable.Type19->PartitionWidth);
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
/*++
|
|
||||||
|
|
||||||
Copyright (c) 2006 - 2007, Intel Corporation
|
|
||||||
All rights reserved. This program and the accompanying materials
|
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
|
||||||
http://opensource.org/licenses/bsd-license.php
|
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
DataHub.dxs
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
Dependency expression source file.
|
|
||||||
|
|
||||||
--*/
|
|
||||||
|
|
||||||
|
|
||||||
#include "EfiDepex.h"
|
|
||||||
|
|
||||||
#include EFI_PROTOCOL_DEFINITION (DataHub)
|
|
||||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
|
||||||
#include EFI_PROTOCOL_DEFINITION (HiiDatabase)
|
|
||||||
#else
|
|
||||||
#include EFI_PROTOCOL_DEFINITION (Hii)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DEPENDENCY_START
|
|
||||||
EFI_DATA_HUB_PROTOCOL_GUID AND
|
|
||||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
|
||||||
EFI_HII_DATABASE_PROTOCOL_GUID
|
|
||||||
#else
|
|
||||||
EFI_HII_PROTOCOL_GUID
|
|
||||||
#endif
|
|
||||||
DEPENDENCY_END
|
|
@ -65,3 +65,4 @@
|
|||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
gEfiDataHubProtocolGuid AND gEfiHiiDatabaseProtocolGuid
|
gEfiDataHubProtocolGuid AND gEfiHiiDatabaseProtocolGuid
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user