;
; Jungo Confidential. Copyright (c) Jungo 2011.  http://www.jungo.com
;
; DriverCore USB transport layer
;

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%Mfg%
DriverVer=02/11/2012,2.4.0.27

; ================= Device section =====================

[Manufacturer]
%Mfg%=DeviceList,NTx86,NTamd64

; For Win2K
[DeviceList]
%USB\VID_1782&PID_4D00.DeviceDesc% = CdcInstall, USB\VID_1782&PID_4D00
%USB\VID_1782&PID_3D00&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D00&MI_01

%USB\VID_1782&PID_3D10&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D10&MI_01

%USB\VID_1782&PID_5D03&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_01
%USB\VID_1782&PID_5D03&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_02
%USB\VID_1782&PID_5D04&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_02
%USB\VID_1782&PID_5D04&MI_03.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_03

; For XP and later
[DeviceList.NTx86]
%USB\VID_1782&PID_4D00.DeviceDesc% = CdcInstall, USB\VID_1782&PID_4D00
%USB\VID_1782&PID_3D00&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D00&MI_01

%USB\VID_1782&PID_3D10&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D10&MI_01

%USB\VID_1782&PID_5D03&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_01
%USB\VID_1782&PID_5D03&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_02
%USB\VID_1782&PID_5D04&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_02
%USB\VID_1782&PID_5D04&MI_03.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_03

; For XP and later x64
[DeviceList.NTamd64]
%USB\VID_1782&PID_4D00.DeviceDesc% = CdcInstall, USB\VID_1782&PID_4D00
%USB\VID_1782&PID_3D00&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D00&MI_01

%USB\VID_1782&PID_3D10&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_3D10&MI_01

%USB\VID_1782&PID_5D03&MI_01.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_01
%USB\VID_1782&PID_5D03&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D03&MI_02
%USB\VID_1782&PID_5D04&MI_02.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_02
%USB\VID_1782&PID_5D04&MI_03.DeviceDesc% = CdcInstall, USB\VID_1782&PID_5D04&MI_03

[CdcInstall.NT]
CopyFiles=sprd_enum.Files.Ext

[CdcInstall.NT.Services]
AddService = %sprd_enum.SvcName%, %SPSVCINST_ASSOCSERVICE%, sprd_enum.AddService

[sprd_enum.AddService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\sprd_enum.sys
AddReg         = sprd_enum.AddReg

[sprd_enum.AddReg]
HKR, Parameters\Wdf, VerboseOn,       0x00010001, 0
HKR, Parameters\Wdf, VerifierOn,      0x00010001, 0
HKR, Parameters\Wdf, DbgBreakOnError, 0x00010001, 0
HKR, Parameters,     DebugLevel,      0x00010001, 2

[CdcInstall.NT.HW]
AddReg = CdcInstall_NT_HW_AddReg

[CdcInstall_NT_HW_AddReg]
HKR,,"IdleTimeout",0x00010001,0     ; Number of seconds before the device goes idle
HKR,,"EnableZLP",0x00010001,0x0      ; Enable zero length packet
HKR,,"EnableInReset",0x00010001,0x1 ; Enable IN pipe reset after error
HKR,,"MaxTransferSize",0x00010001,0x200 ; Enable IN pipe reset after error

[sprd_enum.Files.Ext]
sprd_enum.sys,,,0x6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
sprd_enum.sys = 1

[DestinationDirs]
DefaultDestDir = 12

;-------------- WDF & DC Coinstallers installation

[DestinationDirs]
CoInstaller_CopyFiles = 10,System32

[CdcInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
wdfcoinstaller01009.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01009.dll,WdfCoInstaller"

[SourceDisksFiles]
wdfcoinstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

[CdcInstall.NT.Wdf]
KmdfService = %sprd_enum.SvcName%, sprd_enum_wdfsect

[sprd_enum_wdfsect]
KmdfLibraryVersion = 1.9

;---------------------------------------------------------------;

[Strings]
Mfg = "SpreadTrum"
Disk_Description = "DriverCore Installation Disk"
USB\VID_1782&PID_4D00.DeviceDesc = "SPRD COM Enumerator"
USB\VID_1782&PID_3D00&MI_01.DeviceDesc = "SPRD COM Enumerator"

USB\VID_1782&PID_3D10&MI_01.DeviceDesc = "SPRD COM Enumerator"

USB\VID_1782&PID_5D03&MI_01.DeviceDesc = "SPRD Android COM Enumerator1"
USB\VID_1782&PID_5D03&MI_02.DeviceDesc = "SPRD Android COM Enumerator2"

USB\VID_1782&PID_5D04&MI_02.DeviceDesc = "SPRD Android COM Enumerator1"
USB\VID_1782&PID_5D04&MI_03.DeviceDesc = "SPRD Android COM Enumerator2"
sprd_enum.SvcName = "sprd_enum"
SPSVCINST_ASSOCSERVICE = 0x00000002

