IScsiDns.h 1.7 KB

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