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.

103 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation, All Rights Reserved.
  3. Module Name:
  4. globals.c
  5. Abstract:
  6. This module contains all the global variables defined for the driver
  7. Author:
  8. Anil Francis Thomas (10/98)
  9. Environment:
  10. Kernel
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. #pragma hdrstop
  15. ATMSM_GLOBAL AtmSmGlobal;
  16. #if DBG
  17. UINT AtmSmDebugFlag = 0xFFFFFFF2;
  18. #endif
  19. ATM_BLLI_IE AtmSmDefaultBlli =
  20. {
  21. (ULONG)BLLI_L2_LLC, // Layer2Protocol
  22. (UCHAR)0x00, // Layer2Mode
  23. (UCHAR)0x00, // Layer2WindowSize
  24. (ULONG)0x00000000, // Layer2UserSpecifiedProtocol
  25. (ULONG)SAP_FIELD_ABSENT, // Layer3Protocol
  26. (UCHAR)0x00, // Layer3Mode
  27. (UCHAR)0x00, // Layer3DefaultPacketSize
  28. (UCHAR)0x00, // Layer3PacketWindowSize
  29. (ULONG)0x00000000, // Layer3UserSpecifiedProtocol
  30. (ULONG)0x00000000, // Layer3IPI,
  31. (UCHAR)0x00, // SnapID[5]
  32. (UCHAR)0x00,
  33. (UCHAR)0x00,
  34. (UCHAR)0x00,
  35. (UCHAR)0x00
  36. };
  37. ATM_BHLI_IE AtmSmDefaultBhli =
  38. {
  39. (ULONG)SAP_FIELD_ABSENT, // HighLayerInfoType
  40. (ULONG)0x00000000, // HighLayerInfoLength
  41. (UCHAR)0x00, // HighLayerInfo[8]
  42. (UCHAR)0x00,
  43. (UCHAR)0x00,
  44. (UCHAR)0x00,
  45. (UCHAR)0x00,
  46. (UCHAR)0x00,
  47. (UCHAR)0x00,
  48. (UCHAR)0x00
  49. };
  50. ATMSM_FLOW_SPEC AtmSmDefaultVCFlowSpec =
  51. {
  52. DEFAULT_SEND_BANDWIDTH,
  53. DEFAULT_MAX_PACKET_SIZE,
  54. 0, // we are setting up unidirectional VCs
  55. 0, // we are setting up unidirectional VCs
  56. SERVICETYPE_BESTEFFORT
  57. };
  58. PATMSM_IOCTL_FUNCS AtmSmFuncProcessIoctl[ATMSM_MAX_FUNCTION_CODE+1] =
  59. {
  60. AtmSmIoctlEnumerateAdapters,
  61. AtmSmIoctlOpenForRecv,
  62. AtmSmIoctlRecvData,
  63. AtmSmIoctlCloseRecvHandle,
  64. AtmSmIoctlConnectToDsts,
  65. AtmSmIoctlSendToDsts,
  66. AtmSmIoctlCloseSendHandle
  67. };
  68. //
  69. // Lookup table to verify incoming IOCTL codes.
  70. //
  71. ULONG AtmSmIoctlTable[ATMSM_NUM_IOCTLS] =
  72. {
  73. IOCTL_ENUMERATE_ADAPTERS, //DIOC_ENUMERATE_ADAPTERS,
  74. IOCTL_OPEN_FOR_RECV, //DIOC_OPEN_FOR_RECV,
  75. IOCTL_RECV_DATA, //DIOC_RECV_DATA,
  76. IOCTL_CLOSE_RECV_HANDLE, //DIOC_CLOSE_RECV_HANDLE,
  77. IOCTL_CONNECT_TO_DSTS, //DIOC_CONNECT_TO_DSTS,
  78. IOCTL_SEND_TO_DSTS, //DIOC_SEND_TO_DSTS,
  79. IOCTL_CLOSE_SEND_HANDLE //DIOC_CLOSE_SEND_HANDLE,
  80. };