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