]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.h
MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / RamDiskDxe / RamDiskImpl.h
index 077bb77b25bfab58f1b3f54670bc8f51e0f92902..08a8ca94c9db68ee5680e6988a58c20d850b4918 100644 (file)
@@ -605,45 +605,6 @@ FileInfo (
   );\r
 \r
 \r
-/**\r
-  This function will open a file or directory referenced by DevicePath.\r
-\r
-  This function opens a file with the open mode according to the file path. The\r
-  Attributes is valid only for EFI_FILE_MODE_CREATE.\r
-\r
-  @param[in, out] FilePath   On input, the device path to the file.\r
-                             On output, the remaining device path.\r
-  @param[out]     FileHandle Pointer to the file handle.\r
-  @param[in]      OpenMode   The mode to open the file with.\r
-  @param[in]      Attributes The file's file attributes.\r
-\r
-  @retval EFI_SUCCESS             The information was set.\r
-  @retval EFI_INVALID_PARAMETER   One of the parameters has an invalid value.\r
-  @retval EFI_UNSUPPORTED         Could not open the file path.\r
-  @retval EFI_NOT_FOUND           The specified file could not be found on the\r
-                                  device or the file system could not be found\r
-                                  on the device.\r
-  @retval EFI_NO_MEDIA            The device has no medium.\r
-  @retval EFI_MEDIA_CHANGED       The device has a different medium in it or\r
-                                  the medium is no longer supported.\r
-  @retval EFI_DEVICE_ERROR        The device reported an error.\r
-  @retval EFI_VOLUME_CORRUPTED    The file system structures are corrupted.\r
-  @retval EFI_WRITE_PROTECTED     The file or medium is write protected.\r
-  @retval EFI_ACCESS_DENIED       The file was opened read only.\r
-  @retval EFI_OUT_OF_RESOURCES    Not enough resources were available to open\r
-                                  the file.\r
-  @retval EFI_VOLUME_FULL         The volume is full.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-OpenFileByDevicePath(\r
-  IN OUT EFI_DEVICE_PATH_PROTOCOL           **FilePath,\r
-  OUT EFI_FILE_HANDLE                       *FileHandle,\r
-  IN UINT64                                 OpenMode,\r
-  IN UINT64                                 Attributes\r
-  );\r
-\r
-\r
 /**\r
   Publish the RAM disk NVDIMM Firmware Interface Table (NFIT) to the ACPI\r
   table.\r