2 The EFI Legacy BIOS Protocol is used to abstract legacy Option ROM usage
3 under EFI and Legacy OS boot. This file also includes all the related
4 COMPATIBILIY16 structures and defintions.
6 Note: The names for EFI_IA32_REGISTER_SET elements were picked to follow
7 well known naming conventions.
9 Thunk is the code that switches from 32-bit protected environment into the 16-bit real-mode
10 environment. Reverse thunk is the code that does the opposite.
12 Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
13 This program and the accompanying materials are licensed and made available under
14 the terms and conditions of the BSD License that accompanies this distribution.
15 The full text of the license may be found at
16 http://opensource.org/licenses/bsd-license.php.
18 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
19 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 @par Revision Reference:
22 This protocol is defined in Framework for EFI Compatibility Support Module spec
27 #ifndef _EFI_LEGACY_BIOS_H_
28 #define _EFI_LEGACY_BIOS_H_
35 typedef UINT8 SERIAL_MODE;
36 typedef UINT8 PARALLEL_MODE;
38 #define EFI_COMPATIBILITY16_TABLE_SIGNATURE SIGNATURE_32 ('I', 'F', 'E', '$')
41 /// There is a table located within the traditional BIOS in either the 0xF000:xxxx or 0xE000:xxxx
42 /// physical address range. It is located on a 16-byte boundary and provides the physical address of the
43 /// entry point for the Compatibility16 functions. These functions provide the platform-specific
44 /// information that is required by the generic EfiCompatibility code. The functions are invoked via
45 /// thunking by using EFI_LEGACY_BIOS_PROTOCOL.FarCall86() with the 32-bit physical
50 /// The string "$EFI" denotes the start of the EfiCompatibility table. Byte 0 is "I," byte
51 /// 1 is "F," byte 2 is "E," and byte 3 is "$" and is normally accessed as a DWORD or UINT32.
56 /// The value required such that byte checksum of TableLength equals zero.
61 /// The length of this table.
66 /// The major EFI revision for which this table was generated.
68 UINT8 EfiMajorRevision;
71 /// The minor EFI revision for which this table was generated.
73 UINT8 EfiMinorRevision;
76 /// The major revision of this table.
78 UINT8 TableMajorRevision;
81 /// The minor revision of this table.
83 UINT8 TableMinorRevision;
86 /// Reserved for future usage.
91 /// The segment of the entry point within the traditional BIOS for Compatibility16 functions.
93 UINT16 Compatibility16CallSegment;
96 /// The offset of the entry point within the traditional BIOS for Compatibility16 functions.
98 UINT16 Compatibility16CallOffset;
101 /// The segment of the entry point within the traditional BIOS for EfiCompatibility
102 /// to invoke the PnP installation check.
104 UINT16 PnPInstallationCheckSegment;
107 /// The Offset of the entry point within the traditional BIOS for EfiCompatibility
108 /// to invoke the PnP installation check.
110 UINT16 PnPInstallationCheckOffset;
113 /// EFI system resources table. Type EFI_SYSTEM_TABLE is defined in the IntelPlatform
114 ///Innovation Framework for EFI Driver Execution Environment Core Interface Specification (DXE CIS).
116 UINT32 EfiSystemTable;
119 /// The address of an OEM-provided identifier string. The string is null terminated.
121 UINT32 OemIdStringPointer;
124 /// The 32-bit physical address where ACPI RSD PTR is stored within the traditional
125 /// BIOS. The remained of the ACPI tables are located at their EFI addresses. The size
126 /// reserved is the maximum for ACPI 2.0. The EfiCompatibility will fill in the ACPI
127 /// RSD PTR with either the ACPI 1.0b or 2.0 values.
129 UINT32 AcpiRsdPtrPointer;
132 /// The OEM revision number. Usage is undefined but provided for OEM module usage.
137 /// The 32-bit physical address where INT15 E820 data is stored within the traditional
138 /// BIOS. The EfiCompatibility code will fill in the E820Pointer value and copy the
139 /// data to the indicated area.
144 /// The length of the E820 data and is filled in by the EfiCompatibility code.
149 /// The 32-bit physical address where the $PIR table is stored in the traditional BIOS.
150 /// The EfiCompatibility code will fill in the IrqRoutingTablePointer value and
151 /// copy the data to the indicated area.
153 UINT32 IrqRoutingTablePointer;
156 /// The length of the $PIR table and is filled in by the EfiCompatibility code.
158 UINT32 IrqRoutingTableLength;
161 /// The 32-bit physical address where the MP table is stored in the traditional BIOS.
162 /// The EfiCompatibility code will fill in the MpTablePtr value and copy the data
163 /// to the indicated area.
168 /// The length of the MP table and is filled in by the EfiCompatibility code.
170 UINT32 MpTableLength;
173 /// The segment of the OEM-specific INT table/code.
175 UINT16 OemIntSegment;
178 /// The offset of the OEM-specific INT table/code.
183 /// The segment of the OEM-specific 32-bit table/code.
188 /// The offset of the OEM-specific 32-bit table/code.
193 /// The segment of the OEM-specific 16-bit table/code.
198 /// The offset of the OEM-specific 16-bit table/code.
203 /// The segment of the TPM binary passed to 16-bit CSM.
208 /// The offset of the TPM binary passed to 16-bit CSM.
213 /// A pointer to a string identifying the independent BIOS vendor.
218 /// This field is NULL for all systems not supporting PCI Express. This field is the base
219 /// value of the start of the PCI Express memory-mapped configuration registers and
220 /// must be filled in prior to EfiCompatibility code issuing the Compatibility16 function
221 /// Compatibility16InitializeYourself().
222 /// Compatibility16InitializeYourself() is defined in Compatability16
225 UINT32 PciExpressBase;
228 /// Maximum PCI bus number assigned.
233 /// Start address of UMB RAM
243 /// Start address of persistent allocation in high (>1MiB) memory
245 UINT32 HiPermanentMemoryAddress;
248 /// Size of persistent allocation in high (>1MiB) memory
250 UINT32 HiPermanentMemorySize;
251 } EFI_COMPATIBILITY16_TABLE;
254 /// Functions provided by the CSM binary which communicate between the EfiCompatibility
255 /// and Compatability16 code.
257 /// Inconsistent with the specification here:
258 /// The member's name started with "Compatibility16" [defined in Intel Framework
259 /// Compatibility Support Module Specification / 0.97 version]
260 /// has been changed to "Legacy16" since keeping backward compatible.
264 /// Causes the Compatibility16 code to do any internal initialization required.
266 /// AX = Compatibility16InitializeYourself
267 /// ES:BX = Pointer to EFI_TO_COMPATIBILITY16_INIT_TABLE
269 /// AX = Return Status codes
271 Legacy16InitializeYourself = 0x0000,
274 /// Causes the Compatibility16 BIOS to perform any drive number translations to match the boot sequence.
276 /// AX = Compatibility16UpdateBbs
277 /// ES:BX = Pointer to EFI_TO_COMPATIBILITY16_BOOT_TABLE
279 /// AX = Returned status codes
281 Legacy16UpdateBbs = 0x0001,
284 /// Allows the Compatibility16 code to perform any final actions before booting. The Compatibility16
285 /// code is read/write.
287 /// AX = Compatibility16PrepareToBoot
288 /// ES:BX = Pointer to EFI_TO_COMPATIBILITY16_BOOT_TABLE structure
290 /// AX = Returned status codes
292 Legacy16PrepareToBoot = 0x0002,
295 /// Causes the Compatibility16 BIOS to boot. The Compatibility16 code is Read/Only.
297 /// AX = Compatibility16Boot
299 /// AX = Returned status codes
301 Legacy16Boot = 0x0003,
304 /// Allows the Compatibility16 code to get the last device from which a boot was attempted. This is
305 /// stored in CMOS and is the priority number of the last attempted boot device.
307 /// AX = Compatibility16RetrieveLastBootDevice
309 /// AX = Returned status codes
310 /// BX = Priority number of the boot device.
312 Legacy16RetrieveLastBootDevice = 0x0004,
315 /// Allows the Compatibility16 code rehook INT13, INT18, and/or INT19 after dispatching a legacy OpROM.
317 /// AX = Compatibility16DispatchOprom
318 /// ES:BX = Pointer to EFI_DISPATCH_OPROM_TABLE
320 /// AX = Returned status codes
321 /// BX = Number of non-BBS-compliant devices found. Equals 0 if BBS compliant.
323 Legacy16DispatchOprom = 0x0005,
326 /// Finds a free area in the 0xFxxxx or 0xExxxx region of the specified length and returns the address
329 /// AX = Compatibility16GetTableAddress
330 /// BX = Allocation region
331 /// 00 = Allocate from either 0xE0000 or 0xF0000 64 KB blocks.
332 /// Bit 0 = 1 Allocate from 0xF0000 64 KB block
333 /// Bit 1 = 1 Allocate from 0xE0000 64 KB block
334 /// CX = Requested length in bytes.
335 /// DX = Required address alignment. Bit mapped. First non-zero bit from the right is the alignment.
337 /// AX = Returned status codes
338 /// DS:BX = Address of the region
340 Legacy16GetTableAddress = 0x0006,
343 /// Enables the EfiCompatibility module to do any nonstandard processing of keyboard LEDs or state.
345 /// AX = Compatibility16SetKeyboardLeds
347 /// Bit 0 Scroll Lock 0 = Off
351 /// AX = Returned status codes
353 Legacy16SetKeyboardLeds = 0x0007,
356 /// Enables the EfiCompatibility module to install an interrupt handler for PCI mass media devices that
357 /// do not have an OpROM associated with them. An example is SATA.
359 /// AX = Compatibility16InstallPciHandler
360 /// ES:BX = Pointer to EFI_LEGACY_INSTALL_PCI_HANDLER structure
362 /// AX = Returned status codes
364 Legacy16InstallPciHandler = 0x0008
365 } EFI_COMPATIBILITY_FUNCTIONS;
369 /// EFI_DISPATCH_OPROM_TABLE
372 UINT16 PnPInstallationCheckSegment; ///< A pointer to the PnpInstallationCheck data structure.
373 UINT16 PnPInstallationCheckOffset; ///< A pointer to the PnpInstallationCheck data structure.
374 UINT16 OpromSegment; ///< The segment where the OpROM was placed. Offset is assumed to be 3.
375 UINT8 PciBus; ///< The PCI bus.
376 UINT8 PciDeviceFunction; ///< The PCI device * 0x08 | PCI function.
377 UINT8 NumberBbsEntries; ///< The number of valid BBS table entries upon entry and exit. The IBV code may
378 ///< increase this number, if BBS-compliant devices also hook INTs in order to force the
379 ///< OpROM BIOS Setup to be executed.
380 UINT32 BbsTablePointer; ///< A pointer to the BBS table.
381 UINT16 RuntimeSegment; ///< The segment where the OpROM can be relocated to. If this value is 0x0000, this
382 ///< means that the relocation of this run time code is not supported.
383 ///< Inconsistent with specification here:
384 ///< The member's name "OpromDestinationSegment" [defined in Intel Framework Compatibility Support Module Specification / 0.97 version]
385 ///< has been changed to "RuntimeSegment" since keeping backward compatible.
387 } EFI_DISPATCH_OPROM_TABLE;
390 /// EFI_TO_COMPATIBILITY16_INIT_TABLE
394 /// Starting address of memory under 1 MB. The ending address is assumed to be 640 KB or 0x9FFFF.
396 UINT32 BiosLessThan1MB;
399 /// The starting address of the high memory block.
404 /// The length of high memory block.
406 UINT32 HiPmmMemorySizeInBytes;
409 /// The segment of the reverse thunk call code.
411 UINT16 ReverseThunkCallSegment;
414 /// The offset of the reverse thunk call code.
416 UINT16 ReverseThunkCallOffset;
419 /// The number of E820 entries copied to the Compatibility16 BIOS.
421 UINT32 NumberE820Entries;
424 /// The amount of usable memory above 1 MB, e.g., E820 type 1 memory.
426 UINT32 OsMemoryAbove1Mb;
429 /// The start of thunk code in main memory. Memory cannot be used by BIOS or PMM.
434 /// The size of the thunk code.
436 UINT32 ThunkSizeInBytes;
439 /// Starting address of memory under 1 MB.
444 /// The length of low Memory block.
446 UINT32 LowPmmMemorySizeInBytes;
447 } EFI_TO_COMPATIBILITY16_INIT_TABLE;
450 /// DEVICE_PRODUCER_SERIAL.
453 UINT16 Address; ///< I/O address assigned to the serial port.
454 UINT8 Irq; ///< IRQ assigned to the serial port.
455 SERIAL_MODE Mode; ///< Mode of serial port. Values are defined below.
456 } DEVICE_PRODUCER_SERIAL;
459 /// DEVICE_PRODUCER_SERIAL's modes.
461 #define DEVICE_SERIAL_MODE_NORMAL 0x00
462 #define DEVICE_SERIAL_MODE_IRDA 0x01
463 #define DEVICE_SERIAL_MODE_ASK_IR 0x02
464 #define DEVICE_SERIAL_MODE_DUPLEX_HALF 0x00
465 #define DEVICE_SERIAL_MODE_DUPLEX_FULL 0x10
469 /// DEVICE_PRODUCER_PARALLEL.
472 UINT16 Address; ///< I/O address assigned to the parallel port.
473 UINT8 Irq; ///< IRQ assigned to the parallel port.
474 UINT8 Dma; ///< DMA assigned to the parallel port.
475 PARALLEL_MODE Mode; ///< Mode of the parallel port. Values are defined below.
476 } DEVICE_PRODUCER_PARALLEL;
479 /// DEVICE_PRODUCER_PARALLEL's modes.
481 #define DEVICE_PARALLEL_MODE_MODE_OUTPUT_ONLY 0x00
482 #define DEVICE_PARALLEL_MODE_MODE_BIDIRECTIONAL 0x01
483 #define DEVICE_PARALLEL_MODE_MODE_EPP 0x02
484 #define DEVICE_PARALLEL_MODE_MODE_ECP 0x03
488 /// DEVICE_PRODUCER_FLOPPY
491 UINT16 Address; ///< I/O address assigned to the floppy.
492 UINT8 Irq; ///< IRQ assigned to the floppy.
493 UINT8 Dma; ///< DMA assigned to the floppy.
494 UINT8 NumberOfFloppy; ///< Number of floppies in the system.
495 } DEVICE_PRODUCER_FLOPPY;
498 /// LEGACY_DEVICE_FLAGS
501 UINT32 A20Kybd : 1; ///< A20 controller by keyboard controller.
502 UINT32 A20Port90 : 1; ///< A20 controlled by port 0x92.
503 UINT32 Reserved : 30; ///< Reserved for future usage.
504 } LEGACY_DEVICE_FLAGS;
507 /// DEVICE_PRODUCER_DATA_HEADER
510 DEVICE_PRODUCER_SERIAL Serial[4]; ///< Data for serial port x. Type DEVICE_PRODUCER_SERIAL is defined below.
511 DEVICE_PRODUCER_PARALLEL Parallel[3]; ///< Data for parallel port x. Type DEVICE_PRODUCER_PARALLEL is defined below.
512 DEVICE_PRODUCER_FLOPPY Floppy; ///< Data for floppy. Type DEVICE_PRODUCER_FLOPPY is defined below.
513 UINT8 MousePresent; ///< Flag to indicate if mouse is present.
514 LEGACY_DEVICE_FLAGS Flags; ///< Miscellaneous Boolean state information passed to CSM.
515 } DEVICE_PRODUCER_DATA_HEADER;
521 UINT16 Raw[256]; ///< Raw data from the IDE IdentifyDrive command.
529 /// Status of IDE device. Values are defined below. There is one HDD_INFO structure
530 /// per IDE controller. The IdentifyDrive is per drive. Index 0 is master and index
536 /// PCI bus of IDE controller.
541 /// PCI device of IDE controller.
546 /// PCI function of IDE controller.
551 /// Command ports base address.
553 UINT16 CommandBaseAddress;
556 /// Control ports base address.
558 UINT16 ControlBaseAddress;
561 /// Bus master address.
563 UINT16 BusMasterAddress;
568 /// Data that identifies the drive data; one per possible attached drive.
570 ATAPI_IDENTIFY IdentifyDrive[2];
574 /// HDD_INFO status bits
576 #define HDD_PRIMARY 0x01
577 #define HDD_SECONDARY 0x02
578 #define HDD_MASTER_ATAPI_CDROM 0x04
579 #define HDD_SLAVE_ATAPI_CDROM 0x08
580 #define HDD_MASTER_IDE 0x20
581 #define HDD_SLAVE_IDE 0x40
582 #define HDD_MASTER_ATAPI_ZIPDISK 0x10
583 #define HDD_SLAVE_ATAPI_ZIPDISK 0x80
586 /// BBS_STATUS_FLAGS;\.
589 UINT16 OldPosition : 4; ///< Prior priority.
590 UINT16 Reserved1 : 4; ///< Reserved for future use.
591 UINT16 Enabled : 1; ///< If 0, ignore this entry.
592 UINT16 Failed : 1; ///< 0 = Not known if boot failure occurred.
593 ///< 1 = Boot attempted failed.
596 /// State of media present.
597 /// 00 = No bootable media is present in the device.
598 /// 01 = Unknown if a bootable media present.
599 /// 10 = Media is present and appears bootable.
602 UINT16 MediaPresent : 2;
603 UINT16 Reserved2 : 4; ///< Reserved for future use.
607 /// BBS_TABLE, device type values & boot priority values.
611 /// The boot priority for this boot device. Values are defined below.
616 /// The PCI bus for this boot device.
621 /// The PCI device for this boot device.
626 /// The PCI function for the boot device.
631 /// The PCI class for this boot device.
636 /// The PCI Subclass for this boot device.
641 /// Segment:offset address of an ASCIIZ description string describing the manufacturer.
643 UINT16 MfgStringOffset;
646 /// Segment:offset address of an ASCIIZ description string describing the manufacturer.
648 UINT16 MfgStringSegment;
651 /// BBS device type. BBS device types are defined below.
656 /// Status of this boot device. Type BBS_STATUS_FLAGS is defined below.
658 BBS_STATUS_FLAGS StatusFlags;
661 /// Segment:Offset address of boot loader for IPL devices or install INT13 handler for
664 UINT16 BootHandlerOffset;
667 /// Segment:Offset address of boot loader for IPL devices or install INT13 handler for
670 UINT16 BootHandlerSegment;
673 /// Segment:offset address of an ASCIIZ description string describing this device.
675 UINT16 DescStringOffset;
678 /// Segment:offset address of an ASCIIZ description string describing this device.
680 UINT16 DescStringSegment;
685 UINT32 InitPerReserved;
688 /// The use of these fields is IBV dependent. They can be used to flag that an OpROM
689 /// has hooked the specified IRQ. The OpROM may be BBS compliant as some SCSI
690 /// BBS-compliant OpROMs also hook IRQ vectors in order to run their BIOS Setup
692 UINT32 AdditionalIrq13Handler;
695 /// The use of these fields is IBV dependent. They can be used to flag that an OpROM
696 /// has hooked the specified IRQ. The OpROM may be BBS compliant as some SCSI
697 /// BBS-compliant OpROMs also hook IRQ vectors in order to run their BIOS Setup
699 UINT32 AdditionalIrq18Handler;
702 /// The use of these fields is IBV dependent. They can be used to flag that an OpROM
703 /// has hooked the specified IRQ. The OpROM may be BBS compliant as some SCSI
704 /// BBS-compliant OpROMs also hook IRQ vectors in order to run their BIOS Setup
706 UINT32 AdditionalIrq19Handler;
709 /// The use of these fields is IBV dependent. They can be used to flag that an OpROM
710 /// has hooked the specified IRQ. The OpROM may be BBS compliant as some SCSI
711 /// BBS-compliant OpROMs also hook IRQ vectors in order to run their BIOS Setup
713 UINT32 AdditionalIrq40Handler;
714 UINT8 AssignedDriveNumber;
715 UINT32 AdditionalIrq41Handler;
716 UINT32 AdditionalIrq46Handler;
722 /// BBS device type values
724 #define BBS_FLOPPY 0x01
725 #define BBS_HARDDISK 0x02
726 #define BBS_CDROM 0x03
727 #define BBS_PCMCIA 0x04
729 #define BBS_EMBED_NETWORK 0x06
730 #define BBS_BEV_DEVICE 0x80
731 #define BBS_UNKNOWN 0xff
735 /// BBS boot priority values
737 #define BBS_DO_NOT_BOOT_FROM 0xFFFC
738 #define BBS_LOWEST_PRIORITY 0xFFFD
739 #define BBS_UNPRIORITIZED_ENTRY 0xFFFE
740 #define BBS_IGNORE_ENTRY 0xFFFF
748 /// Access mechanism used to generate the soft SMI. Defined types are below. The other
749 /// values are reserved for future usage.
754 /// The size of "port" in bits. Defined values are below.
756 UINT16 PortGranularity : 3;
759 /// The size of data in bits. Defined values are below.
761 UINT16 DataGranularity : 3;
764 /// Reserved for future use.
770 /// SMM_ATTRIBUTES type values.
772 #define STANDARD_IO 0x00
773 #define STANDARD_MEMORY 0x01
777 /// SMM_ATTRIBUTES port size constants.
779 #define PORT_SIZE_8 0x00
780 #define PORT_SIZE_16 0x01
781 #define PORT_SIZE_32 0x02
782 #define PORT_SIZE_64 0x03
786 /// SMM_ATTRIBUTES data size constants.
788 #define DATA_SIZE_8 0x00
789 #define DATA_SIZE_16 0x01
790 #define DATA_SIZE_32 0x02
791 #define DATA_SIZE_64 0x03
795 /// SMM_FUNCTION & relating constants.
798 UINT16 Function : 15;
803 /// SMM_FUNCTION Function constants.
805 #define INT15_D042 0x0000
806 #define GET_USB_BOOT_INFO 0x0001
807 #define DMI_PNP_50_57 0x0002
811 /// SMM_FUNCTION Owner constants.
813 #define STANDARD_OWNER 0x0
814 #define OEM_OWNER 0x1
818 /// This structure assumes both port and data sizes are 1. SmmAttribute must be
819 /// properly to reflect that assumption.
823 /// Describes the access mechanism, SmmPort, and SmmData sizes. Type
824 /// SMM_ATTRIBUTES is defined below.
826 SMM_ATTRIBUTES SmmAttributes;
829 /// Function Soft SMI is to perform. Type SMM_FUNCTION is defined below.
831 SMM_FUNCTION SmmFunction;
834 /// SmmPort size depends upon SmmAttributes and ranges from2 bytes to 16 bytes.
839 /// SmmData size depends upon SmmAttributes and ranges from2 bytes to 16 bytes.
848 UINT16 NumSmmEntries; ///< Number of entries represented by SmmEntry.
849 SMM_ENTRY SmmEntry; ///< One entry per function. Type SMM_ENTRY is defined below.
857 /// This bit set indicates that the ServiceAreaData is valid.
859 UINT8 DirectoryServiceValidity : 1;
862 /// This bit set indicates to use the Reserve Area Boot Code Address (RACBA) only if
863 /// DirectoryServiceValidity is 0.
865 UINT8 RabcaUsedFlag : 1;
868 /// This bit set indicates to execute hard disk diagnostics.
870 UINT8 ExecuteHddDiagnosticsFlag : 1;
873 /// Reserved for future use. Set to 0.
883 /// This field contains the bit-mapped attributes of the PARTIES information. Type
884 /// UDC_ATTRIBUTES is defined below.
886 UDC_ATTRIBUTES Attributes;
889 /// This field contains the zero-based device on which the selected
890 /// ServiceDataArea is present. It is 0 for master and 1 for the slave device.
895 /// This field contains the zero-based index into the BbsTable for the parent device.
896 /// This index allows the user to reference the parent device information such as PCI
897 /// bus, device function.
899 UINT8 BbsTableEntryNumberForParentDevice;
902 /// This field contains the zero-based index into the BbsTable for the boot entry.
904 UINT8 BbsTableEntryNumberForBoot;
907 /// This field contains the zero-based index into the BbsTable for the HDD diagnostics entry.
909 UINT8 BbsTableEntryNumberForHddDiag;
912 /// The raw Beer data.
917 /// The raw data of selected service area.
919 UINT8 ServiceAreaData[64];
922 #define EFI_TO_LEGACY_MAJOR_VERSION 0x02
923 #define EFI_TO_LEGACY_MINOR_VERSION 0x00
924 #define MAX_IDE_CONTROLLER 8
927 /// EFI_TO_COMPATIBILITY16_BOOT_TABLE
930 UINT16 MajorVersion; ///< The EfiCompatibility major version number.
931 UINT16 MinorVersion; ///< The EfiCompatibility minor version number.
932 UINT32 AcpiTable; ///< The location of the RSDT ACPI table. < 4G range.
933 UINT32 SmbiosTable; ///< The location of the SMBIOS table in EFI memory. < 4G range.
934 UINT32 SmbiosTableLength;
938 DEVICE_PRODUCER_DATA_HEADER SioData; ///< Standard traditional device information.
939 UINT16 DevicePathType; ///< The default boot type.
940 UINT16 PciIrqMask; ///< Mask of which IRQs have been assigned to PCI.
941 UINT32 NumberE820Entries; ///< Number of E820 entries. The number can change from the
942 ///< Compatibility16InitializeYourself() function.
944 // Controller & Drive Identify[2] per controller information
946 HDD_INFO HddInfo[MAX_IDE_CONTROLLER]; ///< Hard disk drive information, including raw Identify Drive data.
947 UINT32 NumberBbsEntries; ///< Number of entries in the BBS table
948 UINT32 BbsTable; ///< A pointer to the BBS table. Type BBS_TABLE is defined below.
949 UINT32 SmmTable; ///< A pointer to the SMM table. Type SMM_TABLE is defined below.
950 UINT32 OsMemoryAbove1Mb; ///< The amount of usable memory above 1 MB, i.e. E820 type 1 memory. This value can
951 ///< differ from the value in EFI_TO_COMPATIBILITY16_INIT_TABLE as more
952 ///< memory may have been discovered.
953 UINT32 UnconventionalDeviceTable; ///< Information to boot off an unconventional device like a PARTIES partition. Type
954 ///< UD_TABLE is defined below.
955 } EFI_TO_COMPATIBILITY16_BOOT_TABLE;
958 /// EFI_LEGACY_INSTALL_PCI_HANDLER
961 UINT8 PciBus; ///< The PCI bus of the device.
962 UINT8 PciDeviceFun; ///< The PCI device in bits 7:3 and function in bits 2:0.
963 UINT8 PciSegment; ///< The PCI segment of the device.
964 UINT8 PciClass; ///< The PCI class code of the device.
965 UINT8 PciSubclass; ///< The PCI subclass code of the device.
966 UINT8 PciInterface; ///< The PCI interface code of the device.
970 UINT8 PrimaryIrq; ///< The primary device IRQ.
971 UINT8 PrimaryReserved; ///< Reserved.
972 UINT16 PrimaryControl; ///< The primary device control I/O base.
973 UINT16 PrimaryBase; ///< The primary device I/O base.
974 UINT16 PrimaryBusMaster; ///< The primary device bus master I/O base.
978 UINT8 SecondaryIrq; ///< The secondary device IRQ.
979 UINT8 SecondaryReserved; ///< Reserved.
980 UINT16 SecondaryControl; ///< The secondary device control I/O base.
981 UINT16 SecondaryBase; ///< The secondary device I/O base.
982 UINT16 SecondaryBusMaster; ///< The secondary device bus master I/O base.
983 } EFI_LEGACY_INSTALL_PCI_HANDLER;