SERWPL.INF
上传用户:dcqhjx
上传日期:2014-10-08
资源大小:1532k
文件大小:8k
源码类别:

USB编程

开发平台:

C/C++

  1. ; SERWPL.INF - INF file for USB-to-Serial Device
  2. ; Copyright (C) 1999, Prolific Technology Inc.
  3. ;
  4. ; 09/13/2000
  5. [Manufacturer]
  6. %MfgName%=Pro
  7. [Pro]
  8. %DeviceDesc%=ComPort, USBVID_067B&PID_2303
  9. [SourceDisksNames]
  10. 1="USB-Serial Cable Diskette",,,
  11. [SourceDisksFiles]
  12. SER9PL.SYS=1
  13. SERSPL.VXD=1
  14. SERSPL.INF=1
  15. SERWPL.INF=1
  16. [SourceDisksFiles.x86]
  17. ser2pl.sys=1
  18. [DestinationDirs]
  19. USB2SER.Files.Ext = 11
  20. USB2SER.Files.Inf = 10,INF
  21. ComPort.NT.Copy = 12        ;DIRID_DRIVERS
  22. SerialEnumerator.NT.Copy=12 ;DIRID_DRIVERS
  23. NonPort.NT.Copy = 12        ;DIRID_DRIVERS
  24. [ComPort_install]
  25. ;Windows98_ME
  26. [Version]
  27. Signature="$Chicago$"
  28. Class=USB
  29. provider=%Mfg%
  30. LayoutFile=layout.inf
  31. ; DriverVer=12/27/2003,2.0.0.11
  32. [PreCopySection]
  33. HKR,,NoSetupUI,,1
  34. [ComPort]
  35. CopyFiles=USB2SER.Files.Ext, USB2SER.Files.Inf
  36. AddReg=USB2SER.AddReg
  37. [USB2SER.AddReg]
  38. HKR,,DevLoader,,*ntkern
  39. HKR,,NTMPDriver,,SER9PL.SYS
  40. [USB2SER.Files.Ext]
  41. SER9PL.SYS
  42. SERSPL.VXD
  43. [USB2SER.Files.Inf]
  44. SERWPL.INF
  45. SERSPL.INF
  46. ;========================================================================
  47. ;
  48. ;========================================================================
  49. [ComPort_Install.NTx86]
  50. ;Windows2000
  51. [Version]
  52. Signature="$Chicago$"
  53. Class=Ports
  54. ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
  55. Provider=%Mfg%
  56. LayoutFile=layout.inf
  57. DriverVer=12/01/2003,2.0.0.24
  58. AddReg=PortsClass.AddReg
  59. [PortsClass.AddReg]
  60. HKR,,,,%PortsClassName%
  61. [ComPort.NT]
  62. CopyFiles=ComPort.NT.Copy
  63. AddReg=ComPort.AddReg, ComPort.NT.AddReg
  64. ; LogConfig=c14,c1a,c23,c2a,c34,c3a,c43,c4a,caa
  65. LogConfig=c3a,c4a,caa
  66. SyssetupPnPFlags = 1
  67. [ClassInstall32.NT]
  68. AddReg=PortsClass.NT.AddReg
  69. [PortsClass.NT.AddReg]
  70. HKR,,,,%PortsClassName%
  71. HKR,,Icon,,"-23"
  72. HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"
  73. [ComPort.NT.HW]
  74. AddReg=ComPort.NT.HW.AddReg
  75. [ComPort.NT.Copy]
  76. ser2pl.sys
  77. [ComPort.NT.AddReg]
  78. HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
  79. ; Uncomment the following line if you want to override the advanced dialog for
  80. ; your device.  See msports.h for protoype of OverrideAdvancedFunction
  81. ; HKR,,EnumAdvancedDialog,,"yourdll.dll,OverrideAdvancedFunction"
  82. [ComPort.NT.HW.AddReg]
  83. HKR,,"UpperFilters",0x00010000,"serenum"
  84. ; MultiPort COM Sections;
  85. ; -------------------------------------------------------
  86. [MultiComPort.NT]
  87. CopyFiles=ComPort.NT.Copy
  88. AddReg=ComPort.AddReg, ComPort.NT.AddReg
  89. LogConfig=cm1,cm2,cm3,cm4,dg1,dga,cma
  90. SyssetupPnPFlags = 1
  91. [MultiComPort.NT.HW]
  92. ; Add multiport and normal port into the hardware devnode
  93. AddReg=MultiComPort.NT.HW.AddReg,ComPort.NT.HW.AddReg
  94. [MultiComPort.NT.HW.AddReg]
  95. ; Add multiport specific info to the hardware devnode
  96. HKR,,MultiportDevice,0x00010001,1
  97. ; The serial enumerator by itself, so that other INFs can install serenum w/out ser2pl.sys
  98. ; -------------------------------------------------------
  99. [SerialEnumerator.NT]
  100. CopyFiles=SerialEnumerator.NT.Copy
  101. [SerialEnumerator.NT.Copy]
  102. serenum.sys
  103. ;-------------- Service installation
  104. ; Port Driver (function driver for this device)
  105. [ComPort.NT.Services]
  106. AddService = Ser2pl, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
  107. AddService = Serenum,,Serenum_Service_Inst
  108. [MultiComPort.NT.Services]
  109. AddService = Ser2pl, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
  110. AddService = Serenum,,Serenum_Service_Inst
  111. [SerialEnumerator.NT.Services]
  112. AddService = Serenum,,Serenum_Service_Inst
  113. ; -------------- Serial Port Driver install sections
  114. [Serial_Service_Inst]
  115. DisplayName    = %Serial.SVCDESC%
  116. ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
  117. StartType      = 3               ; SERVICE_SYSTEM_START (this driver may do detection)
  118. ErrorControl   = 1               ; SERVICE_ERROR_IGNORE
  119. ServiceBinary  = %12%ser2pl.sys
  120. ; LoadOrderGroup = Extended base
  121. ; -------------- Serenum Driver install section
  122. [Serenum_Service_Inst]
  123. DisplayName    = %Serenum.SVCDESC%
  124. ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
  125. StartType      = 3               ; SERVICE_DEMAND_START
  126. ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
  127. ServiceBinary  = %12%serenum.sys
  128. LoadOrderGroup = PNP Filter
  129. [Serial_EventLog_Inst]
  130. AddReg = Serial_EventLog_AddReg
  131. [Serial_EventLog_AddReg]
  132. HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%System32IoLogMsg.dll;%%SystemRoot%%System32driversser2pl.sys"
  133. HKR,,TypesSupported,0x00010001,7
  134. [*pnp0500.det]
  135. AddReg=Ports.AddReg,DevMap.AddReg
  136. ; The following sections are COM port resource configs.
  137. ; Section name format means:
  138. ; Char 1 = c (COM port)
  139. ; Char 2 = I/O config: 1 (3f8), 2 (2f8), 3 (3e8), 4 (2e8), a (any)
  140. ; Char 3 = IRQ config: #, a (any)
  141. [c14]                   ; COM1,IRQ4
  142. ConfigPriority=HARDRECONFIG
  143. IOConfig=3f8-3ff(3ff::)
  144. IRQConfig=S:4
  145. [c1a]                   ; COM1, any IRQ
  146. ConfigPriority=HARDRECONFIG
  147. IOConfig=3f8-3ff(3ff::)
  148. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  149. [c23]                   ; COM2, IRQ3
  150. ConfigPriority=HARDRECONFIG
  151. IOConfig=2f8-2ff(3ff::)
  152. IRQConfig=S:3
  153. [c2a]                   ; COM2, any IRQ
  154. ConfigPriority=HARDRECONFIG
  155. IOConfig=2f8-2ff(3ff::)
  156. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  157. [c34]                   ; COM3, IRQ4
  158. ConfigPriority=HARDRECONFIG
  159. IOConfig=3e8-3ef(3ff::)
  160. IRQConfig=S:4
  161. [c3a]                   ; COM3, any IRQ
  162. ConfigPriority=HARDRECONFIG
  163. IOConfig=3e8-3ef(3ff::)
  164. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  165. [c43]                   ; COM4, IRQ3
  166. ConfigPriority=HARDRECONFIG
  167. IOConfig=2e8-2ef(3ff::)
  168. IRQConfig=S:3,5
  169. [c4a]                   ; COM4, any IRQ
  170. ConfigPriority=HARDRECONFIG
  171. IOConfig=2e8-2ef(3ff::)
  172. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  173. [caa]                   ; Any base, any IRQ
  174. ConfigPriority=HARDRECONFIG
  175. IOConfig=8@100-ffff%fff8(3ff::)
  176. IRQConfig=S:3,4,5,7,9,10,11,12,14,15
  177. ; The following are multiport configs for DigiBoard (dgxx)
  178. ; and Comtrol (cmxx) multiport boards
  179. ; Section name format means:
  180. ; Char 1,2 = manufacturer abbreviation
  181. ; Char 3   = config number, a = no idea, use base setting
  182. [cm1]
  183. ConfigPriority=HARDRECONFIG
  184. IOConfig=7@240-27E%3F8(3FF::)
  185. IOConfig=247-247(3FF::)
  186. IRQConfig=S:2,3,4,5,7,10,11
  187. [cm2]
  188. ConfigPriority=HARDRECONFIG
  189. IOConfig=7@280-2BE%3F8(3FF::)
  190. IOConfig=287-287(3FF::)
  191. IRQConfig=S:2,3,4,5,7,10,11
  192. [cm3]
  193. ConfigPriority=HARDRECONFIG
  194. IOConfig=7@500-5BE%FF8(3FF::)
  195. IOConfig=507-507(FFF::)
  196. IRQConfig=S:2,3,4,5,7,10,11
  197. [cm4]
  198. ConfigPriority=HARDRECONFIG
  199. IOConfig=7@580-5BE%FF8(3FF::)
  200. IOConfig=587-587(3FF::)
  201. IRQConfig=S:2,3,4,5,7,10,11
  202. [cma]
  203. ConfigPriority=HARDRECONFIG
  204. IOConfig=7@100-3FF%3F8(3FF::) ; I suspect we still need alignment here?
  205. IOConfig=1@100-3FF(3FF::)     ; How about here?
  206. IRQConfig=S:2,3,4,5,7,10,11
  207. [dg1]
  208. ConfigPriority=HARDRECONFIG
  209. IOConfig=7@100-17E%3F8(3FF::)
  210. IOConfig=140-140(3FF::)
  211. IRQConfig=S:3,4,5,6,7,9,10,11,12,14,15
  212. [dga]
  213. ConfigPriority=HARDRECONFIG
  214. IOConfig=7@100-3FF%3F8(3FF::) ; I suspect we still need alignment here?
  215. IOConfig=1@100-3FF(3FF::)     ; How about here?
  216. IRQConfig=S:3,4,5,6,7,9,10,11,12,14,15
  217. ; End COM port LogConfig sections
  218. [ComPort.PosDup]
  219. *PNP0500,*PNP0501,*PNP0502
  220. [ComPort.NT.PosDup]
  221. *PNP0500,*PNP0501,*PNP0502,*PNP0510,*PNP0511,*SMCF010
  222. [DevMap.AddReg]
  223. HKLM,hardwaredevicemapserialcomm,COM1,,COM1
  224. HKLM,hardwaredevicemapserialcomm,COM2,,COM2
  225. ; "NoDrv" section: We do not yet support these port devices.
  226. ;----------------------------------------------------------
  227. [NoDrv]
  228. ; "Non-port" sections: PCMCIA cards that look like COM
  229. ; ports, but aren't (excluding modems).
  230. ;----------------------------------------------------------
  231. [NonPort]
  232. CopyFiles=NonPort.Copy
  233. AddReg=NonPort.AddReg
  234. [NonPort.Copy]
  235. serial.vxd
  236. [NonPort.AddReg]
  237. HKR,,PortSubClass,1,01
  238. HKR,,DevLoader,,*vcomm
  239. HKR,,PortDriver,,serial.vxd
  240. HKR,,Contention,,*vcd
  241. HKR,,DCB,3,1C,00,00,00, 80,25,00,00, 11,33,00,00, 00,00, 0a,00, 0a,00, 08, 00, 00, 11, 13, 00, 00, 00
  242. [NonPort.NT]
  243. ;
  244. ; BUGBUG--Unclear whether these devices are presently supported under NT.  For now, leave a blank
  245. ; install section so we won't run the Win9x stuff.  The fact that no function driver will be installed
  246. ; for this devnode will cause the installation to fail, which is what we want to have happen for now.
  247. ;
  248. ; User readable strings
  249. ;----------------------------------------------------------
  250. [Strings]
  251. Mfg= "Prolific"
  252. MfgName = "Prolific Technology Inc."
  253. PortsClassName = "Ports (COM & LPT)"
  254. DeviceDesc="Prolific USB-to-Serial Bridge"
  255. Serial.SVCDESC   = "Prolific2 Serial port driver"
  256. Serenum.SVCDESC = "Serenum Filter Driver"