TianoCore EDK2 master
Loading...
Searching...
No Matches
Part.c
Go to the documentation of this file.
1
11#include "FatLitePeim.h"
12
25BOOLEAN
27 IN PEI_FAT_PRIVATE_DATA *PrivateData,
28 IN UINTN ParentBlockDevNo
29 );
30
43BOOLEAN
45 IN PEI_FAT_PRIVATE_DATA *PrivateData,
46 IN UINTN ParentBlockDevNo
47 );
48
62BOOLEAN
64 IN PEI_FAT_PRIVATE_DATA *PrivateData,
65 IN UINTN ParentBlockDevNo
66 );
67
74VOID
76 IN PEI_FAT_PRIVATE_DATA *PrivateData
77 )
78{
79 BOOLEAN Found;
80 UINTN Index;
81
82 do {
83 Found = FALSE;
84
85 for (Index = 0; Index < PrivateData->BlockDeviceCount; Index++) {
86 if (!PrivateData->BlockDevice[Index].PartitionChecked) {
87 if (FatFindGptPartitions (PrivateData, Index)) {
88 Found = TRUE;
89 continue;
90 }
91
92 if (FatFindMbrPartitions (PrivateData, Index)) {
93 Found = TRUE;
94 continue;
95 }
96
97 if (FatFindEltoritoPartitions (PrivateData, Index)) {
98 Found = TRUE;
99 continue;
100 }
101 }
102 }
103 } while (Found && PrivateData->BlockDeviceCount <= PEI_FAT_MAX_BLOCK_DEVICE);
104}
UINT64 UINTN
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
BOOLEAN FatFindMbrPartitions(IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
Definition: Mbr.c:102
VOID FatFindPartitions(IN PEI_FAT_PRIVATE_DATA *PrivateData)
Definition: Part.c:75
BOOLEAN FatFindGptPartitions(IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
Definition: Gpt.c:486
BOOLEAN FatFindEltoritoPartitions(IN PEI_FAT_PRIVATE_DATA *PrivateData, IN UINTN ParentBlockDevNo)
Definition: Eltorito.c:27