1 /**@file
2 Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>
3 This program and the accompanying materials
4 are licensed and made available under the terms and conditions of the BSD License
5 which accompanies this distribution.  The full text of the license may be found at
6 http://opensource.org/licenses/bsd-license.php
7 
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 
11 Module Name:
12 
13   FileIo.h
14 
15 Abstract:
16 
17   File operation for Firmware volume block driver
18 
19 **/
20 #ifndef _FW_BLOCK_SERVICE_FILE_IO_H
21 #define _FW_BLOCK_SERVICE_FILE_IO_H
22 
23 #include "FwBlockService.h"
24 
25 EFI_STATUS
26 FileWrite (
27   IN EFI_FILE_PROTOCOL  *File,
28   IN UINTN              Offset,
29   IN UINTN              Buffer,
30   IN UINTN              Size
31   );
32 
33 EFI_STATUS
34 CheckStore (
35   IN  EFI_HANDLE                 SimpleFileSystemHandle,
36   IN  UINT32                     VolumeId,
37   OUT EFI_DEVICE_PATH_PROTOCOL   **Device
38   );
39 
40 EFI_STATUS
41 CheckStoreExists (
42   IN  EFI_DEVICE_PATH_PROTOCOL   *Device
43   );
44 
45 EFI_STATUS
46 FileOpen (
47   IN  EFI_DEVICE_PATH_PROTOCOL   *Device,
48   IN  CHAR16                     *MappedFile,
49   OUT EFI_FILE_PROTOCOL          **File,
50   IN  UINT64                     OpenMode
51   );
52 
53 VOID
54 FileClose (
55   IN  EFI_FILE_PROTOCOL          *File
56   );
57 
58 #endif // _FW_BLOCK_SERVICE_FILE_IO_H
59