]>
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 | |
8 | #ifndef __EFI_HTTP_BOOT_IMPL_H__\r | |
9 | #define __EFI_HTTP_BOOT_IMPL_H__\r | |
10 | \r | |
152f2d5e | 11 | #define HTTP_BOOT_CHECK_MEDIA_WAITING_TIME EFI_TIMER_PERIOD_SECONDS(20)\r |
12 | \r | |
d933e70a | 13 | /**\r |
b659408b | 14 | 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 |
15 | \r |
16 | @param[in] Private The pointer to the driver's private data.\r | |
17 | \r | |
18 | @retval EFI_SUCCESS Boot info was successfully retrieved.\r | |
19 | @retval EFI_INVALID_PARAMETER Private is NULL.\r | |
20 | @retval EFI_NOT_STARTED The driver is in stopped state.\r | |
21 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r | |
22 | @retval Others Other errors as indicated.\r | |
f75a7f56 | 23 | \r |
d933e70a JW |
24 | **/\r |
25 | EFI_STATUS\r | |
26 | HttpBootDhcp (\r | |
27 | IN HTTP_BOOT_PRIVATE_DATA *Private\r | |
28 | );\r | |
29 | \r | |
30 | /**\r | |
31 | Disable the use of UEFI HTTP boot function.\r | |
32 | \r | |
33 | @param[in] Private The pointer to the driver's private data.\r | |
34 | \r | |
35 | @retval EFI_SUCCESS HTTP boot was successfully disabled.\r | |
36 | @retval EFI_NOT_STARTED The driver is already in stopped state.\r | |
37 | @retval EFI_INVALID_PARAMETER Private is NULL.\r | |
38 | @retval Others Unexpected error when stop the function.\r | |
f75a7f56 | 39 | \r |
d933e70a JW |
40 | **/\r |
41 | EFI_STATUS\r | |
42 | HttpBootStop (\r | |
43 | IN HTTP_BOOT_PRIVATE_DATA *Private\r | |
44 | );\r | |
45 | \r | |
95b5c32f FS |
46 | extern EFI_HTTP_BOOT_CALLBACK_PROTOCOL gHttpBootDxeHttpBootCallback;\r |
47 | \r | |
d933e70a | 48 | #endif\r |