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.

117 lines
3.7 KiB

  1. // opstr.h
  2. //----- Pnp-ID Defines
  3. /* PCI Defines */
  4. #define PCI_VENDOR_ID 0x11fe
  5. #define PCI_DEVICE_32I 0x0001
  6. #define PCI_DEVICE_8I 0x0002
  7. #define PCI_DEVICE_16I 0x0003
  8. #define PCI_DEVICE_4Q 0x0004
  9. #define PCI_DEVICE_8O 0x0005
  10. #define PCI_DEVICE_8RJ 0x0006
  11. #define PCI_DEVICE_4RJ 0x0007
  12. #define PCI_DEVICE_SIEMENS8 0x0008
  13. #define PCI_DEVICE_SIEMENS16 0x0009
  14. #define PCI_DEVICE_RPLUS4 0x000a
  15. #define PCI_DEVICE_RPLUS8 0x000b
  16. #define PCI_DEVICE_RMODEM6 0x000c
  17. #define PCI_DEVICE_RMODEM4 0x000d
  18. #define PCI_DEVICE_RPLUS2 0x000e
  19. #define PCI_DEVICE_422RPLUS2 0x000f
  20. #define ISA_DEVICE_RPORT4 0x1001
  21. #define ISA_DEVICE_RPORT8 0x1002
  22. #define ISA_DEVICE_RPORT16 0x1003
  23. #define ISA_DEVICE_RPORT32 0x1004
  24. #define ISA_DEVICE_RMODEM4 0x2001
  25. #define ISA_DEVICE_RMODEM8 0x2002
  26. #define NET_DEVICE_VS1000 0x3001 // 16 to 64 port
  27. #define NET_DEVICE_VS2000 0x3002 // 8 port
  28. #define NET_DEVICE_RHUB8 0x3003
  29. #define NET_DEVICE_RHUB4 0x3004
  30. // ids for Our_Option.var_type
  31. #define OP_T_DWORD 0
  32. #define OP_T_STRING 1
  33. #define OP_T_BOOL 2
  34. // flags for Our_Option.flags
  35. #define OP_F_VS 1
  36. #define OP_F_RK 2
  37. #define OP_F_VSRK 3
  38. #define OP_F_SETUP_ONLY 8
  39. typedef struct {
  40. const char * name; // name of option see lists
  41. int id; // unique id, also has bit which tells option type.
  42. WORD var_type; // see OP_T_* types, 0=DWORD, 1=String, 2=BOOL
  43. WORD flags; // see OP_F_* types
  44. } Our_Options;
  45. // driver options
  46. extern const char szVerboseLog[] ;
  47. extern const char szNumDevices[] ;
  48. extern const char szNoPnpPorts[] ;
  49. extern const char szScanRate[] ;
  50. extern const char szModemCountry[] ;
  51. extern const char szGlobalRS485[] ;
  52. #define OP_VerboseLog 0x100
  53. #define OP_NumDevices 0x101
  54. #define OP_NoPnpPorts 0x102
  55. #define OP_ScanRate 0x103
  56. #define OP_ModemCountry 0x104
  57. #define OP_GlobalRS485 0x105
  58. // device options
  59. //extern const char szStartComIndex[] ;
  60. extern const char szNumPorts[] ;
  61. extern const char szMacAddr[] ;
  62. extern const char szBackupServer[] ;
  63. extern const char szBackupTimer[] ;
  64. extern const char szName[] ;
  65. extern const char szModelName[] ;
  66. extern const char szIoAddress[] ;
  67. extern const char szModemDevice[] ;
  68. extern const char szHubDevice[] ;
  69. //#define OP_StartComIndex 0x200
  70. #define OP_NumPorts 0x201
  71. #define OP_MacAddr 0x202
  72. #define OP_BackupServer 0x203
  73. #define OP_BackupTimer 0x204
  74. #define OP_Name 0x205
  75. #define OP_ModelName 0x206
  76. #define OP_IoAddress 0x207
  77. #define OP_ModemDevice 0x208
  78. #define OP_HubDevice 0x209
  79. // port options
  80. extern const char szWaitOnTx[] ;
  81. extern const char szRS485Override[] ;
  82. extern const char szRS485Low[] ;
  83. extern const char szTxCloseTime[] ;
  84. extern const char szLockBaud[] ;
  85. extern const char szMap2StopsTo1[] ;
  86. extern const char szMapCdToDsr[] ;
  87. extern const char szRingEmulate[] ;
  88. #define OP_WaitOnTx 0x400
  89. #define OP_RS485Override 0x401
  90. #define OP_RS485Low 0x402
  91. #define OP_TxCloseTime 0x403
  92. #define OP_LockBaud 0x404
  93. #define OP_Map2StopsTo1 0x405
  94. #define OP_MapCdToDsr 0x406
  95. #define OP_PortName 0x407
  96. #define OP_RingEmulate 0x408
  97. extern Our_Options driver_options[];
  98. extern Our_Options device_options[];
  99. extern Our_Options port_options[];
  100. int HdwIDStrToID(int *Hardware_ID, char *idstr);
  101. int id_to_num_ports(int id);
  102. int IsHubDevice(int Hardware_ID);
  103. int IsModemDevice(int Hardware_ID);