Last change
on this file since 86513 was 80721, checked in by vboxsync, 5 years ago |
Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | Routines used to operate the Ip4Dxe.
|
---|
3 |
|
---|
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #ifndef _IP4_NV_DATA_H_
|
---|
10 | #define _IP4_NV_DATA_H_
|
---|
11 |
|
---|
12 | #include <Guid/Ip4Config2Hii.h>
|
---|
13 |
|
---|
14 | #define FORMID_MAIN_FORM 1
|
---|
15 | #define FORMID_DEVICE_FORM 2
|
---|
16 |
|
---|
17 | #define KEY_ENABLE 0x100
|
---|
18 | #define KEY_DHCP_ENABLE 0x101
|
---|
19 | #define KEY_LOCAL_IP 0x102
|
---|
20 | #define KEY_SUBNET_MASK 0x103
|
---|
21 | #define KEY_GATE_WAY 0x104
|
---|
22 | #define KEY_DNS 0x105
|
---|
23 | #define KEY_SAVE_CHANGES 0x106
|
---|
24 |
|
---|
25 | #define IP_MIN_SIZE 7
|
---|
26 | #define IP_MAX_SIZE 15
|
---|
27 | #define IP4_STR_MAX_SIZE 16
|
---|
28 | #define ADDRESS_STR_MAX_SIZE 255
|
---|
29 | #define MAX_IP4_CONFIG_DNS 16
|
---|
30 |
|
---|
31 | ///
|
---|
32 | /// IP4_CONFIG2_IFR_NVDATA contains the IP4 configure
|
---|
33 | /// parameters for that NIC.
|
---|
34 | ///
|
---|
35 | typedef struct {
|
---|
36 | UINT8 Configure; ///< NIC configure status
|
---|
37 | UINT8 DhcpEnable; ///< Static or DHCP
|
---|
38 | CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses
|
---|
39 | CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address
|
---|
40 | CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address
|
---|
41 | CHAR16 DnsAddress[ADDRESS_STR_MAX_SIZE]; ///< DNS server address
|
---|
42 | } IP4_CONFIG2_IFR_NVDATA;
|
---|
43 |
|
---|
44 | #endif
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.