]>
Commit | Line | Data |
---|---|---|
eabc6e59 ZL |
1 | /** @file\r |
2 | The header file of routines for IScsi driver to perform DNS\r | |
3 | resolution based on UEFI DNS protocols.\r | |
4 | \r | |
5 | Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _ISCSI_DNS_H_\r | |
17 | #define _ISCSI_DNS_H_\r | |
18 | \r | |
19 | /**\r | |
20 | Retrieve the host address using the EFI_DNS4_PROTOCOL.\r | |
21 | \r | |
22 | @param[in] Image The handle of the driver image.\r | |
23 | @param[in] Controller The handle of the controller.\r | |
24 | @param[in, out] NvData The Session config data structure.\r | |
25 | \r | |
26 | @retval EFI_SUCCESS Operation succeeded.\r | |
27 | @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r | |
28 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r | |
29 | @retval Others Other errors as indicated.\r | |
30 | \r | |
31 | **/\r | |
32 | EFI_STATUS\r | |
33 | IScsiDns4 (\r | |
34 | IN EFI_HANDLE Image,\r | |
35 | IN EFI_HANDLE Controller,\r | |
36 | IN OUT ISCSI_SESSION_CONFIG_NVDATA *NvData\r | |
37 | );\r | |
38 | \r | |
39 | /**\r | |
40 | Retrieve the host address using the EFI_DNS6_PROTOCOL.\r | |
41 | \r | |
42 | @param[in] Image The handle of the driver image.\r | |
43 | @param[in] Controller The handle of the controller.\r | |
44 | @param[in, out] NvData The Session config data structure.\r | |
45 | \r | |
46 | @retval EFI_SUCCESS Operation succeeded.\r | |
47 | @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r | |
48 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r | |
49 | @retval Others Other errors as indicated.\r | |
50 | \r | |
51 | **/\r | |
52 | EFI_STATUS\r | |
53 | IScsiDns6 (\r | |
54 | IN EFI_HANDLE Image,\r | |
55 | IN EFI_HANDLE Controller,\r | |
56 | IN OUT ISCSI_SESSION_CONFIG_NVDATA *NvData\r | |
57 | );\r | |
58 | \r | |
59 | #endif |