;*****************************************************************************
; Windows Virtual Serial Port Setup File
; Copyright (c) 2015 ZTE Corporation
; Manufacturer: ZTE Corporation
;
; This INF file installs a virtual COM port on 32-bit and 64-bit Windows OS, such as Windows XP, Vista, Win7 and Win8.
;*****************************************************************************


[Version]
signature  = "$WINDOWS NT$"
Class      = Ports
Provider   = %ZTE%
ClassGuid  = {4D36E978-E325-11CE-BFC1-08002BE10318}
DriverVer  = 07/28/2015,2.1.0.8
CatalogFile = zxicser.cat

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames.x86]
1000 = %ZTESRCDISK%,,,\i386

[SourceDisksNames.amd64]
1000 = %ZTESRCDISK%,,,\amd64
[SourceDisksFiles]
Boot_driver_dev.sys = 1000,,
Trap_driver_dev.sys = 1000,,
Nmea_driver_dev.sys = 1000,,
Diag_driver_dev.sys = 1000,,
Updt_driver_dev.sys = 1000,,

[DestinationDirs]
DefaultDestDir = 12
ZTEportIns_DL.NT.Copy=12
ZTEportIns_Trap.NT.Copy=12
DevInstall_AT.NT.Copy=12
DevInstall_Log.NT.Copy=12
DevInstall_Updt.NT.Copy=12

[Manufacturer]
%ZTE% = ZTEcomSerialPort,NTamd64

[ZTEcomSerialPort]
;;;;DL interface;;;;;
%ZTETDBootLoader19D20256_00% = ZTEportIns_DL, USB\VID_19D2&PID_0256&MI_00
%ZTETDBootLoader19D20256_01% = ZTEportIns_DL, USB\VID_19D2&PID_0256&MI_01

;;;;trap interface;;;;;
%ZTEDIAG19D20197_00% = ZTEportIns_Trap, USB\VID_19D2&PID_0197&MI_00
%ZTEDIAG19D20197_01% = ZTEportIns_Trap, USB\VID_19D2&PID_0197&MI_01

;;;;AT interface;;;;;
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0540&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0199&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0194&MI_02
%DeviceDesc_NMEA_2% = DevInstall_AT, USB\VID_19D2&PID_0194&MI_05
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0511&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0528&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0532&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0533&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0201&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0538
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_FF9D&MI_03
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_FF9C&MI_03
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0535&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0536&MI_02
%DeviceDesc_NMEA_2% = DevInstall_AT, USB\VID_19D2&PID_0536&MI_05
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0555&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_05C6&PID_9215&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0534&MI_00

;;;;Log interface;;;;;
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0540&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0199&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0511&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0528&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0532&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0201&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_FF9D&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_FF9C&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0533&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0535&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0536&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0194&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0555&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_1479&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_05C6&PID_9215&MI_00
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0534&MI_01


;;;;Update interface;;;;;
%DeviceDesc_UPDT% = DevInstall_Updt, USB\VID_19D2&PID_0199&MI_05
%DeviceDesc_UPDT% = DevInstall_Updt, USB\VID_19D2&PID_0536&MI_07

[ZTEcomSerialPort.NTamd64]
;;;;DL interface;;;;;
%ZTETDBootLoader19D20256_00% = ZTEportIns_DL, USB\VID_19D2&PID_0256&MI_00
%ZTETDBootLoader19D20256_01% = ZTEportIns_DL, USB\VID_19D2&PID_0256&MI_01

;;;;trap interface;;;;;
%ZTEDIAG19D20197_00% = ZTEportIns_Trap, USB\VID_19D2&PID_0197&MI_00
%ZTEDIAG19D20197_01% = ZTEportIns_Trap, USB\VID_19D2&PID_0197&MI_01

;;;;AT interface;;;;;
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0540&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0199&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0194&MI_02
%DeviceDesc_NMEA_2% = DevInstall_AT, USB\VID_19D2&PID_0194&MI_05
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0511&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0528&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0532&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0533&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0201&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0538
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_FF9D&MI_03
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_FF9C&MI_03
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0535&MI_00
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0536&MI_02
%DeviceDesc_NMEA_2% = DevInstall_AT, USB\VID_19D2&PID_0536&MI_05
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0555&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_05C6&PID_9215&MI_02
%DeviceDesc_NMEA% = DevInstall_AT, USB\VID_19D2&PID_0534&MI_00

