EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

FatPkg/FatPei/Part.c File Reference

#include <IndustryStandard/Mbr.h>
#include <IndustryStandard/ElTorito.h>
#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)
VOID FatFindPartitions (IN PEI_FAT_PRIVATE_DATA *PrivateData)
BOOLEAN PartitionValidMbr (IN MASTER_BOOT_RECORD *Mbr, IN EFI_PEI_LBA LastLba)

Detailed Description

Routines supporting partition discovery and logical device reading

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

This program and the accompanying materials are licensed and made available under the terms and conditions of the Software License Agreement which accompanies this distribution.

Definition in file Part.c.


Function Documentation

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:
PrivateDataThe global memory map
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 96 of file Part.c.

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:
PrivateDataThe global memory map
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 392 of file Part.c.

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 61 of file Part.c.

BOOLEAN PartitionValidMbr ( IN MASTER_BOOT_RECORD Mbr,
IN EFI_PEI_LBA  LastLba 
)

Test to see if the Mbr buffer is a valid MBR

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

Definition at line 316 of file Part.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines