OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
LegacyBootInternal.h File Reference
#include <Uefi.h>
#include <IndustryStandard/Mbr.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcDevicePathLib.h>
#include <Library/OcFileLib.h>
#include <Library/OcLegacyThunkLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/DevicePath.h>
#include <Protocol/Legacy8259.h>

Go to the source code of this file.

Typedefs

typedef enum OC_LEGACY_OS_TYPE_ OC_LEGACY_OS_TYPE
 

Enumerations

enum  OC_LEGACY_OS_TYPE_ { OcLegacyOsTypeNone , OcLegacyOsTypeWindowsNtldr , OcLegacyOsTypeWindowsBootmgr , OcLegacyOsTypeIsoLinux }
 

Functions

EFI_STATUS InternalGetBiosDiskAddress (IN THUNK_CONTEXT *ThunkContext, IN EFI_LEGACY_8259_PROTOCOL *Legacy8259, IN EFI_HANDLE DiskHandle, OUT UINT8 *DriveNumber)
 
EFI_STATUS InternalIsLegacyInterfaceSupported (OUT BOOLEAN *IsAppleInterfaceSupported)
 
EFI_STATUS InternalSetBootCampHDPath (IN EFI_DEVICE_PATH_PROTOCOL *HdDevicePath)
 
EFI_STATUS InternalLoadAppleLegacyInterface (IN EFI_HANDLE ParentImageHandle, OUT EFI_DEVICE_PATH_PROTOCOL **ImageDevicePath, OUT EFI_HANDLE *ImageHandle)
 
OC_LEGACY_OS_TYPE InternalGetPartitionLegacyOsType (IN EFI_HANDLE PartitionHandle, IN BOOLEAN IsCdRomSupported)
 
EFI_STATUS InternalLoadLegacyPbr (IN EFI_DEVICE_PATH_PROTOCOL *PartitionPath)
 

Detailed Description

Copyright (C) 2023, Goldfish64. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file LegacyBootInternal.h.

Typedef Documentation

◆ OC_LEGACY_OS_TYPE

Legacy operating system type.

Enumeration Type Documentation

◆ OC_LEGACY_OS_TYPE_

Legacy operating system type.

Enumerator
OcLegacyOsTypeNone 
OcLegacyOsTypeWindowsNtldr 
OcLegacyOsTypeWindowsBootmgr 
OcLegacyOsTypeIsoLinux 

Definition at line 33 of file LegacyBootInternal.h.

Function Documentation

◆ InternalGetBiosDiskAddress()

EFI_STATUS InternalGetBiosDiskAddress ( IN THUNK_CONTEXT * ThunkContext,
IN EFI_LEGACY_8259_PROTOCOL * Legacy8259,
IN EFI_HANDLE DiskHandle,
OUT UINT8 * DriveNumber )

Definition at line 140 of file BiosDisk.c.

◆ InternalGetPartitionLegacyOsType()

OC_LEGACY_OS_TYPE InternalGetPartitionLegacyOsType ( IN EFI_HANDLE PartitionHandle,
IN BOOLEAN IsCdRomSupported )

Definition at line 277 of file LegacyBootSupport.c.

◆ InternalIsLegacyInterfaceSupported()

EFI_STATUS InternalIsLegacyInterfaceSupported ( OUT BOOLEAN * IsAppleInterfaceSupported)

Definition at line 137 of file LegacyBootSupport.c.

◆ InternalLoadAppleLegacyInterface()

EFI_STATUS InternalLoadAppleLegacyInterface ( IN EFI_HANDLE ParentImageHandle,
OUT EFI_DEVICE_PATH_PROTOCOL ** ImageDevicePath,
OUT EFI_HANDLE * ImageHandle )

Definition at line 218 of file LegacyBootSupport.c.

◆ InternalLoadLegacyPbr()

EFI_STATUS InternalLoadLegacyPbr ( IN EFI_DEVICE_PATH_PROTOCOL * PartitionPath)

Definition at line 367 of file LegacyBootSupport.c.

◆ InternalSetBootCampHDPath()

EFI_STATUS InternalSetBootCampHDPath ( IN EFI_DEVICE_PATH_PROTOCOL * HdDevicePath)

Definition at line 165 of file LegacyBootSupport.c.