]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/FvbRuntimeService/FileIo.c
Use to use UEFI EFI_FILE_PROTOCOL to replace EFI_FILE
[mirror_edk2.git] / DuetPkg / FvbRuntimeService / FileIo.c
index 0162b15b1963d5f8de0e137ab209e85323049619..b5145e40b86613d338850910fb4bd137fec4f1e7 100644 (file)
@@ -1,5 +1,5 @@
 /**@file\r
-Copyright (c) 2007, Intel Corporation\r
+Copyright (c) 2007 - 2009, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -29,10 +29,10 @@ Abstract:
 \r
 EFI_STATUS\r
 FileWrite (\r
-  IN EFI_FILE  *File,\r
-  IN UINTN     Offset,\r
-  IN UINTN     Buffer,\r
-  IN UINTN     Size\r
+  IN EFI_FILE_PROTOCOL  *File,\r
+  IN UINTN              Offset,\r
+  IN UINTN              Buffer,\r
+  IN UINTN              Size\r
   )\r
 {\r
   EFI_STATUS Status;\r
@@ -136,7 +136,7 @@ CheckStoreExists (
 \r
 VOID\r
 FileClose (\r
-  IN  EFI_FILE                   *File\r
+  IN  EFI_FILE_PROTOCOL          *File\r
   )\r
 {\r
   File->Flush (File);\r
@@ -146,7 +146,7 @@ EFI_STATUS
 FileOpen (\r
   IN  EFI_DEVICE_PATH_PROTOCOL   *Device,\r
   IN  CHAR16                     *MappedFile,\r
-  OUT EFI_FILE                   **File,\r
+  OUT EFI_FILE_PROTOCOL          **File,\r
   IN  UINT64                     OpenMode\r
   )\r
 {  \r