OpenCore
1.0.4
OpenCore Bootloader
|
#include "Partition.h"
Go to the source code of this file.
Functions | |
BOOLEAN | PartitionValidMbr (IN MASTER_BOOT_RECORD *Mbr, IN EFI_LBA LastLba) |
EFI_STATUS | PartitionInstallMbrChildHandles (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_DISK_IO_PROTOCOL *DiskIo, IN EFI_DISK_IO2_PROTOCOL *DiskIo2, IN EFI_BLOCK_IO_PROTOCOL *BlockIo, IN EFI_BLOCK_IO2_PROTOCOL *BlockIo2, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
Decode a hard disk partitioned with the legacy MBR found on most PC's
MBR - Master Boot Record is in the first sector of a partitioned hard disk. The MBR supports four partitions per disk. The MBR also contains legacy code that is not run on an EFI system. The legacy code reads the first sector of the active partition into memory and
BPB - BIOS Parameter Block is in the first sector of a FAT file system. The BPB contains information about the FAT file system. The BPB is always on the first sector of a media. The first sector also contains the legacy boot strap code.
Copyright (c) 2018 Qualcomm Datacenter Technologies, Inc. Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Mbr.c.
EFI_STATUS PartitionInstallMbrChildHandles | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Handle, | ||
IN EFI_DISK_IO_PROTOCOL * | DiskIo, | ||
IN EFI_DISK_IO2_PROTOCOL * | DiskIo2, | ||
IN EFI_BLOCK_IO_PROTOCOL * | BlockIo, | ||
IN EFI_BLOCK_IO2_PROTOCOL * | BlockIo2, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath ) |
Install child handles if the Handle supports MBR format.
[in] | This | Calling context. |
[in] | Handle | Parent Handle. |
[in] | DiskIo | Parent DiskIo interface. |
[in] | DiskIo2 | Parent DiskIo2 interface. |
[in] | BlockIo | Parent BlockIo interface. |
[in] | BlockIo2 | Parent BlockIo2 interface. |
[in] | DevicePath | Parent Device Path. |
EFI_SUCCESS | A child handle was added. |
EFI_MEDIA_CHANGED | Media change was detected. |
Others | MBR partition was not found. |