• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2   The header file of IP4Config2Nv.c
3 
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution.  The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9 
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 
13 **/
14 
15 #ifndef _IP4_CONFIG2NV_H_
16 #define _IP4_CONFIG2NV_H_
17 
18 #include "Ip4Impl.h"
19 
20 extern UINT8  Ip4Config2Bin[];
21 extern UINT8  Ip4DxeStrings[];
22 
23 #define NIC_ITEM_CONFIG_SIZE   (sizeof (IP4_CONFIG2_INSTANCE) + (sizeof (EFI_IPv4_ADDRESS) * MAX_IP4_CONFIG_DNS))
24 
25 /**
26   Install HII Config Access protocol for network device and allocate resource.
27 
28   @param[in, out]  Instance         The IP4 config2 Instance.
29 
30   @retval EFI_SUCCESS              The HII Config Access protocol is installed.
31   @retval EFI_OUT_OF_RESOURCES     Failed to allocate memory.
32   @retval Others                   Other errors as indicated.
33 
34 **/
35 EFI_STATUS
36 Ip4Config2FormInit (
37   IN OUT IP4_CONFIG2_INSTANCE     *Instance
38   );
39 
40 /**
41   Uninstall the HII Config Access protocol for network devices and free up the resources.
42 
43   @param[in, out]  Instance      The IP4 config2 instance to unload a form.
44 
45 **/
46 VOID
47 Ip4Config2FormUnload (
48   IN OUT IP4_CONFIG2_INSTANCE     *Instance
49   );
50 
51 #endif
52