]> git.proxmox.com Git - mirror_edk2.git/blob - FatPkg/EnhancedFatDxe/Data.c
b20cc4592d3f52cf3c182cb85c24c96b2d8989c1
[mirror_edk2.git] / FatPkg / EnhancedFatDxe / Data.c
1 /*++
2
3 Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials are licensed and made available
5 under the terms and conditions of the BSD License which accompanies this
6 distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12
13 Module Name:
14
15 Data.c
16
17 Abstract:
18
19 Global data in the FAT Filesystem driver
20
21 Revision History
22
23 --*/
24
25 #include "Fat.h"
26
27 //
28 // Globals
29 //
30 //
31 // FatFsLock - Global lock for synchronizing all requests.
32 //
33 EFI_LOCK FatFsLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_CALLBACK);
34
35 EFI_LOCK FatTaskLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
36
37 //
38 // Filesystem interface functions
39 //
40 EFI_FILE_PROTOCOL FatFileInterface = {
41 EFI_FILE_PROTOCOL_REVISION,
42 FatOpen,
43 FatClose,
44 FatDelete,
45 FatRead,
46 FatWrite,
47 FatGetPosition,
48 FatSetPosition,
49 FatGetInfo,
50 FatSetInfo,
51 FatFlush,
52 FatOpenEx,
53 FatReadEx,
54 FatWriteEx,
55 FatFlushEx
56 };