Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.5 KiB

  1. //
  2. // notification codes
  3. //
  4. #ifndef _NDIS1394_
  5. #define _NDIS1394_
  6. #ifndef EXPORT
  7. #ifdef _NDIS1394ENUM_
  8. #define EXPORT
  9. #else
  10. #define EXPORT DECLSPEC_IMPORT
  11. #endif
  12. #endif
  13. #define NDIS1394_CALLBACK_NAME L"\\Callback\\Ndis1394CallbackObject"
  14. #define NDIS1394_CALLBACK_SOURCE_ENUM1394 0
  15. #define NDIS1394_CALLBACK_SOURCE_NIC1394 1
  16. typedef struct _NIC1394_CHARACTERISTICS *PNIC1394_CHARACTERISTICS;
  17. typedef struct _NDISENUM1394_CHARACTERISTICS *PNDISENUM1394_CHARACTERISTICS;
  18. typedef
  19. NTSTATUS
  20. (*ENUM1394_REGISTER_DRIVER_HANDLER)(
  21. IN PNIC1394_CHARACTERISTICS Characteristics
  22. );
  23. typedef
  24. VOID
  25. (*ENUM1394_DEREGISTER_DRIVER_HANDLER)(
  26. VOID
  27. );
  28. typedef
  29. NTSTATUS
  30. (*ENUM1394_REGISTER_ADAPTER_HANDLER)(
  31. IN PVOID Nic1394AdapterContext,
  32. IN PDEVICE_OBJECT PhysicalDeviceObject,
  33. OUT PVOID* pEnum1394AdapterHandle,
  34. OUT PLARGE_INTEGER pLocalHostUniqueId
  35. );
  36. typedef
  37. VOID
  38. (*ENUM1394_DEREGISTER_ADAPTER_HANDLER)(
  39. IN PVOID Enum1394AdapterHandle
  40. );
  41. typedef struct _NDISENUM1394_CHARACTERISTICS
  42. {
  43. UCHAR MajorVersion;
  44. UCHAR MinorVersion;
  45. USHORT Filler;
  46. ENUM1394_REGISTER_DRIVER_HANDLER RegisterDriverHandler;
  47. ENUM1394_DEREGISTER_DRIVER_HANDLER DeregisterDriverHandler;
  48. ENUM1394_REGISTER_ADAPTER_HANDLER RegisterAdapterHandler;
  49. ENUM1394_DEREGISTER_ADAPTER_HANDLER DeregisterAdapterHandler;
  50. } NDISENUM1394_CHARACTERISTICS, *PNDISENUM1394_CHARACTERISTICS;
  51. typedef
  52. NTSTATUS
  53. (*NIC1394_REGISTER_DRIVER_HANDLER)(
  54. IN PNDISENUM1394_CHARACTERISTICS Characteristics
  55. );
  56. typedef
  57. VOID
  58. (*NIC1394_DEREGISTER_DRIVER_HANDLER)(
  59. VOID
  60. );
  61. typedef
  62. NTSTATUS
  63. (*NIC1394_ADD_NODE_HANLDER)(
  64. IN PVOID Nic1394AdapterContext, // Nic1394 handle for the local host adapter
  65. IN PVOID Enum1394NodeHandle, // Enum1394 handle for the remote node
  66. IN PDEVICE_OBJECT PhysicalDeviceObject, // physical device object for the remote node
  67. IN ULONG UniqueId0, // unique ID Low for the remote node
  68. IN ULONG UniqueId1, // unique ID High for the remote node
  69. OUT PVOID * pNic1394NodeContext // Nic1394 context for the remote node
  70. );
  71. typedef
  72. NTSTATUS
  73. (*NIC1394_REMOVE_NODE_HANLDER)(
  74. IN PVOID Nic1394NodeContext // Nic1394 context for the remote node
  75. );
  76. typedef struct _NIC1394_CHARACTERISTICS
  77. {
  78. UCHAR MajorVersion;
  79. UCHAR MinorVersion;
  80. USHORT Filler;
  81. NIC1394_REGISTER_DRIVER_HANDLER RegisterDriverHandler;
  82. NIC1394_DEREGISTER_DRIVER_HANDLER DeRegisterDriverHandler;
  83. NIC1394_ADD_NODE_HANLDER AddNodeHandler;
  84. NIC1394_REMOVE_NODE_HANLDER RemoveNodeHandler;
  85. } NIC1394_CHARACTERISTICS, *PNIC1394_CHARACTERISTICS;
  86. #endif // _NDIS1394_