2 Legacy BIOS Platform support
4 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef LEGACY_BIOS_PLATFORM_H_
11 #define LEGACY_BIOS_PLATFORM_H_
13 #include <FrameworkDxe.h>
15 #include <Protocol/PciIo.h>
16 #include <Protocol/PciRootBridgeIo.h>
17 #include <Protocol/DevicePath.h>
18 #include <Protocol/LegacyInterrupt.h>
19 #include <Protocol/LegacyRegion2.h>
20 #include <Protocol/LegacyBiosPlatform.h>
21 #include <Protocol/FirmwareVolume.h>
22 #include <Protocol/DiskInfo.h>
24 #include <Library/UefiDriverEntryPoint.h>
25 #include <Library/UefiBootServicesTableLib.h>
26 #include <Library/UefiRuntimeServicesTableLib.h>
27 #include <Library/DebugLib.h>
28 #include <Library/BaseMemoryLib.h>
29 #include <Library/MemoryAllocationLib.h>
30 #include <Library/IoLib.h>
31 #include <Library/PciLib.h>
32 #include <Library/PcdLib.h>
33 #include <Library/DxeServicesLib.h>
34 #include <Library/DevicePathLib.h>
36 #include <IndustryStandard/Pci.h>
39 // PIRQ information constants.
41 #define MAX_IRQ_ROUTING_ENTRIES 6
42 #define MAX_IRQ_PRIORITY_ENTRIES 7
44 #define V_INTEL_VENDOR_ID 0x8086
45 #define V_PIIX4_IDE_DEVICE_ID 0x7010
63 EFI_LEGACY_PIRQ_TABLE_HEADER PirqTable
;
64 EFI_LEGACY_IRQ_ROUTING_ENTRY IrqRoutingEntry
[MAX_IRQ_ROUTING_ENTRIES
];
65 } EFI_LEGACY_PIRQ_TABLE
;
83 EFI_LEGACY_BIOS_PLATFORM_PROTOCOL LegacyBiosPlatform
;
84 EFI_HANDLE ImageHandle
;
85 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
*PciRootBridgeIo
;
86 } LEGACY_BIOS_PLATFORM_INSTANCE
;
88 #define LEGACY_BIOS_PLATFORM_INSTANCE_SIGNATURE SIGNATURE_32('P','B','I','O')
90 #define LEGACY_BIOS_PLATFORM_INSTANCE_FROM_THIS(this) \
92 LEGACY_BIOS_PLATFORM_INSTANCE, \
94 LEGACY_BIOS_PLATFORM_INSTANCE_SIGNATURE \