3 Copyright (c) 1999 Intel Corporation
11 EFI support for legacy boot
19 #ifndef _LEGACY_BOOT_INCLUDE_
20 #define _LEGACY_BOOT_INCLUDE_
22 #define LEGACY_BOOT_PROTOCOL \
23 { 0x376e5eb2, 0x30e4, 0x11d3, { 0xba, 0xe5, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 } }
28 // BBS 1.01 (See Appendix A) IPL and BCV Table Entry Data structure.
29 // Seg:Off pointers have been converted to EFI pointers in this data structure
30 // This is the structure that also maps to the EFI device path for the boot selection
36 VOID
*BootHandler
; // Not an EFI entry point
43 (EFIAPI
*LEGACY_BOOT_CALL
) (
44 IN EFI_DEVICE_PATH
*DevicePath
49 // BBS support functions
50 // PnP Call numbers and BiosSelector hidden in implementation
58 INTERFACE_DECL(_LEGACY_BOOT_INTERFACE
);
61 // == PnP Function 0x60 then BbsVersion == 0x0101 if this call fails then BbsVersion == 0x0000
65 // == PnP Function 0x61
69 (EFIAPI
*GET_DEVICE_COUNT
) (
70 IN
struct _LEGACY_BOOT_INTERFACE
*This
,
71 IN BBS_TYPE
*TableType
,
72 OUT UINTN
*DeviceCount
,
77 // == PnP Function 0x62
81 (EFIAPI
*GET_PRIORITY_AND_TABLE
) (
82 IN
struct _LEGACY_BOOT_INTERFACE
*This
,
83 IN BBS_TYPE
*TableType
,
84 IN OUT UINTN
*PrioritySize
, // MaxCount * sizeof(UINT8)
86 IN OUT UINTN
*TableSize
, // MaxCount * sizeof(BBS_TABLE_ENTRY)
87 OUT BBS_TABLE_ENTRY
*TableEntrySize
91 // == PnP Function 0x63
95 (EFIAPI
*SET_PRIORITY
) (
96 IN
struct _LEGACY_BOOT_INTERFACE
*This
,
97 IN BBS_TYPE
*TableType
,
98 IN OUT UINTN
*PrioritySize
,
102 typedef struct _LEGACY_BOOT_INTERFACE
{
103 LEGACY_BOOT_CALL BootIt
;
106 // New functions to allow BBS booting to be configured from EFI
108 UINTN BbsVersion
; // Currently 0x0101
109 GET_DEVICE_COUNT GetDeviceCount
;
110 GET_PRIORITY_AND_TABLE GetPriorityAndTable
;
111 SET_PRIORITY SetPriority
;
112 } LEGACY_BOOT_INTERFACE
;
115 PlInitializeLegacyBoot (