]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/NetworkInterfaceIdentifier.h
Use doxygen comment style for document entity such as struct, enum, variable that...
[mirror_edk2.git] / MdePkg / Include / Protocol / NetworkInterfaceIdentifier.h
CommitLineData
d1f95000 1/** @file\r
842f5579 2 EFI Network Interface Identifier Protocol\r
d1f95000 3\r
4ca9b6c4 4 Copyright (c) 2006 - 2008, Intel Corporation \r
d1f95000 5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
d1f95000 13\r
14**/\r
15\r
16#ifndef __EFI_NETWORK_INTERFACE_IDENTIFER_H__\r
17#define __EFI_NETWORK_INTERFACE_IDENTIFER_H__\r
18\r
19\r
20#define EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_GUID \\r
21 { \\r
22 0xE18541CD, 0xF755, 0x4f73, {0x92, 0x8D, 0x64, 0x3C, 0x8A, 0x79, 0xB2, 0x29 } \\r
23 }\r
24\r
25#define EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_REVISION 0x00010000\r
26\r
99e8ed21 27///\r
28/// Revision defined in EFI1.1.\r
29/// \r
a6508c05 30#define EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE_REVISION EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_REVISION\r
31\r
99e8ed21 32///\r
33/// Forward reference for pure ANSI compatability\r
34///\r
d1f95000 35typedef struct _EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL;\r
36\r
99e8ed21 37///\r
38/// Protocol defined in EFI1.1.\r
39/// \r
a6508c05 40typedef EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE;\r
41\r
d1f95000 42typedef enum {\r
43 EfiNetworkInterfaceUndi = 1\r
44} EFI_NETWORK_PROTOCOL_TYPE;\r
45\r
4ca9b6c4
LG
46/** \r
47 @par Protocol Description:\r
48 An optional protocol that is used to describe details about the software \r
49 layer that is used to produce the Simple Network Protocol. \r
50\r
51 @param Revision\r
52 The revision of the EFI_NETWORK_INTERFACE_IDENTIFIER protocol.\r
53\r
54 @param Id\r
55 Address of the first byte of the identifying structure for this network \r
56 interface. This is only valid when the network interface is started \r
57 (see Start()). When the network interface is not started, this field is set to zero.\r
58\r
59 @param ImageAddr\r
60 Address of the unrelocated network interface image.\r
61\r
62 @param ImageSize\r
63 Size of unrelocated network interface image.\r
64\r
65 @param StringId\r
66 A four-character ASCII string that is sent in the class identifier field of\r
67 option 60 in DHCP. For a Type of EfiNetworkInterfaceUndi, this field is UNDI.\r
68\r
69 @param Type\r
70 Network interface type. This will be set to one of the values \r
71 in EFI_NETWORK_INTERFACE_TYPE.\r
72\r
73 @param MajorVer\r
74 Major version number.\r
75\r
76 @param MinorVer\r
77 Minor version number.\r
78\r
79 @param Ipv6Supported\r
80 TRUE if the network interface supports IPv6; otherwise FALSE.\r
81\r
82 @param IfNum\r
83 The network interface number that is being identified by this Network \r
84 Interface Identifier Protocol. This field must be less than or equal \r
85 to the IFcnt field in the !PXE structure.\r
86\r
87**/\r
d1f95000 88struct _EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL {\r
89\r
90 UINT64 Revision;\r
91 //\r
92 // Revision of the network interface identifier protocol interface.\r
93 //\r
94 UINT64 ID;\r
95 //\r
96 // Address of the first byte of the identifying structure for this\r
97 // network interface. This is set to zero if there is no structure.\r
98 //\r
99 // For PXE/UNDI this is the first byte of the !PXE structure.\r
100 //\r
101 UINT64 ImageAddr;\r
102 //\r
103 // Address of the UNrelocated driver/ROM image. This is set\r
104 // to zero if there is no driver/ROM image.\r
105 //\r
106 // For 16-bit UNDI, this is the first byte of the option ROM in\r
107 // upper memory.\r
108 //\r
109 // For 32/64-bit S/W UNDI, this is the first byte of the EFI ROM\r
110 // image.\r
111 //\r
112 // For H/W UNDI, this is set to zero.\r
113 //\r
114 UINT32 ImageSize;\r
115 //\r
116 // Size of the UNrelocated driver/ROM image of this network interface.\r
117 // This is set to zero if there is no driver/ROM image.\r
118 //\r
119 CHAR8 StringId[4];\r
120 //\r
121 // 4 char ASCII string to go in class identifier (option 60) in DHCP\r
122 // and Boot Server discover packets.\r
123 // For EfiNetworkInterfaceUndi this field is "UNDI".\r
124 // For EfiNetworkInterfaceSnp this field is "SNPN".\r
125 //\r
126 UINT8 Type;\r
127 UINT8 MajorVer;\r
128 UINT8 MinorVer;\r
129 //\r
130 // Information to be placed into the PXE DHCP and Discover packets.\r
131 // This is the network interface type and version number that will\r
132 // be placed into DHCP option 94 (client network interface identifier).\r
133 //\r
134 BOOLEAN Ipv6Supported;\r
135 UINT8 IfNum; // interface number to be used with pxeid structure\r
136};\r
137\r
138extern EFI_GUID gEfiNetworkInterfaceIdentifierProtocolGuid;\r
139extern EFI_GUID gEfiNetworkInterfaceIdentifierProtocolGuid_31;\r
140\r
141#endif // _EFI_NII_H\r