;
; qcude.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGuid={36FC9E60-C465-11CF-8056-444553540000}
Provider=%ManufacturerName%
CatalogFile=qcude.cat
DriverVer= 09/15/2020,1.0.2.6
; UDEv0035 based, woADB

[Manufacturer]
%ManufacturerName% = QCOM, NTamd64, NTarm, NTarm64


[QCOM.NTamd64]
%qcude.DeviceDescSDX55-Lenovo% = qcude_Install2, {3a4d657c-0a42-4501-9627-ba1b76ffc39d}\QcUde-E0AB105B

[QCOM.NTarm]
%qcude.DeviceDescSDX55-Lenovo% = qcude_Install2, {3a4d657c-0a42-4501-9627-ba1b76ffc39d}\QcUde-E0AB105B

[QCOM.NTarm64]
%qcude.DeviceDescSDX55-Lenovo% = qcude_Install2, {3a4d657c-0a42-4501-9627-ba1b76ffc39d}\QcUde-E0AB105B


; =================== Qualcomm UDE Device ==================================

[qcude_Install2]
CopyFiles       = DriverCopy
FeatureScore    = 0x20  
AddReg          = qcudeAddReg2

[qcude_Install2.hw]
;AddReg          = DfxAddReg
Include         = machine.inf

[qcudeAddReg2]
; Support Muxing
HKR,, MuxSupport, 0x00010001, 0x00000000
; Number of Mux Interfaces
HKR,, NumMuxIfaces, 0x00010001, 0x00000007
; Make to enumerate only mbim/qmux
HKR,, NonMbimEnumeration, 0x00010001, 0x00000001
; UDE setting for different customer composition
HKR,, CustomerComposition, 0x00010001, 0x00000006
; Number of NTB In Max size
HKR,, NtbInMaxSize, 0x00010001, 0x00008000
; Number of NTB Out Max size
HKR,, NtbOutMaxSize, 0x00010001, 0x00008000
; Number of NTB Out Max Datagrams
HKR,, NtbOutMaxDatagrams, 0x00010001, 0x00000020
; Make only MBIM Enumeration
HKR,, SDX55, 0x00010001, 0x00000001
; OS Version check
HKR,, OsVersion, 0x00010001, 0x00004970
; Enable RemoteWakeup
HKR,, EnableRemoteWakeup, 0x00010001, 0x00000001

;[DfxAddReg]
;HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1

[qcude_Install2.Services]
AddService      = qcude,%SPSVCINST_ASSOCSERVICE%,qcude_ServiceInstall

[qcude_ServiceInstall]
DisplayName    = %qcude.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\qcude.sys
Dependencies   = ucx01000, udecx

[SourceDisksFiles]
qcude.Sys               = 1

[SourceDisksNames.x86]
1 = %MediaDescription%,,,\qcude\i386

[SourceDisksNames.amd64]
1 = %MediaDescription%,,,\qcude\amd64

[SourceDisksNames.arm]
1 = %MediaDescription%,,,\qcude\arm

[SourceDisksNames.arm64]
1 = %MediaDescription%,,,\qcude\arm64

[DestinationDirs]
DriverCopy                 = 12

[DriverCopy]
qcude.Sys

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
ManufacturerName = "Qualcomm"
DiskName = "qcude Installation Disk"
MediaDescription = "Qualcomm Bus Enumerator Installation Media"
qcude.SVCDESC = "Qualcomm UDE Service"
qcude.DeviceDescSDX55-Lenovo = "Qualcomm Snapdragon X55 5G UDE Device"
