Merge from vendor branch CVS:
[dragonfly.git] / sys / boot / efi / include / efi_nii.h
1 /*
2  * $FreeBSD: src/sys/boot/efi/include/efi_nii.h,v 1.2 2002/05/19 03:17:20 marcel Exp $
3  * $DragonFly: src/sys/boot/efi/include/efi_nii.h,v 1.1 2003/11/10 06:08:32 dillon Exp $
4  */
5 #ifndef _EFI_NII_H
6 #define _EFI_NII_H
7
8 /*++
9 Copyright (c) 2000  Intel Corporation
10
11 Module name:
12     efi_nii.h
13
14 Abstract:
15
16 Revision history:
17     2000-Feb-18 M(f)J   GUID updated.
18                 Structure order changed for machine word alignment.
19                 Added StringId[4] to structure.
20                 
21     2000-Feb-14 M(f)J   Genesis.
22 --*/
23
24 #define EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL \
25     { 0xE18541CD, 0xF755, 0x4f73, 0x92, 0x8D, 0x64, 0x3C, 0x8A, 0x79, 0xB2, 0x29 }
26
27 #define EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE_REVISION 0x00010000
28
29 typedef enum {
30     EfiNetworkInterfaceUndi = 1
31 } EFI_NETWORK_INTERFACE_TYPE;
32
33 typedef struct {
34
35         /* Revision of the network interface identifier protocol interface. */
36     UINT64 Revision;
37
38         /*
39          * Address of the first byte of the identifying structure for this
40          * network interface.  This is set to zero if there is no structure.
41          * For PXE/UNDI this is the first byte of the !PXE structure.
42          */
43     UINT64 ID;
44
45         /*
46          * Address of the UNrelocated driver/ROM image.  This is set
47          * to zero if there is no driver/ROM image.
48          * For 16-bit UNDI, this is the first byte of the option ROM in
49          * upper memory.
50          * For 32/64-bit S/W UNDI, this is the first byte of the EFI ROM
51          * image.
52          * For H/W UNDI, this is set to zero.
53          */
54     UINT64 ImageAddr;
55
56         /*
57          * Size of the UNrelocated driver/ROM image of this network interface.
58          * This is set to zero if there is no driver/ROM image.
59          */
60     UINT32 ImageSize;
61
62         /*
63          * 4 char ASCII string to go in class identifier (option 60) in DHCP
64          * and Boot Server discover packets.
65          * For EfiNetworkInterfaceUndi this field is "UNDI".
66          * For EfiNetworkInterfaceSnp this field is "SNPN".
67          */
68     CHAR8 StringId[4];
69
70         /*
71          * Information to be placed into the PXE DHCP and Discover packets.
72          * This is the network interface type and version number that will
73          * be placed into DHCP option 94 (client network interface identifier).
74          */
75     UINT8 Type;
76     UINT8 MajorVer;
77     UINT8 MinorVer;
78
79     BOOLEAN Ipv6Supported;
80         UINT8   IfNum;  /* interface number to be used with pxeid structure */
81 } EFI_NETWORK_INTERFACE_IDENTIFIER_INTERFACE;
82
83 extern EFI_GUID NetworkInterfaceIdentifierProtocol;
84
85 #endif /* _EFI_NII_H */