efi_nii.h 2.2 KB

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