TianoCore EDK2 master
Loading...
Searching...
No Matches
Mbr.c File Reference
#include <IndustryStandard/Mbr.h>
#include "FatLitePeim.h"

Go to the source code of this file.

Functions

BOOLEAN PartitionValidMbr (IN MASTER_BOOT_RECORD *Mbr, IN EFI_PEI_LBA LastLba)
 
BOOLEAN FatFindMbrPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
 

Detailed Description

Routines supporting partition discovery and logical device reading

Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Mbr.c.

Function Documentation

◆ FatFindMbrPartitions()

BOOLEAN FatFindMbrPartitions ( IN PEI_FAT_PRIVATE_DATA PrivateData,
IN UINTN  ParentBlockDevNo 
)

This function finds Mbr partitions. Main algorithm is ported from DXE partition driver.

Parameters
[in]PrivateDataThe global memory map
[in]ParentBlockDevNoThe parent block device
Return values
TRUENew partitions are detected and logical block devices are added to block device array
FALSENo new partitions are added

Definition at line 102 of file Mbr.c.

◆ PartitionValidMbr()

BOOLEAN PartitionValidMbr ( IN MASTER_BOOT_RECORD Mbr,
IN EFI_PEI_LBA  LastLba 
)

Test to see if the Mbr buffer is a valid MBR

Parameters
[in]MbrParent Handle
[in]LastLbaLast Lba address on the device.
Return values
TRUEMbr is a Valid MBR
FALSEMbr is not a Valid MBR

Definition at line 25 of file Mbr.c.