]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | The declaration of UEFI HTTP boot function.\r | |
3 | \r | |
4 | Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | #ifndef __EFI_HTTP_BOOT_IMPL_H__\r | |
9 | #define __EFI_HTTP_BOOT_IMPL_H__\r | |
10 | \r | |
11 | #define HTTP_BOOT_CHECK_MEDIA_WAITING_TIME EFI_TIMER_PERIOD_SECONDS(20)\r | |
12 | \r | |
13 | /**\r | |
14 | Attempt to complete a DHCPv4 D.O.R.A or DHCPv6 S.R.A.A sequence to retrieve the boot resource information.\r | |
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 | |
23 | \r | |
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 | |
39 | \r | |
40 | **/\r | |
41 | EFI_STATUS\r | |
42 | HttpBootStop (\r | |
43 | IN HTTP_BOOT_PRIVATE_DATA *Private\r | |
44 | );\r | |
45 | \r | |
46 | extern EFI_HTTP_BOOT_CALLBACK_PROTOCOL gHttpBootDxeHttpBootCallback;\r | |
47 | \r | |
48 | #endif\r |