2 The EFI Legacy BIOS Patform Protocol is used to mate a Legacy16
3 implementation with this EFI code. The EFI driver that produces
4 the Legacy BIOS protocol is generic and consumes this protocol.
5 A driver that matches the Legacy16 produces this protocol
7 Copyright (c) 2007,2009 Intel Corporation
8 All rights reserved. This program and the accompanying materials
9 are licensed and made available under the terms and conditions of the BSD License
10 which accompanies this distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 Module Name: LegacyBiosPlatform.h
18 @par Revision Reference:
19 This protocol is defined in Framework for EFI Compatibility Support Module spec
24 #ifndef _EFI_LEGACY_BIOS_PLATFORM_H_
25 #define _EFI_LEGACY_BIOS_PLATFORM_H_
27 #include <FrameworkDxe.h>
29 #define EFI_LEGACY_BIOS_PLATFORM_PROTOCOL_GUID \
31 0x783658a3, 0x4172, 0x4421, {0xa2, 0x99, 0xe0, 0x9, 0x7, 0x9c, 0xc, 0xb4 } \
34 typedef struct _EFI_LEGACY_BIOS_PLATFORM_PROTOCOL EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
;
37 This enum specifies the Mode param values for GetPlatformInfo()
41 /// This mode is invoked twice. The first invocation has LegacySegment and
42 /// LegacyOffset set to 0. The mode returns the MP table address in EFI memory and its size.
43 /// The second invocation has LegacySegment and LegacyOffset set to the location
44 /// in the 0xF0000 or 0xE0000 block to which the MP table is to be copied. The second
45 /// invocation allows any MP table address fix ups to occur in the EFI memory copy of the
46 /// MP table. The caller, not EfiGetPlatformBinaryMpTable, copies the modified MP
47 /// table to the allocated region in 0xF0000 or 0xE0000 block after the second invocation.
49 /// The function parameters associated with this mode are:
51 /// Table Pointer to the MP table.
53 /// TableSize Size in bytes of the MP table.
55 /// Location Location to place table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.
56 /// Bit 0 = 1 0xF0000 64 KB block.
57 /// Bit 1 = 1 0xE0000 64 KB block.
58 /// Multiple bits can be set.
60 /// Alignment Bit mapped address alignment granularity.
61 /// The first nonzero bit from the right is the address granularity.
63 /// LegacySegment Segment where EfiCompatibility code will place the MP table.
65 /// LegacyOffset Offset where EfiCompatibility code will place the MP table.
67 /// The return values associated with this mode are:
69 /// EFI_SUCCESS The MP table was returned.
71 /// EFI_UNSUPPORTED The MP table is not supported on this platform.
73 EfiGetPlatformBinaryMpTable
= 0,
75 /// This mode returns a block of data. The contents and usage is IBV or OEM defined.
76 /// OEMs or IBVs normally use this function for nonstandard Compatibility16 runtime soft
77 /// INTs. It is the responsibility of this routine to coalesce multiple OEM 16 bit functions, if
78 /// they exist, into one coherent package that is understandable by the Compatibility16 code.
79 /// This function is invoked twice. The first invocation has LegacySegment and
80 /// LegacyOffset set to 0. The function returns the table address in EFI memory and its size.
81 /// The second invocation has LegacySegment and LegacyOffset set to the location
82 /// in the 0xF0000 or 0xE0000 block to which the data (table) is to be copied. The second
83 /// invocation allows any data (table) address fix ups to occur in the EFI memory copy of
84 /// the table. The caller, not GetOemIntData(), copies the modified data (table) to the
85 /// allocated region in 0xF0000 or 0xE0000 block after the second invocation.
87 /// The function parameters associated with this mode are:
89 /// Table Pointer to OEM legacy 16 bit code or data.
91 /// TableSize Size of data.
93 /// Location Location to place table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.
94 /// Bit 0 = 1 0xF0000 64 KB block.
95 /// Bit 1 = 1 0xE0000 64 KB block.
96 /// Multiple bits can be set.
98 /// Alignment Bit mapped address alignment granularity.
99 /// The first nonzero bit from the right is the address granularity.
101 /// LegacySegment Segment where EfiCompatibility code will place the table or data.
103 /// LegacyOffset Offset where EfiCompatibility code will place the table or data.
105 /// The return values associated with this mode are:
107 /// EFI_SUCCESS The data was returned successfully.
109 /// EFI_UNSUPPORTED Oem INT is not supported on this platform.
111 EfiGetPlatformBinaryOemIntData
= 1,
113 /// This mode returns a block of data. The contents and usage is IBV defined. OEMs or
114 /// IBVs normally use this mode for nonstandard Compatibility16 runtime 16 bit routines. It
115 /// is the responsibility of this routine to coalesce multiple OEM 16 bit functions, if they
116 /// exist, into one coherent package that is understandable by the Compatibility16 code.
117 /// An example usage might be a legacy mobile BIOS that has a pre existing runtime
118 /// interface to return the battery status to calling applications.
119 /// This mode is invoked twice. The first invocation has LegacySegment and
120 /// LegacyOffset set to 0. The mode returns the table address in EFI memory and its size.
121 /// The second invocation has LegacySegment and LegacyOffset set to the location
122 /// in the 0xF0000 or 0xE0000 block to which the table is to be copied. The second
123 /// invocation allows any table address fix ups to occur in the EFI memory copy of the table.
124 /// The caller, not EfiGetPlatformBinaryOem16Data, copies the modified table to
125 /// the allocated region in 0xF0000 or 0xE0000 block after the second invocation.
127 /// The function parameters associated with this mode are:
129 /// Table Pointer to OEM legacy 16 bit code or data.
131 /// TableSize Size of data.
133 /// Location Location to place the table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.
134 /// Bit 0 = 1 0xF0000 64 KB block.
135 /// Bit 1 = 1 0xE0000 64 KB block.
136 /// Multiple bits can be set.
138 /// Alignment Bit mapped address alignment granularity.
139 /// The first nonzero bit from the right is the address granularity.
141 /// LegacySegment Segment where EfiCompatibility code will place the table or data.
143 /// LegacyOffset Offset where EfiCompatibility code will place the table or data.
145 /// The return values associated with this mode are:
147 /// EFI_SUCCESS The data was returned successfully.
149 /// EFI_UNSUPPORTED Oem16 is not supported on this platform.
151 EfiGetPlatformBinaryOem16Data
= 2,
153 /// This mode returns a block of data. The contents and usage is IBV defined. OEMs or
154 /// IBVs normally use this mode for nonstandard Compatibility16 runtime 32 bit routines. It
155 /// is the responsibility of this routine to coalesce multiple OEM 32 bit functions, if they
156 /// exist, into one coherent package that is understandable by the Compatibility16 code.
157 /// An example usage might be a legacy mobile BIOS that has a pre existing runtime
158 /// interface to return the battery status to calling applications.
159 /// This mode is invoked twice. The first invocation has LegacySegment and
160 /// LegacyOffset set to 0. The mode returns the table address in EFI memory and its size.
162 /// The second invocation has LegacySegment and LegacyOffset set to the location
163 /// in the 0xF0000 or 0xE0000 block to which the table is to be copied. The second
164 /// invocation allows any table address fix ups to occur in the EFI memory copy of the table.
165 /// The caller, not EfiGetPlatformBinaryOem32Data, copies the modified table to
166 /// the allocated region in 0xF0000 or 0xE0000 block after the second invocation..
168 /// Note: There are two generic mechanisms by which this mode can be used.
169 /// - Mechanism 1: This mode returns the data and the Legacy BIOS Protocol copies
170 /// the data into the F0000 or E0000 block in the Compatibility16 code. The
171 /// EFI_COMPATIBILITY16_TABLE entries Oem32Segment and Oem32Offset can
172 /// be viewed as two UINT16 entries.
173 /// - Mechanism 2: This mode directly fills in the EFI_COMPATIBILITY16_TABLE with
174 /// a pointer to the INT15 E820 region containing the 32 bit code. It returns
175 /// EFI_UNSUPPORTED. The EFI_COMPATIBILITY16_TABLE entries,
176 /// Oem32Segment and Oem32Offset, can be viewed as two UINT16 entries or
177 /// as a single UINT32 entry as determined by the IBV.
179 /// The function parameters associated with this mode are:
181 /// TableSize Size of data.
183 /// Location Location to place the table. 0x00 \96 Either 0xE0000 or 0xF0000 64 KB blocks.
184 /// Bit 0 = 1 0xF0000 64 KB block.
185 /// Bit 1 = 1 0xE0000 64 KB block.
186 /// Multiple bits can be set.
188 /// Alignment Bit mapped address alignment granularity.
189 /// The first nonzero bit from the right is the address granularity.
191 /// LegacySegment Segment where EfiCompatibility code will place the table or data.
193 /// LegacyOffset Offset where EfiCompatibility code will place the table or data.
195 /// The return values associated with this mode are:
196 /// EFI_SUCCESS The data was returned successfully.
197 /// EFI_UNSUPPORTED Oem32 is not supported on this platform.
199 EfiGetPlatformBinaryOem32Data
= 3,
201 /// This mode returns a TPM binary image for the onboard TPM device.
203 /// The function parameters associated with this mode are:
205 /// Table TPM binary image for the onboard TPM device.
207 /// TableSize Size of BinaryImage in bytes.
209 /// Location Location to place the table. 0x00. Either 0xE0000 or 0xF0000 64 KB blocks.
210 /// Bit 0 = 1 0xF0000 64 KB block.
211 /// Bit 1 = 1 0xE0000 64 KB block.
212 /// Multiple bits can be set.
214 /// Alignment Bit mapped address alignment granularity.
215 /// The first nonzero bit from the right is the address granularity.
217 /// LegacySegment Segment where EfiCompatibility code will place the table or data.
219 /// LegacyOffset Offset where EfiCompatibility code will place the table or data.
221 /// The return values associated with this mode are:
223 /// EFI_SUCCESS BinaryImage is valid.
225 /// EFI_UNSUPPORTED Mode is not supported on this platform.
227 /// EFI_NOT_FOUND No BinaryImage was found.
229 EfiGetPlatformBinaryTpmBinary
= 4,
231 /// The mode finds the Compatibility16 \93ROM\94 image.
233 /// The function parameters associated with this mode are:
235 /// System ROM image for the platform
237 /// TableSize Size of Table in bytes
241 /// Alignment Ignored
243 /// LegacySegment Ignored
245 /// LegacyOffset Ignored
247 /// The return values associated with this mode are:
249 /// EFI_SUCCESS ROM image found.
251 /// EFI_NOT_FOUND ROM not found.
253 EfiGetPlatformBinarySystemRom
= 5,
255 /// This mode returns the Base address of PciExpress memory mapped configuration
258 /// The function parameters associated with this mode are:
260 /// Table System ROM image for the platform
262 /// TableSize Size of Table in bytes
266 /// Alignment Ignored
268 /// LegacySegment Ignored
270 /// LegacyOffset Ignored
272 /// The return values associated with this mode are:
274 /// EFI_SUCCESS Address is valid.
276 /// EFI_UNSUPPORTED System does not PciExpress.
278 EfiGetPlatformPciExpressBase
= 6,
280 EfiGetPlatformPmmSize
= 7,
282 EfiGetPlatformEndOpromShadowAddr
= 8,
284 } EFI_GET_PLATFORM_INFO_MODE
;
287 This enum specifies the Mode param values for GetPlatformHandle()
291 /// This mode returns the Compatibility16 policy for the device that should be the VGA
292 /// controller used during a Compatibility16 boot.
294 /// The function parameters associated with this mode are:
298 /// HandleBuffer Buffer of all VGA handles found.
300 /// HandleCount Number of VGA handles found.
302 /// AdditionalData NULL
304 EfiGetPlatformVgaHandle
= 0,
306 /// This mode returns the Compatibility16 policy for the device that should be the IDE
307 /// controller used during a Compatibility16 boot.
309 /// The function parameters associated with this mode are:
313 /// HandleBuffer Buffer of all IDE handles found.
315 /// HandleCount Number of IDE handles found
317 /// AdditionalData Pointer to HddInfo.
318 /// Information about all onboard IDE controllers.
320 EfiGetPlatformIdeHandle
= 1,
322 /// This mode returns the Compatibility16 policy for the device that should be the ISA bus
323 /// controller used during a Compatibility16 boot.
325 /// The function parameters associated with this mode are:
329 /// HandleBuffer Buffer of all ISA bus handles found.
331 /// HandleCount Number of ISA bus handles found.
333 /// AdditionalData NULL
335 EfiGetPlatformIsaBusHandle
= 2,
337 /// This mode returns the Compatibility16 policy for the device that should be the USB
338 /// device used during a Compatibility16 boot.
340 /// The function parameters associated with this mode are:
344 /// HandleBuffer Buffer of all USB handles found.
346 /// HandleCount Number of USB bus handles found.
348 /// AdditionalData NULL
350 EfiGetPlatformUsbHandle
= 3
351 } EFI_GET_PLATFORM_HANDLE_MODE
;
354 This enum specifies the Mode param values for PlatformHooks()
355 Note: Any OEM defined hooks start with 0x8000
359 /// This mode allows any preprocessing before scanning OpROMs.
361 /// The function parameters associated with this mode are:
365 /// DeviceHandle Handle of device OpROM is associated with.
367 /// ShadowAddress Address where OpROM is shadowed.
369 /// Compatibility16Table NULL
371 /// AdditionalData NULL
373 EfiPlatformHookPrepareToScanRom
= 0,
375 /// This mode shadows legacy OpROMS that may not have a physical device associated with
376 /// them. It returns EFI_SUCCESS if the ROM was shadowed.
378 /// The function parameters associated with this mode are:
384 /// ShadowAddress First free OpROM area, after other OpROMs have been dispatched..
386 /// Compatibility16Table Pointer to the Compatability16 Table.
388 /// AdditionalData NULL
390 EfiPlatformHookShadowServiceRoms
= 1,
392 /// This mode allows platform to perform any required operation after an OpROM has
393 /// completed its initialization.
395 /// The function parameters associated with this mode are:
399 /// DeviceHandle Handle of device OpROM is associated with.
401 /// ShadowAddress Address where OpROM is shadowed.
403 /// Compatibility16Table NULL
405 /// AdditionalData NULL
407 EfiPlatformHookAfterRomInit
= 2
408 } EFI_GET_PLATFORM_HOOK_MODE
;
416 /// This IRQ has not been assigned to PCI.
418 #define PCI_UNUSED 0x00
420 /// This IRQ has been assigned to PCI.
422 #define PCI_USED 0xFF
424 /// This IRQ has been used by an SIO legacy device and cannot be used by PCI.
433 /// IRQ for this entry.
437 /// Status of this IRQ.
439 /// PCI_UNUSED 0x00. This IRQ has not been assigned to PCI.
441 /// PCI_USED 0xFF. This IRQ has been assigned to PCI.
443 /// LEGACY_USED 0xFE. This IRQ has been used by an SIO legacy
444 /// device and cannot be used by PCI.
447 } EFI_LEGACY_IRQ_PRIORITY_TABLE_ENTRY
;
450 // Define PIR table structures
452 #define EFI_LEGACY_PIRQ_TABLE_SIGNATURE SIGNATURE_32 ('$', 'P', 'I', 'R')
464 /// 0x01 for table version 1.0.
468 /// 0x20 + RoutingTableEntries * 0x10.
472 /// PCI interrupt router bus.
476 /// PCI interrupt router device/function.
480 /// If nonzero, bit map of IRQs reserved for PCI.
484 /// Vendor ID of a compatible PCI interrupt router.
486 UINT16 CompatibleVid
;
488 /// Device ID of a compatible PCI interrupt router.
490 UINT16 CompatibleDid
;
492 /// If nonzero, a value passed directly to the IRQ miniport\92s Initialize function.
496 /// Reserved for future usage.
500 /// This byte plus the sum of all other bytes in the LocalPirqTable equal 0x00.
503 } EFI_LEGACY_PIRQ_TABLE_HEADER
;
508 /// IRQ for this entry.
512 /// Status of this IRQ.
514 /// PCI_UNUSED 0x00. This IRQ has not been assigned to PCI.
516 /// PCI_USED 0xFF. This IRQ has been assigned to PCI.
518 /// LEGACY_USED 0xFE. This IRQ has been used by an SIO legacy
519 /// device and cannot be used by PCI.
522 } EFI_LEGACY_PIRQ_ENTRY
;
526 /// PCI bus of the entry.
530 /// PCI device of this entry.
534 /// An IBV value and IRQ mask for PIRQ pins A through D.
536 EFI_LEGACY_PIRQ_ENTRY PirqEntry
[4];
538 /// If nonzero, the slot number assigned by the board manufacturer.
542 /// Reserved for future use.
545 } EFI_LEGACY_IRQ_ROUTING_ENTRY
;
551 Finds the binary data or other platform information.
553 @param This Protocol instance pointer.
554 @param Mode Specifies what data to return. See See EFI_GET_PLATFORM_INFO_MODE enum.
555 @param Table Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
556 @param TableSize Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
557 @param Location Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
558 @param Alignment Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
559 @param LegacySegment Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
560 @param LegacyOffset Mode specific. See EFI_GET_PLATFORM_INFO_MODE enum.
562 @retval EFI_SUCCESS Data was returned successfully.
563 @retval EFI_UNSUPPORTED Mode is not supported on the platform.
564 @retval EFI_NOT_FOUND Binary image or table not found.
569 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_GET_PLATFORM_INFO
)(
570 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
571 IN EFI_GET_PLATFORM_INFO_MODE Mode
,
573 OUT UINTN
*TableSize
,
575 OUT UINTN
*Alignment
,
576 IN UINT16 LegacySegment
,
577 IN UINT16 LegacyOffset
581 Returns a buffer of handles for the requested subfunction.
583 @param This Protocol instance pointer.
584 @param Mode Specifies what handle to return. See EFI_GET_PLATFORM_HANDLE_MODE enum.
585 @param Type Mode specific. See EFI_GET_PLATFORM_HANDLE_MODE enum.
586 @param HandleBuffer Mode specific. See EFI_GET_PLATFORM_HANDLE_MODE enum.
587 @param HandleCount Mode specific. See EFI_GET_PLATFORM_HANDLE_MODE enum.
588 @param AdditionalData Mode specific. See EFI_GET_PLATFORM_HANDLE_MODE enum.
590 @retval EFI_SUCCESS Handle is valid
591 @retval EFI_UNSUPPORTED Mode is not supported on the platform.
592 @retval EFI_NOT_FOUND Handle is not known
597 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_GET_PLATFORM_HANDLE
)(
598 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
599 IN EFI_GET_PLATFORM_HANDLE_MODE Mode
,
601 OUT EFI_HANDLE
**HandleBuffer
,
602 OUT UINTN
*HandleCount
,
603 IN VOID
**AdditionalData OPTIONAL
607 Load and initialize the Legacy BIOS SMM handler.
609 @param This Protocol instance pointer.
610 @param EfiToLegacy16BootTable Pointer to Legacy16 boot table.
612 @retval EFI_SUCCESS SMM code loaded.
613 @retval EFI_DEVICE_ERROR SMM code failed to load
618 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_SMM_INIT
)(
619 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
620 IN VOID
*EfiToLegacy16BootTable
624 Allows platform to perform any required action after a LegacyBios operation.
625 Invokes the specific sub function specified by Mode.
627 @param This Protocol instance pointer.
628 @param Mode Specifies what handle to return. See EFI_GET_PLATFORM_HOOK_MODE enum.
629 @param Type Mode specific. See EFI_GET_PLATFORM_HOOK_MODE enum.
630 @param DeviceHandle Mode specific. See EFI_GET_PLATFORM_HOOK_MODE enum.
631 @param ShadowAddress Mode specific. See EFI_GET_PLATFORM_HOOK_MODE enum.
632 @param Compatibility16Table Mode specific. See EFI_GET_PLATFORM_HOOK_MODE enum.
633 @param AdditionalData Mode specific. See EFI_GET_PLATFORM_HOOK_MODE enum.
635 @retval EFI_SUCCESS The operation performed successfully, Mode specific.
636 @retval EFI_UNSUPPORTED Mode is not supported on the platform.
641 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_HOOKS
)(
642 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
643 IN EFI_GET_PLATFORM_HOOK_MODE Mode
,
645 IN EFI_HANDLE DeviceHandle
, OPTIONAL
646 IN OUT UINTN
*ShadowAddress
, OPTIONAL
647 IN EFI_COMPATIBILITY16_TABLE
*Compatibility16Table
, OPTIONAL
648 OUT VOID
**AdditionalData OPTIONAL
652 Returns information associated with PCI IRQ routing.
653 This function returns the following information associated with PCI IRQ routing:
654 An IRQ routing table and number of entries in the table
655 The $PIR table and its size
656 A list of PCI IRQs and the priority order to assign them
658 @param This Protocol instance pointer.
659 @param RoutingTable Pointer to PCI IRQ Routing table.
660 This location is the $PIR table minus the header.
661 @param RoutingTableEntries Number of entries in table.
662 @param LocalPirqTable $PIR table
663 @param PirqTableSize $PIR table size
664 @param LocalIrqPriorityTable List of interrupts in priority order to assign
665 @param IrqPriorityTableEntries Number of entries in priority table
667 @retval EFI_SUCCESS Data was successfully returned.
672 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_GET_ROUTING_TABLE
)(
673 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
674 OUT VOID
**RoutingTable
,
675 OUT UINTN
*RoutingTableEntries
,
676 OUT VOID
**LocalPirqTable
, OPTIONAL
677 OUT UINTN
*PirqTableSize
, OPTIONAL
678 OUT VOID
**LocalIrqPriorityTable
, OPTIONAL
679 OUT UINTN
*IrqPriorityTableEntries OPTIONAL
683 Translates the given PIRQ accounting for bridge
684 This function translates the given PIRQ back through all buses, if required,
685 and returns the true PIRQ and associated IRQ.
687 @param This Protocol instance pointer.
688 @param PciBus PCI bus number for this device.
689 @param PciDevice PCI device number for this device.
690 @param PciFunction PCI function number for this device.
691 @param Pirq Input is PIRQ reported by device, output is true PIRQ.
692 @param PciIrq The IRQ already assigned to the PIRQ or the IRQ to be
693 assigned to the PIRQ.
695 @retval EFI_SUCCESS The PIRQ was translated.
700 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_TRANSLATE_PIRQ
)(
701 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
704 IN UINTN PciFunction
,
710 Attempt to legacy boot the BootOption. If the EFI contexted has been
711 compromised this function will not return.
713 @param This Protocol instance pointer.
714 @param BbsDevicePath EFI Device Path from BootXXXX variable.
715 @param BbsTable Internal BBS table.
716 @param LoadOptionSize Size of LoadOption in size.
717 @param LoadOption LoadOption from BootXXXX variable
718 @param EfiToLegacy16BootTable Pointer to BootTable structure
720 @retval EFI_SUCCESS Ready to boot.
725 (EFIAPI
*EFI_LEGACY_BIOS_PLATFORM_PREPARE_TO_BOOT
)(
726 IN EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
*This
,
727 IN BBS_BBS_DEVICE_PATH
*BbsDevicePath
,
729 IN UINT32 LoadOptionsSize
,
730 IN VOID
*LoadOptions
,
731 IN VOID
*EfiToLegacy16BootTable
735 This protocol abstracts the platform portion of the traditional BIOS.
737 struct _EFI_LEGACY_BIOS_PLATFORM_PROTOCOL
{
739 /// Gets binary data or other platform information.
741 EFI_LEGACY_BIOS_PLATFORM_GET_PLATFORM_INFO GetPlatformInfo
;
743 /// Returns a buffer of all handles matching the requested subfunction.
745 EFI_LEGACY_BIOS_PLATFORM_GET_PLATFORM_HANDLE GetPlatformHandle
;
747 /// Loads and initializes the traditional BIOS SMM handler.
748 EFI_LEGACY_BIOS_PLATFORM_SMM_INIT SmmInit
;
750 /// Allows platform to perform any required actions after a LegacyBios operation.
752 EFI_LEGACY_BIOS_PLATFORM_HOOKS PlatformHooks
;
755 EFI_LEGACY_BIOS_PLATFORM_GET_ROUTING_TABLE GetRoutingTable
;
757 /// Translates the given PIRQ to the final value after traversing any PCI bridges.
759 EFI_LEGACY_BIOS_PLATFORM_TRANSLATE_PIRQ TranslatePirq
;
761 /// Final platform function before the system attempts to boot to a traditional OS.
763 EFI_LEGACY_BIOS_PLATFORM_PREPARE_TO_BOOT PrepareToBoot
;
766 extern EFI_GUID gEfiLegacyBiosPlatformProtocolGuid
;