; Installation inf for the Exar XR21v141x/XR21b1411 based USB UART devices
;
; (c) Copyright 2013 Exar Corporation
;

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%EXAR%
DriverVer=08/19/2013,2.0.0.0
CatalogFile=xrusbser.cat

[MANUFACTURER]
%EXAR%=Exar

[Exar]
%xrusb1414_CH1%=xrusbuart,USB\VID_04E2&PID_1414&MI_00
%xrusb1414_CH2%=xrusbuart,USB\VID_04E2&PID_1414&MI_02
%xrusb1414_CH3%=xrusbuart,USB\VID_04E2&PID_1414&MI_04
%xrusb1414_CH4%=xrusbuart,USB\VID_04E2&PID_1414&MI_06
%xrusb1412_CH1%=xrusbuart,USB\VID_04E2&PID_1412&MI_00
%xrusb1412_CH2%=xrusbuart,USB\VID_04E2&PID_1412&MI_02
%xrusb1410_CH1%=xrusbuart,USB\VID_04E2&PID_1410&MI_00
%xrusb1411_CH1%=xrusbuart,USB\VID_04E2&PID_1411&MI_00

[DestinationDirs]
DefaultDestDir=12
xrusbuart.NT.Copy=12
xrusbuart.NT.PropPageCopy = 11

[xrusbuart.NT]
CopyFiles=xrusbuart.NT.Copy, xrusbuart.NT.PropPageCopy
AddReg=xrusbuart.NT.AddReg
; addreg and copy files for PnP serenum.sys
Include=msports.inf
Needs=SerialEnumerator.NT

[xrusbuart.NT.Copy]
xrusbser.sys

[xrusbuart.NT.PropPageCopy]
xrusbports.dll

[xrusbuart.NT.AddReg]
HKR,,NTMPDriver,,*ntkern
HKR,,NTMPDriver,,xrusbser.sys
HKR,,EnumPropPages32,,"xrusbports.dll,SerialPortPropPageProvider"

[xrusbuart.NT.HW]
AddReg=xrusbuart.NT.HW.AddReg

[xrusbuart.NT.HW.AddReg]
HKR,,UpperFilters,0x00010000,serenum

[xrusbuart.NT.Services]
AddService = xrusbser, 0x00000002,Service_Inst
; install the serenum service
Include=msports.inf
Needs=SerialEnumerator.NT.Services

[Service_Inst]
DisplayName = %Serial.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\xrusbser.sys
LoadOrderGroup = Base

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
xrusbser.sys = 1,,
xrusbports.dll = 1,,

[Strings]
EXAR = "Exar Corporation"
xrusb1414_CH1 = "XR21V1414 USB UART Ch A"
xrusb1414_CH2 = "XR21V1414 USB UART Ch B"
xrusb1414_CH3 = "XR21V1414 USB UART Ch C"
xrusb1414_CH4 = "XR21V1414 USB UART Ch D"
xrusb1412_CH1 = "XR21V1412 USB UART Ch A"
xrusb1412_CH2 = "XR21V1412 USB UART Ch B"
xrusb1410_CH1 = "XR21V1410 USB UART"
xrusb1411_CH1 = "XR21B1411 USB UART"
Serial.SvcDesc = "USB Serial Exar driver"
Disk_Description="Exar USB Installation disk"