; SciU2S.INF - INF file for Spreadtrum USB-to-Serial Device
; Copyright (C) 2001-2005, Spreadtrum Communication Inc.
;
; 2005-11-11 created by anli.wei
; 2006-03-08 modified to support composite device

[Manufacturer]
%MfgName%=SCI

[SCI]
%DvcDsc%    =ComPort,     USB\VID_1782&PID_4d00
%DvcDscAT%  =ComPortCmpst,USB\VID_1782&PID_3d00&MI_00
%DvcDscDiag%=ComPortCmpst,USB\VID_1782&PID_3d00&MI_01

[SourceDisksNames]
1=%Disk1%,,,

;========================================================================
; SourceDisksFiles
;========================================================================

[SourceDisksFiles]
SciU2S.sys=1

;========================================================================
;  DestinationDirs
;========================================================================

[DestinationDirs]
SciU2S.Inf.Files    = 10,INF      ; Windows directory
SciU2S.sys.Files.NT = 12          ; Drivers directory

;========================================================================
; copy files section flag
;========================================================================

[SciU2S.Inf.Files]
SciU2S.INF

[SciU2S.Sys.Files.NT]
SciU2S.sys

;========================================================================
;  DDInstall.NTx86
;========================================================================

[Version]
Signature  = "$WINDOWS NT$"
Class      = Ports
ClassGuid  = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider   = %Mfg%
CatalogFile= SciU2S.cat
DriverVer  = 11/11/2005,1.0.0.1

[PortsClass.AddReg]
HKR,,,,%PortsClassName%

[ComPort.NT]
CopyFiles = SciU2S.Sys.Files.NT
AddReg    = ComPort.NT.AddReg
LogConfig = c3a,c4a,caa

SyssetupPnPFlags = 1

[ComPortCmpst.NT]
CopyFiles = SciU2S.Sys.Files.NT
AddReg    = ComPortCmpst.NT.AddReg
LogConfig = c3a,c4a,caa

SyssetupPnPFlags = 1


[ClassInstall32.NT]
AddReg = PortsClass.NT.AddReg

[PortsClass.NT.AddReg]
HKR,,,,%PortsClassName%
HKR,,Icon,,"-23"
HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"

[ComPort.NT.HW]
;AddReg=ComPort.NT.HW.AddReg

[ComPortCmpst.NT.HW]


[ComPort.NT.Copy]
SciU2S.sys

[ComPortCmpst.NT.Copy]
SciU2S.sys


