/*++\r
\r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 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
IN EFI_DEVICE_PATH_PROTOCOL *Device,\r
IN CHAR16 *FilePathName,\r
IN UINT64 OpenMode,\r
- OUT EFI_FILE **File\r
+ OUT EFI_FILE_PROTOCOL **File\r
);\r
\r
//\r
//\r
VOID\r
FileClose (\r
- IN EFI_FILE *File\r
+ IN EFI_FILE_PROTOCOL *File\r
)\r
{\r
EFI_STATUS Status;\r
EFI_HANDLE Handle;\r
EFI_DEVICE_PATH_PROTOCOL *Device;\r
VS_DEV *Dev;\r
- EFI_FILE *File;\r
+ EFI_FILE_PROTOCOL *File;\r
UINTN NumBytes;\r
\r
Dev = (VS_DEV *) Context;\r
{\r
EFI_STATUS Status;\r
VS_DEV *Dev;\r
- EFI_FILE *File;\r
+ EFI_FILE_PROTOCOL *File;\r
UINTN NumBytes;\r
\r
Status = EFI_SUCCESS;\r
{\r
EFI_STATUS Status;\r
VS_DEV *Dev;\r
- EFI_FILE *File;\r
+ EFI_FILE_PROTOCOL *File;\r
\r
Status = EFI_SUCCESS;\r
Dev = DEV_FROM_THIS(This);\r
IN EFI_DEVICE_PATH_PROTOCOL *Device,\r
IN CHAR16 *FilePathName,\r
IN UINT64 OpenMode,\r
- OUT EFI_FILE **File\r
+ OUT EFI_FILE_PROTOCOL **File\r
)\r
{\r
EFI_HANDLE Handle;\r
/**@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
\r
--*/\r
{\r
- EFI_STATUS Status;\r
- EFI_FILE *File;\r
- UINTN FileOffset;\r
- UINTN BufferForFile;\r
- UINTN Length;\r
+ EFI_STATUS Status;\r
+ EFI_FILE_PROTOCOL *File;\r
+ UINTN FileOffset;\r
+ UINTN BufferForFile;\r
+ UINTN Length;\r
\r
Status = EFI_SUCCESS;\r
CopyMem ((VOID *) Address, Buffer, *NumBytes);\r
\r
--*/\r
{\r
- EFI_STATUS Status;\r
- EFI_FILE *File;\r
- UINTN FileOffset;\r
- UINTN BufferForFile;\r
- UINTN Length;\r
+ EFI_STATUS Status;\r
+ EFI_FILE_PROTOCOL *File;\r
+ UINTN FileOffset;\r
+ UINTN BufferForFile;\r
+ UINTN Length;\r
\r
Status = EFI_SUCCESS;\r
\r
EFI_HANDLE Handle;\r
UINTN Instance;\r
EFI_DEVICE_PATH_PROTOCOL *Device;\r
- EFI_FILE *File;\r
+ EFI_FILE_PROTOCOL *File;\r
EFI_FW_VOL_INSTANCE *FwhInstance;\r
while (TRUE) {\r
HandleSize = sizeof (EFI_HANDLE);\r
/**@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
\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
\r
VOID\r
FileClose (\r
- IN EFI_FILE *File\r
+ IN EFI_FILE_PROTOCOL *File\r
)\r
{\r
File->Flush (File);\r
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
/**@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
\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\r
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
VOID\r
FileClose (\r
- IN EFI_FILE *File\r
+ IN EFI_FILE_PROTOCOL *File\r
);\r
\r
#endif // _FW_BLOCK_SERVICE_FILE_IO_H\r