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.

210 lines
8.5 KiB

  1. /*
  2. (C) Copyright 1998
  3. All rights reserved.
  4. Portions of this software are:
  5. (C) Copyright 1995, 1999 TriplePoint, Inc. -- http://www.TriplePoint.com
  6. License to use this software is granted under the terms outlined in
  7. the TriplePoint Software Services Agreement.
  8. (C) Copyright 1992 Microsoft Corp. -- http://www.Microsoft.com
  9. License to use this software is granted under the terms outlined in
  10. the Microsoft Windows Device Driver Development Kit.
  11. @doc INTERNAL Keywords Keywords_h
  12. @module Keywords.h |
  13. This file defines the driver parameter keywords used in the registry.
  14. This file should be #include'd into the driver module defining the
  15. configuration parameter table <t PARAM_TABLE>.
  16. @comm
  17. The configuration parmaeters should be parsed early in the initialization
  18. process so they can be used to configure software and hardware settings.
  19. You can easily add new parameters using the following procuedure:<nl>
  20. 1) #define a new keyword string here in <f Keywords\.h>.<nl>
  21. 2) Add a corresponding <f PARAM_ENTRY> into your parameter table <t PARAM_TABLE>.<nl>
  22. 3) Add a variable to the associated data structure (e.g. <t MINIPORT_ADAPTER_OBJECT>).
  23. These values can then be parsed by calling <f ParamParseRegistry> with a
  24. pointer to your configuration parameter table <t PARAM_TABLE>.
  25. @head3 Contents |
  26. @index class,mfunc,func,msg,mdata,struct,enum | Keywords_h
  27. @end
  28. */
  29. /* @doc EXTERNAL INTERNAL
  30. @topic 5.0 Registry Parameters |
  31. This section describes the registry parameters used by the driver.
  32. These parameters are stored in the following registry path.<nl>
  33. Windows NT registry path:<nl>
  34. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\"VER_PRODUCT_STR"<nl>
  35. Windows 95 registry path:<nl>
  36. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Net\0001><nl>
  37. The final path key "\0001" depends on the adapter instance number assigned
  38. by NDIS during installation.<nl>
  39. <f Note>: Windows 95 DWORD registry parameters are stored as strings.
  40. The NDIS wrapper converts them to integers when they are read. The string
  41. can be decimal or hexadecimal as long as you read it with the appropriate
  42. NDIS parameter type.
  43. These values are declared as entries in the <t PARAM_TABLE> and are parsed
  44. from the registry using the <f ParamParseRegistry> routine.
  45. @flag <f AddressList> (HIDDEN) |
  46. This MULTI_STRING parameter contains the list of addresses assigned to
  47. each logical link exported by the Miniport to RAS.
  48. This parameter is required on Windows NT, but is not used by the
  49. Windows 95 Miniport. It cannot be changed by the user. <nl>
  50. <tab><f Default Value:><tab><tab>"1-1-0"<nl>
  51. @flag <f DeviceName> (HIDDEN) |
  52. This STRING parameter is the name we use to identify the Miniport to RAS.
  53. This parameter is required on Windows NT, but is not used by the
  54. Windows 95 Miniport. It cannot be changed by the user. <nl>
  55. <tab><f Default Value:><tab><tab>"VER_PRODUCT_STR"
  56. @flag <f MediaType> (HIDDEN) |
  57. This STRING parameter is the media type this Miniport supports for RAS.
  58. This parameter is required on Windows NT, but is not used by the
  59. Windows 95 Miniport. It cannot be changed by the user. <nl>
  60. <tab><f Default Value:><tab><tab>"isdn"<nl>
  61. @flag <f BufferSize> (OPTIONAL) |
  62. This DWORD parameter allows you to control the maximum buffer size used
  63. to transmit and receive packets over the IDSN line. Typically, this is
  64. defined to be 1500 bytes for most Point to Point (PPP) connections.<nl>
  65. <tab><f Default Value:><tab><tab>1532<nl>
  66. <tab><f Valid Range N:><tab><tab>532 <lt>= N <lt>= 4032<nl>
  67. <f Note>: You must add 32 bytes to the maximum packet size you
  68. expect to send or receive. Therefore, if you have a maximum packet size
  69. of 1500 bytes, excluding media headers, you should set the <f BufferSize>
  70. value to 1532.<nl>
  71. @flag <f ReceiveBuffersPerLink> (OPTIONAL) |
  72. This DWORD parameter allows you to control the maximum number of incoming
  73. packets that can in progress at any one time. The Miniport will allocate
  74. this number of packets per BChannel and set them up for incoming packets.
  75. Typically, three or four should be sufficient to handle a few short bursts
  76. that may occur with small packets. If the Miniport is not able to service
  77. the incoming packets fast enough, new packets will be dropped and it is up
  78. to the NDIS WAN Wrapper to resynchronize with the remote station.<nl>
  79. <tab><f Default Value:><tab><tab>3<nl>
  80. <tab><f Valid Range N:><tab><tab>2 <lt>= N <lt>= 16<nl>
  81. @flag <f TransmitBuffersPerLink> (OPTIONAL) |
  82. This DWORD parameter allows you to control the maximum number of outgoing
  83. packets that can in progress at any one time. The Miniport will allow
  84. this number of packets per BChannel to be outstanding (i.e. in progress).
  85. Typically, two or three should be sufficient to keep the channel busy for
  86. normal sized packets. If there are alot of small packets being sent, the
  87. BChannel may become idle for brief periods while new packets are being
  88. queued. Windows does not normally work this way if it has large amounts
  89. of data to transfer, so the default value should be sufficient. <nl>
  90. <tab><f Default Value:><tab><tab>2<nl>
  91. <tab><f Valid Range N:><tab><tab>1 <lt>= N <lt>= 16<nl>
  92. @flag <f NoAnswerTimeOut> (OPTIONAL) |
  93. This DWORD parameter allows you to control the maximum number of
  94. miliseconds that an outgoing call will be allowed to wait for the remote
  95. end to respond. If the remote end does not respond within this time, the
  96. call will be disconnected and RAS will alert the user. <nl>
  97. <tab><f Default Value:><tab><tab>15000 (15 seconds)<nl>
  98. <tab><f Valid Range N:><tab><tab>5000 <lt>= N <lt>= 120000<nl>
  99. @flag <f NoAcceptTimeOut> (OPTIONAL) |
  100. This DWORD parameter allows you to control the maximum number of
  101. miliseconds that an incoming call will be allowed to wait for the user or
  102. an application to accept the call. If the local end does not respond
  103. within this time, the call will be rejected and the network will alert
  104. the caller. <nl>
  105. <tab><f Default Value:><tab><tab>10000 (10 seconds)<nl>
  106. <tab><f Valid Range N:><tab><tab>1000 <lt>= N <lt>= 60000<nl>
  107. @flag <f DebugFlags> (OPTIONAL) (DEBUG VERSION ONLY) |
  108. This DWORD parameter allows you to control how much debug information is
  109. displayed to the debug monitor. This is a bit OR'd flag using the values
  110. defined in <t DBG_FLAGS>. This value is not used by the released version
  111. of the driver.<nl>
  112. */
  113. #ifndef _KEYWORDS_H
  114. #define _KEYWORDS_H
  115. #define PARAM_MAX_KEYWORD_LEN 128
  116. /*
  117. // These parameters names are predefined by NDIS - don't change them.
  118. */
  119. #define PARAM_BusNumber "BusNumber"
  120. #define PARAM_BusType "BusType"
  121. #define PARAM_MediaType "MediaType"
  122. /*
  123. // These parameters are placed in the registry during installation.
  124. */
  125. #define PARAM_AddressList "AddressList"
  126. #define PARAM_DeviceName "DeviceName"
  127. #define PARAM_NumDChannels "IsdnNumDChannels"
  128. #define PARAM_NumBChannels "IsdnNumBChannels"
  129. /*
  130. // These parameters are not placed in the registry by default, but they
  131. // will be used if present.
  132. */
  133. #define PARAM_BufferSize "BufferSize"
  134. #define PARAM_ReceiveBuffersPerLink "ReceiveBuffersPerLink"
  135. #define PARAM_TransmitBuffersPerLink "TransmitBuffersPerLink"
  136. #define PARAM_NoAnswerTimeOut "NoAnswerTimeOut"
  137. #define PARAM_NoAcceptTimeOut "NoAcceptTimeOut"
  138. #define PARAM_RunningWin95 "RunningWin95"
  139. #define PARAM_DebugFlags "DebugFlags"
  140. #define PARAM_TODO "TODO"
  141. // Add your keywords here.
  142. // Port based parameters
  143. #define PARAM_PORT_PREFIX "Line" // Line0 .. Line9
  144. #define PARAM_SwitchType "IsdnSwitchType"
  145. #endif // _KEYWORDS_H