TianoCore EDK2 master
Loading...
Searching...
No Matches
Data.c
Go to the documentation of this file.
1
9#include "Fat.h"
10
11//
12// Globals
13//
14//
15// FatFsLock - Global lock for synchronizing all requests.
16//
17EFI_LOCK FatFsLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_CALLBACK);
18
19EFI_LOCK FatTaskLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
20
21//
22// Filesystem interface functions
23//
24EFI_FILE_PROTOCOL FatFileInterface = {
25 EFI_FILE_PROTOCOL_REVISION,
26 FatOpen,
29 FatRead,
40};
EFI_STATUS EFIAPI FatDelete(IN EFI_FILE_PROTOCOL *FHand)
Definition: Delete.c:24
EFI_STATUS EFIAPI FatReadEx(IN EFI_FILE_PROTOCOL *FHand, IN OUT EFI_FILE_IO_TOKEN *Token)
Definition: ReadWrite.c:384
EFI_STATUS EFIAPI FatRead(IN EFI_FILE_PROTOCOL *FHand, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Definition: ReadWrite.c:360
EFI_STATUS EFIAPI FatGetInfo(IN EFI_FILE_PROTOCOL *FHand, IN EFI_GUID *Type, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Definition: Info.c:569
EFI_STATUS EFIAPI FatWrite(IN EFI_FILE_PROTOCOL *FHand, IN OUT UINTN *BufferSize, IN VOID *Buffer)
Definition: ReadWrite.c:411
EFI_STATUS EFIAPI FatGetPosition(IN EFI_FILE_PROTOCOL *FHand, OUT UINT64 *Position)
Definition: ReadWrite.c:27
EFI_STATUS EFIAPI FatFlushEx(IN EFI_FILE_PROTOCOL *FHand, IN EFI_FILE_IO_TOKEN *Token)
Definition: Flush.c:27
EFI_STATUS EFIAPI FatFlush(IN EFI_FILE_PROTOCOL *FHand)
Definition: Flush.c:111
EFI_STATUS EFIAPI FatOpenEx(IN EFI_FILE_PROTOCOL *FHand, OUT EFI_FILE_PROTOCOL **NewHandle, IN CHAR16 *FileName, IN UINT64 OpenMode, IN UINT64 Attributes, IN OUT EFI_FILE_IO_TOKEN *Token)
Definition: Open.c:200
EFI_STATUS EFIAPI FatClose(IN EFI_FILE_PROTOCOL *FHand)
Definition: Flush.c:129
EFI_STATUS EFIAPI FatSetInfo(IN EFI_FILE_PROTOCOL *FHand, IN EFI_GUID *Type, IN UINTN BufferSize, IN VOID *Buffer)
Definition: Info.c:594
EFI_STATUS EFIAPI FatSetPosition(IN EFI_FILE_PROTOCOL *FHand, IN UINT64 Position)
Definition: ReadWrite.c:64
EFI_STATUS EFIAPI FatOpen(IN EFI_FILE_PROTOCOL *FHand, OUT EFI_FILE_PROTOCOL **NewHandle, IN CHAR16 *FileName, IN UINT64 OpenMode, IN UINT64 Attributes)
Definition: Open.c:318
EFI_STATUS EFIAPI FatWriteEx(IN EFI_FILE_PROTOCOL *FHand, IN OUT EFI_FILE_IO_TOKEN *Token)
Definition: ReadWrite.c:435
#define EFI_INITIALIZE_LOCK_VARIABLE(Priority)
Definition: UefiLib.h:313