]>
Commit | Line | Data |
---|---|---|
63886849 | 1 | /** @file\r |
2 | This file defines NIC_IP4_CONFIG_INFO structure.\r | |
3 | \r | |
cd5ebaa0 | 4 | Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r |
64a80549 | 5 | This program and the accompanying materials are licensed and made available under \r |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r | |
7 | The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r | |
63886849 | 9 | \r |
64a80549 | 10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
63886849 | 11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __NIC_IP4_CONFIG_NVDATA_H__\r | |
16 | #define __NIC_IP4_CONFIG_NVDATA_H__\r | |
17 | \r | |
18 | #include <Protocol/Ip4Config.h>\r | |
19 | \r | |
20 | #define EFI_NIC_IP4_CONFIG_VARIABLE_GUID \\r | |
21 | { \\r | |
22 | 0xd8944553, 0xc4dd, 0x41f4, { 0x9b, 0x30, 0xe1, 0x39, 0x7c, 0xfb, 0x26, 0x7b } \\r | |
23 | }\r | |
24 | \r | |
25 | #define EFI_NIC_IP4_CONFIG_VARIABLE L"EfiNicIp4ConfigVariable"\r | |
26 | \r | |
f6b7393c | 27 | \r |
28 | //\r | |
29 | // Config source: dhcp or static\r | |
30 | //\r | |
31 | #define IP4_CONFIG_SOURCE_DHCP 0\r | |
32 | #define IP4_CONFIG_SOURCE_STATIC 1\r | |
33 | #define IP4_CONFIG_SOURCE_MAX 2\r | |
34 | \r | |
35 | #define IP4_NIC_NAME_LENGTH 64\r | |
36 | #define MAX_IP4_CONFIG_IN_VARIABLE 16\r | |
63886849 | 37 | \r |
38 | //\r | |
39 | // The following structures are used by drivers/applications other\r | |
e9b67286 | 40 | // than EFI_IP4_PROTOCOL, such as the ifconfig shell application, to\r |
41 | // communicate the IP configuration information to the EFI_IP4_CONFIG_PROTOCOL.\r | |
42 | // The EFI_IP4_PROTOCOL uses the EFI_IP4_CONFIG_PROTOCOL to get\r | |
43 | // the default IP4 configuration.\r | |
63886849 | 44 | //\r |
45 | \r | |
46 | ///\r | |
47 | /// NIC_ADDR contains the interface's type and MAC address to identify\r | |
48 | /// a specific NIC.\r | |
49 | ///\r | |
50 | typedef struct {\r | |
64a80549 | 51 | UINT16 Type; ///< Interface type.\r |
52 | UINT8 Len; ///< Length of MAC address.\r | |
53 | EFI_MAC_ADDRESS MacAddr; ///< MAC address of interface.\r | |
63886849 | 54 | } NIC_ADDR;\r |
55 | \r | |
56 | ///\r | |
57 | /// NIC_IP4_CONFIG_INFO contains the IP4 configure\r | |
58 | /// parameters for that NIC. NIC_IP4_CONFIG_INFO is\r | |
59 | /// of variable length.\r | |
60 | ///\r | |
61 | typedef struct {\r | |
64a80549 | 62 | NIC_ADDR NicAddr; ///< Link layer address to identify the NIC.\r |
63 | UINT32 Source; ///< Static or DHCP.\r | |
64 | BOOLEAN Perment; ///< Survive the reboot or not.\r | |
65 | EFI_IP4_IPCONFIG_DATA Ip4Info; ///< IP addresses.\r | |
63886849 | 66 | } NIC_IP4_CONFIG_INFO;\r |
67 | \r | |
68 | extern EFI_GUID gEfiNicIp4ConfigVariableGuid;\r | |
69 | \r | |
70 | #endif\r |