;;;;Log interface;;;;;
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0540&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0199&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0511&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0528&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0532&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0201&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_FF9D&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_FF9C&MI_02
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0533&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0535&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0536&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0194&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0555&MI_04
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_1479&MI_03
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_05C6&PID_9215&MI_00
%ZTEDIAGDEV% = DevInstall_Log, USB\VID_19D2&PID_0534&MI_01

;;;;Update interface;;;;;
%DeviceDesc_UPDT% = DevInstall_Updt, USB\VID_19D2&PID_0199&MI_05
%DeviceDesc_UPDT% = DevInstall_Updt, USB\VID_19D2&PID_0536&MI_07

; ###### Installation Section ######
;;DL Installation;;
[ZTEportIns_DL.NT]
CopyFiles=ZTEportIns_DL.NT.Copy
AddReg = AllDL, AddReg.NT

[ZTEportIns_DL.NT.Copy]
Boot_driver_dev.sys

[ZTEportIns_DL.NT.Services]
AddService = Boot_driver_dev, 0x00000002, ZTEport_Service_InstDL

[ZTEport_Service_InstDL]
;DisplayName   = %ZTEcomSerialPortNameBOOT%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
;AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Boot_driver_dev.sys

[AllDL]
HKR,,NTMPDriver,,Boot_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff

;;Trap Installation;;
[ZTEportIns_Trap.NT]
CopyFiles=ZTEportIns_Trap.NT.Copy
AddReg = AllTrap, AddReg.NT

[ZTEportIns_Trap.NT.Copy]
Trap_driver_dev.sys

[ZTEportIns_Trap.NT.Services]
AddService = Trap_driver_dev, 0x00000002, ZTEport_Service_InstTrap

[ZTEport_Service_InstTrap]
;DisplayName   = %ZTEcomSerialPortNameBOOT%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
;AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Trap_driver_dev.sys

[AllTrap]
HKR,,NTMPDriver,,Trap_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff

;;AT Installation;;
[DevInstall_AT.NT]
CopyFiles=DevInstall_AT.NT.Copy
AddReg = AllNMEA, AddReg.NT

[DevInstall_AT.NT.Copy]
Nmea_driver_dev.sys

[DevInstall_AT.NT.Services]
AddService = Nmea_driver_dev, 0x00000002, DevInstall_AT.AddService

[DevInstall_AT.AddService]
;DisplayName   = %DevInstallNMEA_DispName%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
;AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Nmea_driver_dev.sys

[AllNMEA]
HKR,,NTMPDriver,,Nmea_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff


;;Log Installation;;
[DevInstall_Log.NT]
CopyFiles=DevInstall_Log.NT.Copy
AddReg = AllLog, AddReg.NT

[DevInstall_Log.NT.Copy]
Diag_driver_dev.sys

[DevInstall_Log.NT.Services]
AddService = Diag_driver_dev, 0x00000002, DevInstall_Log.AddService

[DevInstall_Log.AddService]
;DisplayName   = %ZTEcomSerialPortName6k%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
;AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Diag_driver_dev.sys

[AllLog]
HKR,,NTMPDriver,,Diag_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff


;;Update Installation;;
[DevInstall_Updt.NT]
CopyFiles=DevInstall_Updt.NT.Copy
AddReg = AllUpdt, AddReg.NT

[DevInstall_Updt.NT.Copy]
Updt_driver_dev.sys

[DevInstall_Updt.NT.Services]
AddService = Updt_driver_dev, 0x00000002, DevInstall_Updt.AddService

[DevInstall_Updt.AddService]
;DisplayName   = %ZTEcomSerialPortName6k%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Updt_driver_dev.sys

[AllUpdt]
HKR,,NTMPDriver,,Updt_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff

[PortDriver.Service.Reg]
HKR,,QCDriverSelectiveSuspendIdleTime,%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,,QCDriverPowerManagementEnabled,%FLG_ADDREG_TYPE_DWORD%, 0x00000000

[AddReg.NT]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Strings]
ZTE                             = "ZTE"
ZTESRCDISK                      = "ZTE Multimedia USB COM Driver Disk"
ZTETDBootLoader19D20256_00      = "DL1 Interface"
ZTETDBootLoader19D20256_01      = "DL2 Interface"
ZTEDIAG19D20197_00              = "Trap1 Interface"
ZTEDIAG19D20197_01              = "Trap2 Interface"
DeviceDesc_NMEA                 = "AT Interface"
DeviceDesc_NMEA_2                 = "AT2 Interface"
ZTEDIAGDEV                      = "LOG Interface"
DeviceDesc_UPDT                    = "Update Interface"
FLG_ADDREG_TYPE_DWORD           = 0x00010001
