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.

73 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. data.c
  5. Abstract:
  6. This source file contains global data items.
  7. Author:
  8. RAy Patch (raypa) 04/19/94
  9. Environment:
  10. Kernel Mode - Or whatever is the equivalent on OS/2 and DOS.
  11. Revision History:
  12. --*/
  13. #include "asyncall.h"
  14. //
  15. // We use the global below to daisy chain the IOCtl.
  16. //
  17. PDISPATCH_FUNC NdisMjDeviceControl = NULL;
  18. PDISPATCH_FUNC NdisMjCreate = NULL;
  19. PDISPATCH_FUNC NdisMjCleanup = NULL;
  20. PDRIVER_UNLOAD NdisUnload = NULL;
  21. //
  22. // TraceLevel is used for DbgTracef printing. If the trace_level
  23. // is less than or equal to TraceLevel, the message will be printed.
  24. //
  25. SCHAR TraceLevel = -2;
  26. //
  27. // This struct keeps track of the last Adapter as well
  28. // as all the Adapters opened so far.
  29. //
  30. PASYNC_ADAPTER GlobalAdapter = NULL;
  31. //
  32. // Keep track of how many adapters we have total.
  33. //
  34. ULONG GlobalAdapterCount = 0;
  35. //
  36. // Keep track of sends.
  37. //
  38. ULONG GlobalXmitWentOut = 0;
  39. //
  40. // Use this lock when playing with the GlobalAdapterHead or other
  41. // global variables.
  42. //
  43. NDIS_SPIN_LOCK GlobalLock;
  44. NDIS_PHYSICAL_ADDRESS HighestAcceptableMax = NDIS_PHYSICAL_ADDRESS_CONST(-1,-1);
  45. PDEVICE_OBJECT AsyncDeviceObject = NULL;
  46.