]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/Library/EfiFileLib.h
Fix help command scroll issue. Also add FV space used, and free space to dir command.
[mirror_edk2.git] / EmbeddedPkg / Include / Library / EfiFileLib.h
index 992d326997648929fcedad6a2f51ec550bae9b3c..1ea8324b6248852f8483a71935a429dd6645810d 100644 (file)
@@ -87,7 +87,8 @@ typedef struct {
   EFI_FV_FILE_ATTRIBUTES        FvAttributes;     \r
 \r
   EFI_PHYSICAL_ADDRESS          FvStart;          \r
-  UINTN                         FvSize;           \r
+  UINTN                         FvSize;      \r
+  UINTN                         FvHeaderSize;\r
 \r
   EFI_FILE                      *FsFileHandle;    // Information valid for Fs#:\r
   EFI_FILE_SYSTEM_INFO          *FsInfo;\r
@@ -311,5 +312,38 @@ UINTN
 EfiGetDeviceCounts (\r
   IN  EFI_OPEN_FILE_TYPE     Type\r
   );\r
+  \r
+\r
+/**\r
+  Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+  the path does not contain a device name, The CWD is prepended to the path.\r
+  \r
+  @param  Cwd     Current Working Directory to set\r
+\r
+\r
+  @return EFI_SUCCESS           CWD is set\r
+  @return EFI_INVALID_PARAMETER Cwd is not a valid device:path\r
+\r
+**/\r
+EFI_STATUS\r
+EfiSetCwd (\r
+  IN  CHAR8   *Cwd\r
+  );  \r
+\r
+/**\r
+  Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+  the path does not contain a device name, The CWD is prepended to the path.\r
+  \r
+  @param  Cwd     Current Working Directory \r
+\r
+\r
+  @return NULL    No CWD set\r
+  @return 'other' malloc'ed buffer contains CWD.\r
+  \r
+**/\r
+CHAR8 *\r
+EfiGetCwd (\r
+  VOID\r
+  );  \r
 \r
 #endif\r