;;/*********************************************************************
;;
;;  (c) Copyright MosChip Semiconductor Technology Limited
;;
;;  MosChip 7840/7820 - MosChip High-Speed USB MultiSerial Device Driver for 2/4 serial ports
;;
;;  Mos24Ser.inf: Installation Script for MosChip 7840/20 - Serial Port Device
;;  Target OS : Windows Vista 32-Bit
;;
;;*********************************************************************/

[version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%ProviderName%
DriverVer=06/18/2007,1.3.10.0
CatalogFile=Mos24Ser.cat

[DestinationDirs]
DefaultDestDir  = 11        ;LDID_SYS

;===============================
; Driver Installation
;===============================
[Manufacturer]
%MfgName%=MosQuadPortsList

;
; Manufacturer Name Section
;
[MosQuadPortsList]
%MosQuadPort.ComPortName%=ComPort.NT,MOSCHIP\QUAD_SERIAL_INTERFACE


;----------------------------------------
; COM Port Install
;----------------------------------------

[ComPort.NT]
AddReg=ComPort.NT.AddReg

[ComPort.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,mos24ser.sys

;RegMaxTxPacketSize is valid 32 - 512K
HKR,, "RegMaxTxPacketSize", 0x10001, 512

;RegMaxTxPacketSize is valid 64 - 512K
HKR,, "RegMaxRxPacketSize", 0x10001, 1024

;RegUsbReadMaxPolls is valid 1 - 10
HKR,, "RegUsbReadMaxPolls", 0x10001, 1

;RegUsbStatusMaxPolls is valid 1 - 10
HKR,, "RegUsbStatusMaxPolls", 0x10001, 1

;RegEnableHwFlowControl is valid 0 - 1
HKR,, "RegEnableHwFlowControl", 0x10001, 0

HKR,, "DeviceControlReg0",	 0x10001, 01
HKR,, "DeviceControlReg1",	 0x10001, 05
HKR,, "DeviceControlReg2",	 0x10001, 36
HKR,, "MaskBaudsLowToHigh",	 0x10001, 0
HKR,, "WriteDCR",			 0x10001, 1
HKR,, "ControlReg",			 0x10001, 0
HKR,, "RS485EN",			 0x10001, 0
HKR,, "IrDA",				 0x10001, 0
HKR,, "DLL"	,				 0x10001, 0
HKR,, "DLM"	,				 0x10001, 0
HKR,, "CLK_SEL_REG",		 0x10001, 0
HKR,, "RxSAMP",				 0x10001, 7
HKR,, "ZLP",				 0x10001, 255
HKR,, "ZLP_ENABLE",			 0x10001, 1
HKR,, "THR1",				 0x10001, 0
HKR,, "THR2",				 0x10001, 1
HKR,, "ICG",				 0x10001, 0
HKR,, "VID_PID_CUSTOMER", , "9710_7840_MOSCHIP"

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
HKR,,EnumPropPages32,,"Mos24SerPropPage.dll,MosUSBSerPropPageProvider"
HKR,,PortSubClass,1,01

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

[ComPort.NT.Service.AddReg]
;DebugLevel is valid 0 - 3
HKR,"Parameters", "DebugLevel", 0x10001, 0
HKR,"Parameters", "EXT_INTERRUPT_VAR", 0x10001, 0
HKR,"Parameters", "WaitCount", 0x10001, 0
HKR,"Parameters", "ClockStartReg", 0x10001, 0
HKR,"Parameters", "ClockMultiReg", 0x10001, 16
HKR,"Parameters", "PLL_N_REGs", 0x10001, 8
HKR,"Parameters", "PLL_M_REGs", 0x10001, 1
HKR,"Parameters", "CLK_MUX_REGs", 0x10001, 0
HKR,"Parameters", "EXTERNAL_CLOCK", 0x00010000 , "12.0"

[ComPort.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"serenum"
HKR,,"VID_PID_CUSTOMER", , "9710_7840_MOSCHIP"

[ComPort.NT.Services]
AddService=mos24ser,2,ComPort.NT.AddService
AddService= Serenum,,Serenum_Service_Inst

[ComPort.NT.AddService]
DisplayName    = %mos24ser.ServiceName%
ServiceType    = 1           ; SERVICE_KERNEL_DRIVER
StartType      = 3           ; SERVICE_DEMAND_START
ErrorControl   = 0           ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\mos24ser.sys
;LoadOrderGroup = Base
AddReg=ComPort.NT.Service.AddReg

; -------------- Serenum Driver install section
[Serenum_Service_Inst]
DisplayName    = %Serenum.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\serenum.sys
LoadOrderGroup = PNP Filter

;----------------------------------------------
; User readable strings
;----------------------------------------------
[Strings]
ProviderName="MosChip Semiconductor Technology Ltd."
MfgName="MosChip Semiconductor Technology Ltd."
DiskName="High-Speed USB MultiSerial Compound Device Installation Disc"
MosQuadComp.DevName="High-Speed USB MultiSerial Compound Device"
mos24ser.ServiceName="High-Speed USB MultiSerial Device Service"
PortsClassName = "Ports (COM)"
MosQuadPort.ComPortName="High-Speed USB Serial Port"
Serenum.SVCDESC = "Serenum Filter Driver"
Enumerator = "Serial Enumerator"

;-----------------------
; END OF FILE
;-----------------------