X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FLoadFile.h;h=929cc8ed1a86e3cf2a818a21c5ce2d59857e2f59;hb=1fd227dd260792b6d12e2e00f74bbf6b9d90cdaf;hp=43a9e3a0c8eb23c0cf5914d4606bc67df2b352e8;hpb=842f5579c7e2a313f56c576e4c5150f7f4793079;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/LoadFile.h b/MdePkg/Include/Protocol/LoadFile.h index 43a9e3a0c8..929cc8ed1a 100644 --- a/MdePkg/Include/Protocol/LoadFile.h +++ b/MdePkg/Include/Protocol/LoadFile.h @@ -1,20 +1,14 @@ /** @file - Load File protocol as defined in the EFI 1.0 specification. + Load File protocol as defined in the UEFI 2.0 specification. - Load file protocol exists to supports the addition of new boot devices, - and to support booting from devices that do not map well to file system. + The load file protocol exists to supports the addition of new boot devices, + and to support booting from devices that do not map well to file system. Network boot is done via a LoadFile protocol. - EFI 1.0 can boot from any device that produces a LoadFile protocol. + UEFI 2.0 can boot from any device that produces a LoadFile protocol. - Copyright (c) 2006, Intel Corporation - All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -26,16 +20,16 @@ 0x56EC3091, 0x954C, 0x11d2, {0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B } \ } -// -// Protocol Guid defined by EFI1.1. -// +/// +/// Protocol Guid defined by EFI1.1. +/// #define LOAD_FILE_PROTOCOL EFI_LOAD_FILE_PROTOCOL_GUID typedef struct _EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE_PROTOCOL; -// -// Backward-compatible with EFI1.1 -// +/// +/// Backward-compatible with EFI1.1 +/// typedef EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE_INTERFACE; /** @@ -52,7 +46,7 @@ typedef EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE_INTERFACE; Buffer. On output with a return code of EFI_BUFFER_TOO_SMALL, the size of Buffer required to retrieve the requested file. @param Buffer The memory buffer to transfer the file to. IF Buffer is NULL, - then no the size of the requested file is returned in + then the size of the requested file is returned in BufferSize. @retval EFI_SUCCESS The file was loaded. @@ -62,21 +56,23 @@ typedef EFI_LOAD_FILE_PROTOCOL EFI_LOAD_FILE_INTERFACE; @retval EFI_NO_MEDIA No medium was present to load the file. @retval EFI_DEVICE_ERROR The file was not loaded due to a device error. @retval EFI_NO_RESPONSE The remote system did not respond. - @retval EFI_NOT_FOUND The file was not found + @retval EFI_NOT_FOUND The file was not found. @retval EFI_ABORTED The file load process was manually cancelled. - + @retval EFI_WARN_FILE_SYSTEM The resulting Buffer contains UEFI-compliant file system. **/ typedef EFI_STATUS -(EFIAPI *EFI_LOAD_FILE) ( +(EFIAPI *EFI_LOAD_FILE)( IN EFI_LOAD_FILE_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN BOOLEAN BootPolicy, IN OUT UINTN *BufferSize, IN VOID *Buffer OPTIONAL - ) -; + ); +/// +/// The EFI_LOAD_FILE_PROTOCOL is a simple protocol used to obtain files from arbitrary devices. +/// struct _EFI_LOAD_FILE_PROTOCOL { EFI_LOAD_FILE LoadFile; };