]>
Commit | Line | Data |
---|---|---|
d933e70a JW |
1 | /** @file\r |
2 | The declaration of UEFI HTTP boot function.\r | |
3 | \r | |
f75a7f56 | 4 | Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r |
ecf98fbc | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
d933e70a JW |
6 | \r |
7 | **/\r | |
d1050b9d | 8 | \r |
d933e70a JW |
9 | #ifndef __EFI_HTTP_BOOT_IMPL_H__\r |
10 | #define __EFI_HTTP_BOOT_IMPL_H__\r | |
11 | \r | |
d1050b9d | 12 | #define HTTP_BOOT_CHECK_MEDIA_WAITING_TIME EFI_TIMER_PERIOD_SECONDS(20)\r |
152f2d5e | 13 | \r |
d933e70a | 14 | /**\r |
b659408b | 15 | Attempt to complete a DHCPv4 D.O.R.A or DHCPv6 S.R.A.A sequence to retrieve the boot resource information.\r |
d933e70a JW |
16 | \r |
17 | @param[in] Private The pointer to the driver's private data.\r | |
18 | \r | |
19 | @retval EFI_SUCCESS Boot info was successfully retrieved.\r | |
20 | @retval EFI_INVALID_PARAMETER Private is NULL.\r | |
21 | @retval EFI_NOT_STARTED The driver is in stopped state.\r | |
22 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r | |
23 | @retval Others Other errors as indicated.\r | |
f75a7f56 | 24 | \r |
d933e70a JW |
25 | **/\r |
26 | EFI_STATUS\r | |
27 | HttpBootDhcp (\r | |
d1050b9d | 28 | IN HTTP_BOOT_PRIVATE_DATA *Private\r |
d933e70a JW |
29 | );\r |
30 | \r | |
31 | /**\r | |
32 | Disable the use of UEFI HTTP boot function.\r | |
33 | \r | |
34 | @param[in] Private The pointer to the driver's private data.\r | |
35 | \r | |
36 | @retval EFI_SUCCESS HTTP boot was successfully disabled.\r | |
37 | @retval EFI_NOT_STARTED The driver is already in stopped state.\r | |
38 | @retval EFI_INVALID_PARAMETER Private is NULL.\r | |
39 | @retval Others Unexpected error when stop the function.\r | |
f75a7f56 | 40 | \r |
d933e70a JW |
41 | **/\r |
42 | EFI_STATUS\r | |
43 | HttpBootStop (\r | |
d1050b9d | 44 | IN HTTP_BOOT_PRIVATE_DATA *Private\r |
d933e70a JW |
45 | );\r |
46 | \r | |
95b5c32f FS |
47 | extern EFI_HTTP_BOOT_CALLBACK_PROTOCOL gHttpBootDxeHttpBootCallback;\r |
48 | \r | |
d933e70a | 49 | #endif\r |