]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
842f5579 | 2 | EFI Network Interface Identifier Protocol\r |
d1f95000 | 3 | \r |
4 | Copyright (c) 2006, Intel Corporation \r | |
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 | |
a6508c05 | 27 | //\r |
28 | // Revision defined in EFI1.1.\r | |
29 | // \r | |
30 | #define EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE_REVISION EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_REVISION\r | |
31 | \r | |
d1f95000 | 32 | //\r |
33 | // Forward reference for pure ANSI compatability\r | |
34 | //\r | |
35 | typedef struct _EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL;\r | |
36 | \r | |
a6508c05 | 37 | //\r |
38 | // Protocol defined in EFI1.1.\r | |
39 | // \r | |
40 | typedef EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE;\r | |
41 | \r | |
d1f95000 | 42 | typedef enum {\r |
43 | EfiNetworkInterfaceUndi = 1\r | |
44 | } EFI_NETWORK_PROTOCOL_TYPE;\r | |
45 | \r | |
46 | struct _EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL {\r | |
47 | \r | |
48 | UINT64 Revision;\r | |
49 | //\r | |
50 | // Revision of the network interface identifier protocol interface.\r | |
51 | //\r | |
52 | UINT64 ID;\r | |
53 | //\r | |
54 | // Address of the first byte of the identifying structure for this\r | |
55 | // network interface. This is set to zero if there is no structure.\r | |
56 | //\r | |
57 | // For PXE/UNDI this is the first byte of the !PXE structure.\r | |
58 | //\r | |
59 | UINT64 ImageAddr;\r | |
60 | //\r | |
61 | // Address of the UNrelocated driver/ROM image. This is set\r | |
62 | // to zero if there is no driver/ROM image.\r | |
63 | //\r | |
64 | // For 16-bit UNDI, this is the first byte of the option ROM in\r | |
65 | // upper memory.\r | |
66 | //\r | |
67 | // For 32/64-bit S/W UNDI, this is the first byte of the EFI ROM\r | |
68 | // image.\r | |
69 | //\r | |
70 | // For H/W UNDI, this is set to zero.\r | |
71 | //\r | |
72 | UINT32 ImageSize;\r | |
73 | //\r | |
74 | // Size of the UNrelocated driver/ROM image of this network interface.\r | |
75 | // This is set to zero if there is no driver/ROM image.\r | |
76 | //\r | |
77 | CHAR8 StringId[4];\r | |
78 | //\r | |
79 | // 4 char ASCII string to go in class identifier (option 60) in DHCP\r | |
80 | // and Boot Server discover packets.\r | |
81 | // For EfiNetworkInterfaceUndi this field is "UNDI".\r | |
82 | // For EfiNetworkInterfaceSnp this field is "SNPN".\r | |
83 | //\r | |
84 | UINT8 Type;\r | |
85 | UINT8 MajorVer;\r | |
86 | UINT8 MinorVer;\r | |
87 | //\r | |
88 | // Information to be placed into the PXE DHCP and Discover packets.\r | |
89 | // This is the network interface type and version number that will\r | |
90 | // be placed into DHCP option 94 (client network interface identifier).\r | |
91 | //\r | |
92 | BOOLEAN Ipv6Supported;\r | |
93 | UINT8 IfNum; // interface number to be used with pxeid structure\r | |
94 | };\r | |
95 | \r | |
96 | extern EFI_GUID gEfiNetworkInterfaceIdentifierProtocolGuid;\r | |
97 | extern EFI_GUID gEfiNetworkInterfaceIdentifierProtocolGuid_31;\r | |
98 | \r | |
99 | #endif // _EFI_NII_H\r |