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.

113 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. globals.h
  5. Abstract:
  6. This include file either prototypes the globals or defines the globals
  7. depending on whether the GLOBALS define value is extern or not.
  8. Author:
  9. Thomas J. Dimitri (TommyD) 29-May-1992
  10. Environment:
  11. Kernel Mode - Or whatever is the equivalent on OS/2 and DOS.
  12. Revision History:
  13. --*/
  14. // only one module (asyncmac.c) gets to define the GLOBALS macro
  15. #ifdef NOCODE
  16. #define DBGPRINT 1
  17. #ifndef GLOBALS
  18. #define GLOBALS extern
  19. #define EQU ; / ## /
  20. #define GLOBALSTATIC extern
  21. #else
  22. #define EQU =
  23. #define GLOBALSTATIC static
  24. #endif
  25. #else
  26. #define GLOBALS
  27. #endif
  28. #define STATIC
  29. #if DBG
  30. #define DbgPrintf(_x_) DbgPrint _x_
  31. #define DbgTracef(trace_level,_x_) if ((SCHAR)trace_level < TraceLevel) DbgPrint _x_
  32. #define DbgDumpBytes(_x_) DebugDumpBytes _x_
  33. #else
  34. #define DbgPrintf(_x_)
  35. #define DbgTracef(trace_level,_x_)
  36. #define DbgDumpBytes(_x_)
  37. #endif
  38. //
  39. //ZZZ Get from configuration file.
  40. //
  41. #define MAX_MULTICAST_ADDRESS ((UINT)16)
  42. #define MAX_ADAPTERS ((UINT)4)
  43. //
  44. // Define driver dispatch routine type.
  45. //
  46. typedef
  47. NTSTATUS
  48. (*PDISPATCH_FUNC) (
  49. IN struct _DEVICE_OBJECT *DeviceObject,
  50. IN struct _IRP *Irp
  51. );
  52. //
  53. // Global data items.
  54. //
  55. extern PDISPATCH_FUNC NdisMjDeviceControl;
  56. extern PDISPATCH_FUNC NdisMjCreate;
  57. extern PDISPATCH_FUNC NdisMjCleanup;
  58. extern PDRIVER_UNLOAD NdisUnload;
  59. extern SCHAR TraceLevel;
  60. extern NDIS_SPIN_LOCK GlobalLock;
  61. extern PASYNC_ADAPTER GlobalAdapter;
  62. extern ULONG GlobalAdapterCount;
  63. extern ULONG GlobalXmitWentOut;
  64. extern NDIS_PHYSICAL_ADDRESS HighestAcceptableMax;
  65. extern NPAGED_LOOKASIDE_LIST AsyncIoCtxList;
  66. extern NPAGED_LOOKASIDE_LIST AsyncInfoList;
  67. extern PDEVICE_OBJECT AsyncDeviceObject;
  68. extern NDIS_HANDLE AsyncDeviceHandle;
  69. extern ULONG glConnectionCount;
  70.