2015-08-27 03:07:31 +02:00
|
|
|
/** @file
|
|
|
|
The declaration of UEFI HTTP boot function.
|
|
|
|
|
2018-06-27 15:12:32 +02:00
|
|
|
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-08-27 03:07:31 +02:00
|
|
|
|
|
|
|
**/
|
2021-12-05 23:54:07 +01:00
|
|
|
|
2015-08-27 03:07:31 +02:00
|
|
|
#ifndef __EFI_HTTP_BOOT_IMPL_H__
|
|
|
|
#define __EFI_HTTP_BOOT_IMPL_H__
|
|
|
|
|
2021-12-05 23:54:07 +01:00
|
|
|
#define HTTP_BOOT_CHECK_MEDIA_WAITING_TIME EFI_TIMER_PERIOD_SECONDS(20)
|
2017-12-18 02:20:26 +01:00
|
|
|
|
2015-08-27 03:07:31 +02:00
|
|
|
/**
|
2015-11-09 04:30:42 +01:00
|
|
|
Attempt to complete a DHCPv4 D.O.R.A or DHCPv6 S.R.A.A sequence to retrieve the boot resource information.
|
2015-08-27 03:07:31 +02:00
|
|
|
|
|
|
|
@param[in] Private The pointer to the driver's private data.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS Boot info was successfully retrieved.
|
|
|
|
@retval EFI_INVALID_PARAMETER Private is NULL.
|
|
|
|
@retval EFI_NOT_STARTED The driver is in stopped state.
|
|
|
|
@retval EFI_DEVICE_ERROR An unexpected network error occurred.
|
|
|
|
@retval Others Other errors as indicated.
|
2018-06-27 15:12:32 +02:00
|
|
|
|
2015-08-27 03:07:31 +02:00
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
HttpBootDhcp (
|
2021-12-05 23:54:07 +01:00
|
|
|
IN HTTP_BOOT_PRIVATE_DATA *Private
|
2015-08-27 03:07:31 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Disable the use of UEFI HTTP boot function.
|
|
|
|
|
|
|
|
@param[in] Private The pointer to the driver's private data.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS HTTP boot was successfully disabled.
|
|
|
|
@retval EFI_NOT_STARTED The driver is already in stopped state.
|
|
|
|
@retval EFI_INVALID_PARAMETER Private is NULL.
|
|
|
|
@retval Others Unexpected error when stop the function.
|
2018-06-27 15:12:32 +02:00
|
|
|
|
2015-08-27 03:07:31 +02:00
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
HttpBootStop (
|
2021-12-05 23:54:07 +01:00
|
|
|
IN HTTP_BOOT_PRIVATE_DATA *Private
|
2015-08-27 03:07:31 +02:00
|
|
|
);
|
|
|
|
|
2017-06-14 11:28:48 +02:00
|
|
|
extern EFI_HTTP_BOOT_CALLBACK_PROTOCOL gHttpBootDxeHttpBootCallback;
|
|
|
|
|
2015-08-27 03:07:31 +02:00
|
|
|
#endif
|