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.

153 lines
4.8 KiB

  1. /*++
  2. Copyright (c) 1990-1995 Microsoft Corporation
  3. Module Name:
  4. data.h
  5. Abstract:
  6. NDIS wrapper Data
  7. Author:
  8. 01-Jun-1995 JameelH Re-organization
  9. Environment:
  10. Kernel mode, FSD
  11. Revision History:
  12. --*/
  13. #ifndef _DATA_
  14. #define _DATA_
  15. extern UCHAR ndisValidProcessors[];
  16. extern UCHAR ndisNumberOfProcessors;
  17. extern UCHAR ndisMaximumProcessor;
  18. extern UCHAR ndisCurrentProcessor;
  19. extern LONG ndisFlags;
  20. extern TDI_REGISTER_CALLBACK ndisTdiRegisterCallback;
  21. extern TDI_PNP_HANDLER ndisTdiPnPHandler;
  22. extern BOOLEAN ndisSkipProcessorAffinity;
  23. extern BOOLEAN ndisMediaTypeCl[NdisMediumMax];
  24. extern GUID gGuidLanClass;
  25. extern NDIS_STATUS ndisLastFailedInitErrorCode;
  26. extern NDIS_STRING ndisDeviceStr;
  27. extern NDIS_STRING ndisDosDevicesStr;
  28. #if NDIS_NO_REGISTRY
  29. extern PWSTR ndisDefaultExportName;
  30. #endif
  31. extern ULONG ndisVerifierLevel;
  32. extern ULONG ndisVeriferFailedAllocations;
  33. extern PCALLBACK_OBJECT ndisPowerStateCallbackObject;
  34. extern PVOID ndisPowerStateCallbackHandle;
  35. extern ULONG ndisAcOnLine;
  36. extern BOOLEAN VerifierSystemSufficientlyBooted;
  37. extern BOOLEAN ndisGuidsSecured;
  38. extern LARGE_INTEGER KeBootTime;
  39. extern LONG ndisCancelId;
  40. extern KQUEUE ndisWorkerQueue;
  41. #if NDIS_UNLOAD
  42. extern WORK_QUEUE_ITEM ndisPoisonPill;
  43. #endif
  44. extern KSPIN_LOCK ndisGlobalLock;
  45. extern PKG_REF ndisPkgs[MAX_PKG];
  46. extern PNDIS_PROTOCOL_BLOCK ndisProtocolList;
  47. extern LIST_ENTRY ndisGlobalPacketPoolList;
  48. extern PNDIS_OPEN_BLOCK ndisGlobalOpenList;
  49. //
  50. // The following are counters used for debugging
  51. //
  52. extern const NDIS_PHYSICAL_ADDRESS HighestAcceptableMax;
  53. extern ULONG ndisDmaAlignment;
  54. extern ULONG ndisTimeIncrement;
  55. //
  56. // For tracking memory allocated for shared memory
  57. //
  58. extern ERESOURCE SharedMemoryResource;
  59. extern PNDIS_M_DRIVER_BLOCK ndisMiniDriverList;
  60. extern PNDIS_MINIPORT_BLOCK ndisMiniportList;
  61. extern NDIS_MEDIUM * ndisMediumArray,
  62. ndisMediumBuffer[NdisMediumMax + EXPERIMENTAL_SIZE];
  63. extern UINT ndisMediumArraySize, ndisMediumArrayMaxSize;
  64. extern WCHAR ndisHexLookUp[];
  65. extern ULONG ndisInstanceNumber;
  66. extern UINT ndisPacketStackSize;
  67. extern NDIS_GUID ndisCoSupportedGuids[16];
  68. extern NDIS_GUID ndisSupportedGuids[36];
  69. extern NDIS_GUID ndisMediaSupportedGuids[75];
  70. extern NDIS_GUID ndisStatusSupportedGuids[10];
  71. extern OID_SETINFO_HANDLER ndisMSetInfoHandlers[];
  72. extern HANDLE ndisSystemProcess;
  73. extern PDEVICE_OBJECT ndisDeviceObject;
  74. extern PDRIVER_OBJECT ndisDriverObject;
  75. extern PETHREAD ndisThreadObject;
  76. extern LARGE_INTEGER PoolAgingTicks;
  77. #if DBG
  78. extern ULONG ndisDebugSystems;
  79. extern LONG ndisDebugLevel;
  80. extern ULONG ndisDebugLogSize;
  81. extern ULONG ndisDebugBreakPoint;
  82. #endif // DBG
  83. #ifdef TRACK_MOPEN_REFCOUNTS
  84. extern ULONG_PTR ndisLogfile[NDIS_LOGFILE_SIZE];
  85. extern USHORT ndisLogfileIndex;
  86. #endif
  87. #ifdef TRACK_MINIPORT_REFCOUNTS
  88. extern USHORT ndisMiniportLogfileIndex;
  89. extern UINT ndisMiniportLogfile[NDIS_MINIPORT_LOGFILE_SIZE];
  90. #endif
  91. #if TRACK_RECEIVED_PACKETS
  92. extern USHORT ndisRcvLogfileIndex;
  93. extern ULONG_PTR ndisRcvLogfile[NDIS_RCV_LOGFILE_SIZE];
  94. #endif
  95. extern KSPIN_LOCK ndisProtocolListLock;
  96. extern KSPIN_LOCK ndisMiniDriverListLock;
  97. extern KSPIN_LOCK ndisMiniportListLock;
  98. extern KSPIN_LOCK ndisGlobalPacketPoolListLock;
  99. extern KSPIN_LOCK ndisGlobalOpenListLock;
  100. extern NDIS_STRING ndisBuildDate;
  101. extern NDIS_STRING ndisBuildTime;
  102. extern NDIS_STRING ndisBuiltBy;
  103. extern KMUTEX ndisPnPMutex;
  104. extern ULONG ndisPnPMutexOwner;
  105. extern ULONG ndisChecked;
  106. extern PNDIS_MINIPORT_BLOCK ndisMiniportTrackAlloc;
  107. extern LIST_ENTRY ndisMiniportTrackAllocList;
  108. extern PNDIS_M_DRIVER_BLOCK ndisDriverTrackAlloc;
  109. extern LIST_ENTRY ndisDriverTrackAllocList;
  110. extern KSPIN_LOCK ndisTrackMemLock;
  111. extern PCALLBACK_OBJECT ndisBindUnbindCallbackObject;
  112. extern PVOID ndisBindUnbindCallbackRegisterationHandle;
  113. extern LUID SeWmiAccessPrivilege;
  114. extern PSECURITY_DESCRIPTOR ndisSecurityDescriptor;
  115. #endif // _DATA_