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.

107 lines
3.9 KiB

  1. /*
  2. (C) Copyright 1999
  3. All rights reserved.
  4. Portions of this software are:
  5. (C) Copyright 1995 TriplePoint, Inc. -- http://www.TriplePoint.com
  6. License to use this software is granted under the same terms
  7. outlined in the Microsoft Windows Device Driver Development Kit.
  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 registry path:<nl>
  34. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\"Net"\0001><nl>
  35. On Windows 2000 "Net" is defined as GUID: {4D36E972-xxxx}
  36. On Windows 98 "Net" is just a sub key.
  37. The final path key "\0001" depends on the adapter instance number assigned
  38. by NDIS during installation.<nl>
  39. <f Note>: Windows 98 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 NdisParameterInteger or NdisParameterHexInteger.
  43. These values are declared as entries in the <t PARAM_TABLE> and are parsed
  44. from the registry using the <f ParamParseRegistry> routine. Each object
  45. in the driver has its own parameter table.
  46. */
  47. #ifndef _KEYWORDS_H
  48. #define _KEYWORDS_H
  49. #define PARAM_MAX_KEYWORD_LEN 128
  50. /*
  51. // These parameters are placed in the registry during installation.
  52. */
  53. #define PARAM_NumDChannels "IsdnNumDChannels"
  54. #define PARAM_NumBChannels "IsdnNumBChannels"
  55. /*
  56. // These parameters are not placed in the registry by default, but they
  57. // will be used if present.
  58. */
  59. #define PARAM_BufferSize "BufferSize"
  60. #define PARAM_ReceiveBuffersPerLink "ReceiveBuffersPerLink"
  61. #define PARAM_TransmitBuffersPerLink "TransmitBuffersPerLink"
  62. #define PARAM_DebugFlags "DebugFlags"
  63. #define PARAM_TODO "TODO"
  64. // Add your keywords here, and place them in the proper parameter table.
  65. // Port based parameters
  66. #define PARAM_PORT_PREFIX "Line" // Line0 .. Line9
  67. #define PARAM_SwitchType "IsdnSwitchType"
  68. #endif // _KEYWORDS_H