TianoCore EDK2 master
Loading...
Searching...
No Matches
Init.c File Reference
#include "Fat.h"

Go to the source code of this file.

Functions

EFI_STATUS FatAllocateVolume (IN EFI_HANDLE Handle, IN EFI_DISK_IO_PROTOCOL *DiskIo, IN EFI_DISK_IO2_PROTOCOL *DiskIo2, IN EFI_BLOCK_IO_PROTOCOL *BlockIo)
 
EFI_STATUS FatAbandonVolume (IN FAT_VOLUME *Volume)
 
EFI_STATUS FatOpenDevice (IN OUT FAT_VOLUME *Volume)
 

Detailed Description

Initialization routines.

Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Init.c.

Function Documentation

◆ FatAbandonVolume()

EFI_STATUS FatAbandonVolume ( IN FAT_VOLUME Volume)

Called by FatDriverBindingStop(), Abandon the volume.

Parameters
Volume- The volume to be abandoned.
Return values
EFI_SUCCESS- Abandoned the volume successfully.
Returns
Others - Can not uninstall the protocol interfaces.

Definition at line 144 of file Init.c.

◆ FatAllocateVolume()

EFI_STATUS FatAllocateVolume ( IN EFI_HANDLE  Handle,
IN EFI_DISK_IO_PROTOCOL DiskIo,
IN EFI_DISK_IO2_PROTOCOL DiskIo2,
IN EFI_BLOCK_IO_PROTOCOL BlockIo 
)

Allocates volume structure, detects FAT file system, installs protocol, and initialize cache.

Parameters
Handle- The handle of parent device.
DiskIo- The DiskIo of parent device.
DiskIo2- The DiskIo2 of parent device.
BlockIo- The BlockIo of parent device.
Return values
EFI_SUCCESS- Allocate a new volume successfully.
EFI_OUT_OF_RESOURCES- Can not allocate the memory.
Returns
Others - Allocating a new volume failed.

Definition at line 27 of file Init.c.

◆ FatOpenDevice()

EFI_STATUS FatOpenDevice ( IN OUT FAT_VOLUME Volume)

Detects FAT file system on Disk and set relevant fields of Volume.

Parameters
Volume- The volume structure.
Return values
EFI_SUCCESS- The Fat File System is detected successfully
EFI_UNSUPPORTED- The volume is not FAT file system.
EFI_VOLUME_CORRUPTED- The volume is corrupted.

Definition at line 222 of file Init.c.