1 | /** @file
|
---|
2 | The header file of routines for IScsi driver to perform DNS
|
---|
3 | resolution based on UEFI DNS protocols.
|
---|
4 |
|
---|
5 | Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #ifndef _ISCSI_DNS_H_
|
---|
11 | #define _ISCSI_DNS_H_
|
---|
12 |
|
---|
13 | /**
|
---|
14 | Retrieve the host address using the EFI_DNS4_PROTOCOL.
|
---|
15 |
|
---|
16 | @param[in] Image The handle of the driver image.
|
---|
17 | @param[in] Controller The handle of the controller.
|
---|
18 | @param[in, out] NvData The Session config data structure.
|
---|
19 |
|
---|
20 | @retval EFI_SUCCESS Operation succeeded.
|
---|
21 | @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
|
---|
22 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.
|
---|
23 | @retval Others Other errors as indicated.
|
---|
24 |
|
---|
25 | **/
|
---|
26 | EFI_STATUS
|
---|
27 | IScsiDns4 (
|
---|
28 | IN EFI_HANDLE Image,
|
---|
29 | IN EFI_HANDLE Controller,
|
---|
30 | IN OUT ISCSI_SESSION_CONFIG_NVDATA *NvData
|
---|
31 | );
|
---|
32 |
|
---|
33 | /**
|
---|
34 | Retrieve the host address using the EFI_DNS6_PROTOCOL.
|
---|
35 |
|
---|
36 | @param[in] Image The handle of the driver image.
|
---|
37 | @param[in] Controller The handle of the controller.
|
---|
38 | @param[in, out] NvData The Session config data structure.
|
---|
39 |
|
---|
40 | @retval EFI_SUCCESS Operation succeeded.
|
---|
41 | @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
|
---|
42 | @retval EFI_DEVICE_ERROR An unexpected network error occurred.
|
---|
43 | @retval Others Other errors as indicated.
|
---|
44 |
|
---|
45 | **/
|
---|
46 | EFI_STATUS
|
---|
47 | IScsiDns6 (
|
---|
48 | IN EFI_HANDLE Image,
|
---|
49 | IN EFI_HANDLE Controller,
|
---|
50 | IN OUT ISCSI_SESSION_CONFIG_NVDATA *NvData
|
---|
51 | );
|
---|
52 |
|
---|
53 | #endif
|
---|