~ubuntu-branches/ubuntu/trusty/virtualbox-lts-xenial/trusty-updates

« back to all changes in this revision

Viewing changes to src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.h

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2016-02-23 14:28:26 UTC
  • Revision ID: package-import@ubuntu.com-20160223142826-bdu69el2z6wa2a44
Tags: upstream-4.3.36-dfsg
ImportĀ upstreamĀ versionĀ 4.3.36-dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
  The header file of IP4ConfigNv.c
 
3
 
 
4
Copyright (c) 2009 - 2010, 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_CONFIGNV_H_
 
16
#define _IP4_CONFIGNV_H_
 
17
 
 
18
#include "Ip4Config.h"
 
19
#include "Ip4NvData.h"
 
20
 
 
21
extern UINT8  Ip4ConfigDxeBin[];
 
22
extern UINT8  Ip4ConfigDxeStrings[];
 
23
 
 
24
#define NIC_ITEM_CONFIG_SIZE   (sizeof (NIC_IP4_CONFIG_INFO) + (sizeof (EFI_IP4_ROUTE_TABLE) * MAX_IP4_CONFIG_IN_VARIABLE))
 
25
 
 
26
 
 
27
/**
 
28
  Install HII Config Access protocol for network device and allocate resource.
 
29
 
 
30
  @param[in]  Instance            The IP4 Config instance.
 
31
 
 
32
  @retval EFI_SUCCESS              The HII Config Access protocol is installed.
 
33
  @retval EFI_OUT_OF_RESOURCES     Failed to allocate memory.
 
34
  @retval Others                   Other errors as indicated.
 
35
**/
 
36
EFI_STATUS
 
37
Ip4ConfigDeviceInit (
 
38
    IN IP4_CONFIG_INSTANCE                   *Instance
 
39
  );
 
40
 
 
41
/**
 
42
  Uninstall HII Config Access protocol for network device and free resource.
 
43
 
 
44
  @param[in]  Instance            The IP4 Config instance.
 
45
 
 
46
  @retval EFI_SUCCESS             The HII Config Access protocol is uninstalled.
 
47
  @retval Others                  Other errors as indicated.
 
48
**/
 
49
EFI_STATUS
 
50
Ip4ConfigDeviceUnload (
 
51
    IN IP4_CONFIG_INSTANCE                   *Instance
 
52
  );
 
53
 
 
54
#endif