TianoCore EDK2 master
|
#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) |
Initialization routines.
Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Init.c.
EFI_STATUS FatAbandonVolume | ( | IN FAT_VOLUME * | Volume | ) |
Called by FatDriverBindingStop(), Abandon the volume.
Volume | - The volume to be abandoned. |
EFI_SUCCESS | - Abandoned the volume successfully. |
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.
Handle | - The handle of parent device. |
DiskIo | - The DiskIo of parent device. |
DiskIo2 | - The DiskIo2 of parent device. |
BlockIo | - The BlockIo of parent device. |
EFI_SUCCESS | - Allocate a new volume successfully. |
EFI_OUT_OF_RESOURCES | - Can not allocate the memory. |
EFI_STATUS FatOpenDevice | ( | IN OUT FAT_VOLUME * | Volume | ) |
Detects FAT file system on Disk and set relevant fields of Volume.
Volume | - The volume structure. |
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. |