;/*++
;
; Copyright (c) 2012  by KYOCERA Corporation
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%KYOCERA%
DriverVer=06/20/2012,2.0.0.0
CatalogFile=kc02us_serd.cat

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

[Manufacturer]
%MfgName%=Kyocera, NTx86, NTamd64

; For XP and later
[Kyocera.NTx86]
;Diag Brew
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0743&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0744&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0745&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0748&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_074B&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0750&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0751&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0752&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0753&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0754&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0755&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_024F&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0250&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0253&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_025F&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0266&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0269&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0288&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_028B&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0512&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_052d&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0530&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0533&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0545&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_058A&MI_02
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05B1&MI_00
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05B3&MI_02
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05da&MI_00
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05db&MI_00

;Diag Android
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051B&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051C&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_052A&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0546&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0547&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0556&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_056e&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0558&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_055A&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0572&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_057f&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_058D&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_058F&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0594&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0596&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0598&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_059D&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05A8&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05AA&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05AF&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05dc&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05df&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05e3&MI_02

;Nmea Android
%Serd2.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051B&MI_04&OS_NT
%Serd2.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051C&MI_03&OS_NT

[Kyocera.NTamd64]
;Diag Brew
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0743&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0744&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0745&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0748&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_074B&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0750&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0751&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0752&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0753&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0754&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0474&PID_0755&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_024F&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0250&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0253&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_025F&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0266&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0269&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0288&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_028B&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0512&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_052d&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0530&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0533&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_0545&MI_02&OS_NT
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_058A&MI_02
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05B1&MI_00
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05B3&MI_02
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05da&MI_00
%Serd.DeviceDesc%=serd.bDev, USB\VID_0482&PID_05db&MI_00

;Diag Android
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051B&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051C&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_052A&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0546&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0547&MI_00&OS_NT
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0556&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_056e&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0558&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_055A&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0572&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_057f&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_058D&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_058F&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0594&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0596&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_0598&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_059D&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05A8&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05AA&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05AF&MI_02
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05dc&MI_00
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05df&MI_01
%Serd.DeviceDesc%=serd.aDev, USB\VID_0482&PID_05e3&MI_02

;Nmea Android
%Serd2.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051B&MI_04&OS_NT
%Serd2.DeviceDesc%=serd.aDev, USB\VID_0482&PID_051C&MI_03&OS_NT

[serd.bDev.NT]
AddReg=serd.bDev.AddReg
CopyFiles=serd.Files.x86

[serd.bDev.NTamd64]
AddReg=serd.bDev.AddReg
CopyFiles=serd.Files.amd64

[serd.aDev.NT]
AddReg=serd.aDev.AddReg
CopyFiles=serd.Files.x86

[serd.aDev.NTamd64]
AddReg=serd.aDev.AddReg
CopyFiles=serd.Files.amd64

;;;;;AddReg

[serd.bDev.AddReg]
HKR,,EnableExtraIO,0x00010001,1
HKR,,EnableDevidedPacketAsZLP, 0x10001, 1
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[serd.aDev.AddReg]
HKR,,EnableExtraIO,0x00010001,1
HKR,,EnableDevidedPacketAsZLP, 0x10001, 0
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

;;;;;Services

[serd.bDev.NT.Services]
AddService = %SERD%, %SPSVCINST_ASSOCSERVICE%, serd.AddService.x86

[serd.bDev.NTamd64.Services]
AddService = %SERD%, %SPSVCINST_ASSOCSERVICE%, serd.AddService.amd64

[serd.aDev.NT.Services]
AddService = %SERD%, %SPSVCINST_ASSOCSERVICE%, serd.AddService.x86

[serd.aDev.NTamd64.Services]
AddService = %SERD%, %SPSVCINST_ASSOCSERVICE%, serd.AddService.amd64

[serd.AddService.x86]
DisplayName    = %Serd.SvcDesc%
Description    = %Serd.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\%SERDSYS32%

[serd.AddService.amd64]
DisplayName    = %Serd.SvcDesc%
Description    = %Serd.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\%SERDSYS64%

;;;;;Files extract

[serd.Files.x86]
kc02us_serd32.sys

[SourceDisksNames.x86]
1=%Disk_Description%,,,\i386

[SourceDisksFiles.x86]
kc02us_serd32.sys = 1

[serd.Files.amd64]
kc02us_serd64.sys

[SourceDisksNames.amd64]
1=%Disk_Description%,,,\amd64

[SourceDisksFiles.amd64]
kc02us_serd64.sys = 1

[DestinationDirs]
DefaultDestDir = 12

;-------------- WDF Coinstaller installation

[DestinationDirs]
CoInstaller_CopyFiles = 11

[serd.bDev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[serd.bDev.NTamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[serd.aDev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[serd.aDev.NTamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

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

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

[serd.bDev.NT.Wdf]
KmdfService = %SERD%, serd_wdfsect

[serd.bDev.NTamd64.Wdf]
KmdfService = %SERD%, serd_wdfsect

[serd.aDev.NT.Wdf]
KmdfService = %SERD%, serd_wdfsect

[serd.aDev.NTamd64.Wdf]
KmdfService = %SERD%, serd_wdfsect

[serd_wdfsect]
KmdfLibraryVersion = 1.9

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

[Strings]
KYOCERA             = "KYOCERA Corporation"
MfgName             = "KYOCERA Corporation"
SERD                = "kc02us_serd"
SERDSYS32           = "kc02us_serd32.sys"
SERDSYS64           = "kc02us_serd64.sys"
Disk_Description    = "KYOCERA USB KC02US Serial Port Drivers installation disk"
Serd.DeviceDesc     = "KYOCERA USB KC02US Serial Port"
Serd2.DeviceDesc    = "KYOCERA USB KC02US NMEA Port"
Serd.SvcDesc        = "KYOCERA USB KC02US Serial Port Driver"

CustomerDataPath = "KYOCERA KC02US"

SPSVCINST_ASSOCSERVICE= 0x00000002

