Update the copyright notice format
[mirror_edk2.git] / ArmPkg / Filesystem / SemihostFs / Arm / SemihostFs.h
CommitLineData
2ef2b01e
A
1/** @file\r
2 Support a Semi Host file system over a debuggers JTAG\r
3\r
d6ebcab7 4 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
2ef2b01e 5\r
d6ebcab7 6 This program and the accompanying materials\r
2ef2b01e
A
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __SEMIHOST_FS_H__\r
17#define __SEMIHOST_FS_H__\r
18\r
19EFI_STATUS\r
20SemihostFsSupported(\r
21 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
22 IN EFI_HANDLE Controller,\r
23 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
24 );\r
25\r
26EFI_STATUS\r
27SemihostFsStart(\r
28 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
29 IN EFI_HANDLE Controller,\r
30 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
31 );\r
32\r
33EFI_STATUS\r
34SemihostFsStop(\r
35 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
36 IN EFI_HANDLE Controller,\r
37 IN UINTN NumberOfChildren,\r
38 IN EFI_HANDLE *ChildHandleBuffer\r
39 );\r
40\r
41EFI_STATUS\r
42VolumeOpen(\r
43 IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *This,\r
44 OUT EFI_FILE **Root\r
45 );\r
46\r
47EFI_STATUS\r
48FileOpen(\r
49 IN EFI_FILE *File,\r
50 OUT EFI_FILE **NewHandle,\r
51 IN CHAR16 *FileName,\r
52 IN UINT64 OpenMode,\r
53 IN UINT64 Attributes\r
54 );\r
55\r
56EFI_STATUS\r
57FileClose(\r
58 IN EFI_FILE *File\r
59 );\r
60\r
61EFI_STATUS\r
62FileDelete(\r
63 IN EFI_FILE *File\r
64 );\r
65\r
66EFI_STATUS\r
67FileRead(\r
68 IN EFI_FILE *File,\r
69 IN OUT UINTN *BufferSize,\r
70 OUT VOID *Buffer\r
71 );\r
72\r
73EFI_STATUS\r
74FileWrite(\r
75 IN EFI_FILE *File,\r
76 IN OUT UINTN *BufferSize,\r
77 IN VOID *Buffer\r
78 );\r
79\r
80EFI_STATUS\r
81FileGetPosition(\r
82 IN EFI_FILE *File,\r
83 OUT UINT64 *Position\r
84 );\r
85\r
86EFI_STATUS\r
87FileSetPosition(\r
88 IN EFI_FILE *File,\r
89 IN UINT64 Position\r
90 );\r
91\r
92EFI_STATUS\r
93FileGetInfo(\r
94 IN EFI_FILE *File,\r
95 IN EFI_GUID *InformationType,\r
96 IN OUT UINTN *BufferSize,\r
97 OUT VOID *Buffer\r
98 );\r
99\r
100EFI_STATUS\r
101FileSetInfo(\r
102 IN EFI_FILE *File,\r
103 IN EFI_GUID *InformationType,\r
104 IN UINTN BufferSize,\r
105 IN VOID *Buffer\r
106 );\r
107\r
108EFI_STATUS\r
109FileFlush(\r
110 IN EFI_FILE *File\r
111 );\r
112\r
113#endif // __SEMIHOST_FS_H__\r
114\r