Ip4Config2Nv.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** @file
  2. The header file of IP4Config2Nv.c
  3. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _IP4_CONFIG2NV_H_
  7. #define _IP4_CONFIG2NV_H_
  8. #include "Ip4Impl.h"
  9. extern UINT8 Ip4Config2Bin[];
  10. extern UINT8 Ip4DxeStrings[];
  11. #define NIC_ITEM_CONFIG_SIZE (sizeof (IP4_CONFIG2_INSTANCE) + (sizeof (EFI_IPv4_ADDRESS) * MAX_IP4_CONFIG_DNS))
  12. /**
  13. Install HII Config Access protocol for network device and allocate resource.
  14. @param[in, out] Instance The IP4 config2 Instance.
  15. @retval EFI_SUCCESS The HII Config Access protocol is installed.
  16. @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
  17. @retval Others Other errors as indicated.
  18. **/
  19. EFI_STATUS
  20. Ip4Config2FormInit (
  21. IN OUT IP4_CONFIG2_INSTANCE *Instance
  22. );
  23. /**
  24. Uninstall the HII Config Access protocol for network devices and free up the resources.
  25. @param[in, out] Instance The IP4 config2 instance to unload a form.
  26. **/
  27. VOID
  28. Ip4Config2FormUnload (
  29. IN OUT IP4_CONFIG2_INSTANCE *Instance
  30. );
  31. #endif