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