Ip6ConfigNv.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /** @file
  2. The header file of Ip6ConfigNv.c.
  3. Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _IP6_CONFIGNV_H_
  7. #define _IP6_CONFIGNV_H_
  8. #include "Ip6NvData.h"
  9. #include "Ip6ConfigImpl.h"
  10. extern UINT8 Ip6ConfigBin[];
  11. extern UINT8 Ip6DxeStrings[];
  12. #define IP6_ETHERNET L"Ethernet"
  13. #define IP6_EXPERIMENTAL_ETHERNET L"Experimental Ethernet"
  14. #define IP6_ADDRESS_DELIMITER L' '
  15. #define IP6_LINK_LOCAL_PREFIX L"FE80::"
  16. typedef enum {
  17. Ip6InterfaceTypeEthernet = 1,
  18. Ip6InterfaceTypeExperimentalEthernet
  19. } IP6_INTERFACE_TYPE;
  20. typedef enum {
  21. Ip6ConfigNvHostAddress,
  22. Ip6ConfigNvGatewayAddress,
  23. Ip6ConfigNvDnsAddress,
  24. Ip6ConfigNvRouteTable
  25. } IP6_CONFIG_NV_ADDRESS_TYPE;
  26. /**
  27. Install HII Config Access protocol for network device and allocate resources.
  28. @param[in, out] Instance The IP6_CONFIG_INSTANCE to create a form.
  29. @retval EFI_SUCCESS The HII Config Access protocol is installed.
  30. @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
  31. @retval Others Other errors as indicated.
  32. **/
  33. EFI_STATUS
  34. Ip6ConfigFormInit (
  35. IN OUT IP6_CONFIG_INSTANCE *Instance
  36. );
  37. /**
  38. Uninstall HII Config Access protocol for network device and free resource.
  39. @param[in, out] Instance The IP6_CONFIG_INSTANCE to unload a form.
  40. **/
  41. VOID
  42. Ip6ConfigFormUnload (
  43. IN OUT IP6_CONFIG_INSTANCE *Instance
  44. );
  45. #endif