[ComPort.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[ComPortCmpst.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"


;========================================================================
;  Service installation
;  Port Driver (function driver for this device)
;========================================================================

[ComPort.NT.Services]
AddService=SciU2S,0x00000002,Ser_Srv_Inst,Serial_EventLog_Inst


[ComPortCmpst.NT.Services]
AddService=SU2SCpst,0x00000002,Ser_Srv_Inst_Cmpst,Serial_EventLog_Inst


;========================================================================
;  Serial Port Driver install sections
;========================================================================

[Ser_Srv_Inst]
DisplayName   = %SU2S.SVCDESC%
ServiceType   = 1                 ; SERVICE_KERNEL_DRIVER
StartType     = 3                 ; SERVICE_SYSTEM_START (this driver may do detection)
ErrorControl  = 1                 ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\SciU2S.sys

AddReg=SrvReg.NT


[Ser_Srv_Inst_Cmpst]
DisplayName   = %SciCmpst.SVCDESC%
ServiceType   = 1                 ; SERVICE_KERNEL_DRIVER
StartType     = 3                 ; SERVICE_SYSTEM_START (this driver may do detection)
ErrorControl  = 1                 ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\SciU2S.sys

AddReg=SrvRegCmpst.NT


[SrvReg.NT]
HKR,,"DbgLevel",0x00010001,0x00000004     ; DWORD value for debug level
HKR,,"IsComposite",0x00010001,0x00000000  ; DWORD value for is composite device

[SrvRegCmpst.NT]
HKR,,"DbgLevel",0x00010001,0x00000004     ; DWORD value for debug level
HKR,,"IsComposite",0x00010001,0x00000001  ; DWORD value for is composite device


[Serial_EventLog_Inst]
AddReg=Ser_EvtLog_AddReg

[Ser_EvtLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\SciU2S.sys"
HKR,,TypesSupported,0x00010001,7

[*pnp0500.det]
AddReg=Ports.AddReg,DevMap.AddReg

;========================================================================
; The following sections are COM port resource configs.
; Section name format means:
; Char 1 = c (COM port)
; Char 2 = I/O config: 1 (3f8), 2 (2f8), 3 (3e8), 4 (2e8), a (any)
; Char 3 = IRQ config: #, a (any)
;========================================================================

[c14]                   ; COM1,IRQ4
ConfigPriority=HARDRECONFIG
IOConfig=3f8-3ff(3ff::)
IRQConfig=S:4

[c1a]                   ; COM1, any IRQ
ConfigPriority=HARDRECONFIG
IOConfig=3f8-3ff(3ff::)
IRQConfig=S:3,4,5,7,9,10,11,12,14,15

[c23]                   ; COM2, IRQ3
ConfigPriority=HARDRECONFIG
IOConfig=2f8-2ff(3ff::)
IRQConfig=S:3

[c2a]                   ; COM2, any IRQ
ConfigPriority=HARDRECONFIG
IOConfig=2f8-2ff(3ff::)
IRQConfig=S:3,4,5,7,9,10,11,12,14,15

[c34]                   ; COM3, IRQ4
ConfigPriority=HARDRECONFIG
IOConfig=3e8-3ef(3ff::)
IRQConfig=S:4

[c3a]                   ; COM3, any IRQ
ConfigPriority=HARDRECONFIG
IOConfig=3e8-3ef(3ff::)
IRQConfig=S:3,4,5,7,9,10,11,12,14,15

[c43]                   ; COM4, IRQ3
ConfigPriority=HARDRECONFIG
IOConfig=2e8-2ef(3ff::)
IRQConfig=S:3,5

[c4a]                   ; COM4, any IRQ
ConfigPriority=HARDRECONFIG
IOConfig=2e8-2ef(3ff::)
IRQConfig=S:3,4,5,7,9,10,11,12,14,15

[caa]                   ; Any base, any IRQ
ConfigPriority=HARDRECONFIG
IOConfig=8@100-ffff%fff8(3ff::)
IRQConfig=S:3,4,5,7,9,10,11,12,14,15

; The following are multiport configs for DigiBoard (dgxx)
; and Comtrol (cmxx) multiport boards
; Section name format means:
; Char 1,2 = manufacturer abbreviation
; Char 3   = config number, a = no idea, use base setting

[cm1]
ConfigPriority=HARDRECONFIG
IOConfig=7@240-27E%3F8(3FF::)
IOConfig=247-247(3FF::)
IRQConfig=S:2,3,4,5,7,10,11

[cm2]
ConfigPriority=HARDRECONFIG
IOConfig=7@280-2BE%3F8(3FF::)
IOConfig=287-287(3FF::)
IRQConfig=S:2,3,4,5,7,10,11

[cm3]
ConfigPriority=HARDRECONFIG
IOConfig=7@500-5BE%FF8(3FF::)
IOConfig=507-507(FFF::)
IRQConfig=S:2,3,4,5,7,10,11

[cm4]
ConfigPriority=HARDRECONFIG
IOConfig=7@580-5BE%FF8(3FF::)
IOConfig=587-587(3FF::)
IRQConfig=S:2,3,4,5,7,10,11

[cma]
ConfigPriority=HARDRECONFIG
IOConfig=7@100-3FF%3F8(3FF::) ; I suspect we still need alignment here?
IOConfig=1@100-3FF(3FF::)     ; How about here?
IRQConfig=S:2,3,4,5,7,10,11

[dg1]
ConfigPriority=HARDRECONFIG
IOConfig=7@100-17E%3F8(3FF::)
IOConfig=140-140(3FF::)
IRQConfig=S:3,4,5,6,7,9,10,11,12,14,15

[dga]
ConfigPriority=HARDRECONFIG
IOConfig=7@100-3FF%3F8(3FF::) ; I suspect we still need alignment here?
IOConfig=1@100-3FF(3FF::)     ; How about here?
IRQConfig=S:3,4,5,6,7,9,10,11,12,14,15

; End COM port LogConfig sections


[ComPort.PosDup]
*PNP0500,*PNP0501,*PNP0502

[ComPortCmpst.PosDup]
*PNP0500,*PNP0501,*PNP0502


[ComPort.NT.PosDup]
*PNP0500,*PNP0501,*PNP0502,*PNP0510,*PNP0511,*SMCF010

[ComPortCmpst.NT.PosDup]
*PNP0500,*PNP0501,*PNP0502,*PNP0510,*PNP0511,*SMCF010


[DevMap.AddReg]
HKLM,hardware\devicemap\serialcomm,COM1,,COM1
HKLM,hardware\devicemap\serialcomm,COM2,,COM2

[NonPort]
CopyFiles=NonPort.Copy
AddReg=NonPort.AddReg

[NonPort.Copy]
serial.vxd

[NonPort.AddReg]
HKR,,PortSubClass,1,01
HKR,,DevLoader,,*vcomm
HKR,,PortDriver,,serial.vxd
HKR,,Contention,,*vcd
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

;========================================================================
; User readable strings
;========================================================================

[Strings]
Mfg            = "Spreadtrum"
Disk1          = "SCI USB2Serial Driver Diskette"
MfgName        = "Spreadtrum Communication Inc."
PortsClassName = "Ports (COM & LPT)"
DvcDsc         = "SCI USB2Serial"
DvcDscAT       = "SCI U2S AT"
DvcDscDiag     = "SCI U2S Diag"
SU2S.SVCDESC   = "Spreadtrum USB to Serial port driver for dl"
SciCmpst.SVCDESC = "Spreadtrum USB to Serial port driver for AT&Diag"
