1 #ifndef _IPXE_DOWNLOAD_H 2 #define _IPXE_DOWNLOAD_H 149 #define IPXE_DOWNLOAD_PROTOCOL_GUID \ 151 0x3eaeaebd, 0xdecf, 0x493b, { 0x9b, 0xd1, 0xcd, 0xb2, 0xde, 0xca, 0xe7, 0x19 } \
The iPXE Download Protocol.
PXENV_STATUS_t Status
PXE status code.
EFI_STATUS(EFIAPI * IPXE_DOWNLOAD_START)(IN IPXE_DOWNLOAD_PROTOCOL *This, IN CHAR8 *Url, IN IPXE_DOWNLOAD_DATA_CALLBACK DataCallback, IN IPXE_DOWNLOAD_FINISH_CALLBACK FinishCallback, IN VOID *Context, OUT IPXE_DOWNLOAD_FILE *File)
Start downloading a file, and register callback functions to handle the download.
VOID * IPXE_DOWNLOAD_FILE
Token to represent a currently downloading file.
EFI_STATUS(EFIAPI * IPXE_DOWNLOAD_ABORT)(IN IPXE_DOWNLOAD_PROTOCOL *This, IN IPXE_DOWNLOAD_FILE File, IN EFI_STATUS Status)
Forcibly abort downloading a file that is currently in progress.
IPXE_DOWNLOAD_START Start
void(EFIAPI * IPXE_DOWNLOAD_FINISH_CALLBACK)(IN VOID *Context, IN EFI_STATUS Status)
Callback function that is invoked when the file is finished downloading, or when a connection unexpec...
EFI_STATUS(EFIAPI * IPXE_DOWNLOAD_POLL)(IN IPXE_DOWNLOAD_PROTOCOL *This)
Poll for more data from iPXE.
UINT16_t BufferLength
Data buffer length.
FILE_LICENCE(GPL2_OR_LATER)
SEGOFF16_t Buffer
Buffer address.
int efi_download_install(EFI_HANDLE handle)
Install iPXE download protocol.
UINT64 UINTN
Unsigned value of native width.
void efi_download_uninstall(EFI_HANDLE handle)
Uninstall iPXE download protocol.
#define VOID
Undeclared type.
IPXE_DOWNLOAD_ABORT Abort
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
EFI_STATUS(EFIAPI * IPXE_DOWNLOAD_DATA_CALLBACK)(IN VOID *Context, IN VOID *Buffer, IN UINTN BufferLength, IN UINTN FileOffset)
Callback function that is invoked when data arrives for a particular file.