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.

82 lines
2.0 KiB

  1. #ifndef _nicwmi_h_
  2. #define _nicwmi_h_
  3. // in order to make our custom oids hopefully somewhat unique
  4. // we will use 0xFF (indicating implementation specific OID)
  5. // A0 (first byte of non zero intel unique identifier)
  6. // C9 (second byte of non zero intel unique identifier) - used 00 for now??
  7. // XX (the custom OID number - providing 255 possible custom oids)
  8. #define OID_IP1394_QUERY_UID 0xFF00C901
  9. #define OID_IP1394_QUERY_STATS 0xFF00C902
  10. #define OID_IP1394_QUERY_REMOTE_UID 0xFF00C903
  11. // IP1394_QueryArrayOID - E100BExampleQueryArrayOID
  12. // An Array to query (reads the UID of the local host)
  13. /*
  14. #define IP1394_QueryArrayOIDGuid\
  15. { 0x734b44a9,0x74b6,0x41e6, { 0xbb, 0xe7, 0xa1, 0xf4, 0xed, 0x8c, 0xea, 0x45} }
  16. */
  17. //
  18. // Query the EUID of the local host
  19. //
  20. #define IP1394_QueryArrayOIDGuid\
  21. { 0x734b44a9, 0x74b6, 0x41e6, 0xbb, 0xe7, 0xa1, 0xf4, 0xed, 0x8c, 0xea, 0x45 }
  22. #define IP1394_QueryStatsGuid \
  23. { 0xee2ebfc6, 0x944d, 0x426b, 0xb1, 0x87, 0x82, 0xfa, 0xc1, 0x7d, 0x7d, 0xee }
  24. #define IP1394_QueryRemoteUIDGuid \
  25. {0x6a3e8063, 0x767d, 0x4531, 0x96, 0x2b, 0xf6, 0x83, 0xdf, 0x1a, 0xa3, 0xa1}
  26. static const NDIS_GUID GuidList[] =
  27. {
  28. { // {734b44a9-74b6-41e6-bbe7-a1f4ed8cea45} UI64 query
  29. IP1394_QueryArrayOIDGuid,
  30. OID_IP1394_QUERY_UID,
  31. sizeof(UINT64), // size is size of each element in the array
  32. (fNDIS_GUID_TO_OID)
  33. },
  34. {
  35. IP1394_QueryRemoteUIDGuid,
  36. OID_IP1394_QUERY_REMOTE_UID,
  37. sizeof(UINT32),
  38. (fNDIS_GUID_TO_OID | fNDIS_GUID_ARRAY)
  39. },
  40. {
  41. IP1394_QueryStatsGuid,
  42. OID_IP1394_QUERY_STATS,
  43. sizeof (UINT32), // size of each element in the array
  44. (fNDIS_GUID_TO_OID | fNDIS_GUID_ARRAY)
  45. },
  46. };
  47. #define MAX_NUM_REMOTE_NODES 5 // temp max
  48. typedef struct _REMOTE_UID
  49. {
  50. UINT32 Uid[2*MAX_NUM_REMOTE_NODES];
  51. } REMOTE_UID , *PREMOTE_UID;
  52. #endif