Leaked source code of windows server 2003
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.

98 lines
2.6 KiB

  1. //-----------------------------------------------------------------------------
  2. // Constants
  3. //-----------------------------------------------------------------------------
  4. // The NDIS version we report when registering mini-port and address family.
  5. //
  6. #define NDIS_MajorVersion 5
  7. #define NDIS_MinorVersion 0
  8. #define NIC1394_MajorVersion 5
  9. #define NIC1394_MinorVersion 1
  10. #define MAX_PACKET_POOL_SIZE 0xFFFF
  11. #define MIN_PACKET_POOL_SIZE 0x100
  12. #define NOT !
  13. #define IS ==
  14. #define AND &&
  15. #define OR ||
  16. #define NOT_EQUAL !=
  17. #define Nic1394_MaxFrameSize 2048
  18. #define WAIT_INFINITE 0
  19. #define MAX_CHANNEL_NUMBER 63
  20. #define BROADCAST_CHANNEL 31
  21. #define GASP_SPECIFIER_ID_HI 0
  22. #define GASP_SPECIFIER_ID_LO 0x5E
  23. #define INVALID_CHANNEL 0xff
  24. #define HEADER_FRAGMENTED_MASK 0xC0000000
  25. #define MAX_ALLOWED_FRAGMENTS 4
  26. #define MCAST_LIST_SIZE 32
  27. #define ISOCH_TAG 3 // Set to 3 in accordance with 1394a spec. Clause 8.2 - Gasp Header
  28. #define QUEUE_REASSEMBLY_TIMER_ALWAYS 0
  29. #define IP1394_RFC_FRAME_SIZE 1514
  30. #define NIC1394_MAX_NUMBER_CHANNELS 64
  31. #define NIC1394_MAX_NUMBER_NODES 64
  32. #define NIC1394_MAX_REASSEMBLY_THRESHOLD 5000
  33. //
  34. // Compile options
  35. //
  36. #define FALL_THROUGH
  37. #define INTERCEPT_MAKE_CALL 0
  38. #define TRACK_FAILURE 1
  39. #define NUM_RECV_FIFO_FIRST_PHASE 20
  40. #define NUM_RECV_FIFO_BUFFERS 256
  41. #define TRACK_LOCKS 0
  42. #define DO_TIMESTAMPS 0
  43. #if DO_TIMESTAMPS
  44. #define ENTRY_EXIT_TIME 0
  45. #define INIT_HALT_TIME 1
  46. #else
  47. #define ENTRY_EXIT_TIME 0
  48. #define INIT_HALT_TIME 0
  49. #endif
  50. #define TESTMODE 0
  51. //
  52. // Constants used to tag data structures like NdisPackets and IsochDescriptors
  53. // For informational purposes only
  54. //
  55. #define NIC1394_TAG_INDICATED 'idnI'
  56. #define NIC1394_TAG_QUEUED 'ueuQ'
  57. #define NIC1394_TAG_RETURNED 'uteR'
  58. #define NIC1394_TAG_ALLOCATED 'ollA'
  59. #define NIC1394_TAG_FREED 'eerF'
  60. #define NIC1394_TAG_REASSEMBLY 'sseR'
  61. #define NIC1394_TAG_COMPLETED 'pmoC'
  62. #define NIC1394_TAG_IN_SEND 'dneS'
  63. #define NIC1394_TAG_IN_CALLBACK 'llaC'
  64. #define ADAPTER_NAME_SIZE 128
  65. #define ANSI_ARP_CLIENT_DOS_DEVICE_NAME "\\\\.\\ARP1394"
  66. #define NOT_TESTED_YET 0
  67. //
  68. // The 1394 constants for 800 and above are not defined in
  69. // 1394.h Make temporary local definitions.
  70. //
  71. #define ASYNC_PAYLOAD_800_RATE_LOCAL 4096
  72. #define ASYNC_PAYLOAD_1600_RATE_LOCAL (4096*2)
  73. #define ASYNC_PAYLOAD_3200_RATE_LOCAL (4096*4)
  74. #define MAX_REC_800_RATE_LOCAL (MAX_REC_400_RATE+1)
  75. #define MAX_REC_1600_RATE_LOCAL (MAX_REC_800_RATE_LOCAL + 1)
  76. #define MAX_REC_3200_RATE_LOCAL (MAX_REC_1600_RATE_LOCAL + 1)