TianoCore EDK2 master
Loading...
Searching...
No Matches
Part.c File Reference
#include "FatLitePeim.h"

Go to the source code of this file.

Functions

BOOLEAN FatFindEltoritoPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
 
BOOLEAN FatFindMbrPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
 
BOOLEAN FatFindGptPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
 
VOID FatFindPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData)
 

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 Part.c.

Function Documentation

◆ FatFindEltoritoPartitions()

BOOLEAN FatFindEltoritoPartitions ( IN PEI_FAT_PRIVATE_DATA PrivateData,
IN UINTN  ParentBlockDevNo 
)

This function finds Eltorito 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 27 of file Eltorito.c.

◆ FatFindGptPartitions()

BOOLEAN FatFindGptPartitions ( IN PEI_FAT_PRIVATE_DATA PrivateData,
IN UINTN  ParentBlockDevNo 
)

This function is used for finding GPT partition on block device. As follow UEFI spec we should check protective MBR first and then try to check both primary/backup GPT structures.

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 486 of file Gpt.c.

◆ 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.

◆ FatFindPartitions()

VOID FatFindPartitions ( IN PEI_FAT_PRIVATE_DATA PrivateData)

This function finds partitions (logical devices) in physical block devices.

Parameters
PrivateDataGlobal memory map for accessing global variables.

Definition at line 75 of file Part.c.