2 Legacy BIOS Platform support
4 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are
7 licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef LEGACY_BIOS_PLATFORM_H_
17 #define LEGACY_BIOS_PLATFORM_H_
19 #include <FrameworkDxe.h>
21 #include <Protocol/PciIo.h>
22 #include <Protocol/PciRootBridgeIo.h>
23 #include <Protocol/DevicePath.h>
24 #include <Protocol/LegacyInterrupt.h>
25 #include <Protocol/LegacyRegion2.h>
26 #include <Protocol/LegacyBiosPlatform.h>
27 #include <Protocol/FirmwareVolume.h>
28 #include <Protocol/DiskInfo.h>
30 #include <Library/UefiDriverEntryPoint.h>
31 #include <Library/UefiBootServicesTableLib.h>
32 #include <Library/UefiRuntimeServicesTableLib.h>
33 #include <Library/DebugLib.h>
34 #include <Library/BaseMemoryLib.h>
35 #include <Library/MemoryAllocationLib.h>
36 #include <Library/IoLib.h>
37 #include <Library/PciLib.h>
38 #include <Library/PcdLib.h>
39 #include <Library/DxeServicesLib.h>
40 #include <Library/DevicePathLib.h>
42 #include <IndustryStandard/Pci.h>
45 // PIRQ information constants.
47 #define MAX_IRQ_ROUTING_ENTRIES 6
48 #define MAX_IRQ_PRIORITY_ENTRIES 7
50 #define V_INTEL_VENDOR_ID 0x8086
51 #define V_PIIX4_IDE_DEVICE_ID 0x7010
69 EFI_LEGACY_PIRQ_TABLE_HEADER PirqTable
;
70 EFI_LEGACY_IRQ_ROUTING_ENTRY IrqRoutingEntry
[MAX_IRQ_ROUTING_ENTRIES
];
71 } EFI_LEGACY_PIRQ_TABLE
;
89 EFI_LEGACY_BIOS_PLATFORM_PROTOCOL LegacyBiosPlatform
;
90 EFI_HANDLE ImageHandle
;
91 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
*PciRootBridgeIo
;
92 } LEGACY_BIOS_PLATFORM_INSTANCE
;
94 #define LEGACY_BIOS_PLATFORM_INSTANCE_SIGNATURE SIGNATURE_32('P','B','I','O')
96 #define LEGACY_BIOS_PLATFORM_INSTANCE_FROM_THIS(this) \
98 LEGACY_BIOS_PLATFORM_INSTANCE, \
100 LEGACY_BIOS_PLATFORM_INSTANCE_SIGNATURE \