;
; MhiHost.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%ManufacturerName%
CatalogFile=mhihost.cat
DriverVer = 09/07/2021,1.0.0.5
PnpLockdown=1
;

;[DestinationDirs]

; ================= Class section =====================

[SourceDisksNames]
1 = %DiskName%,,,""

;[SourceDisksFiles]


;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%PCI\VEN_1269&DEV_00B3.DeviceDesc% = MhiHost_Device, PCI\VEN_1269&DEV_00B3&SUBSYS_00B31269

;[Models]
;PCI\VEN_17CB&DEV_0300&SUBSYS_17CB0300

[MhiHost_Device.NT]
CopyFiles=Drivers_Dir
AddReg = swbusAddReg

[swbusAddReg]
; Support Muxing
HKR,, MuxSupport, 0x00010001, 0x00000000
; Number of Mux Interfaces
HKR,, NumMuxIfaces, 0x00010001, 0x00000007

[Drivers_Dir]
MhiHost.sys

[MhiHost_Device.NT.HW]
AddReg=MhiHost_Device_Addreg
Include = PCI.inf
Needs = PciD3ColdSupported.HW

[MhiHost_Device_Addreg]
HKR,Interrupt Management,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,0x00010001,1
HKR,Interrupt Management\MessageSignaledInterruptProperties,MessageNumberLimit,0x00010001,8
HKR,,HwInERIntMod,0x00000001,01,00,00,00;
HKR,,MhiInactivityThreshold,0x00000001,88,13,00,00,00,00,00,00
HKR,,MhiTestCase,0x00000001,00,00,00,00
HKR,,MhiDevResetTimer,0x00000001,00,00,00,00
HKR,,MhiHostMemBase,0x00000001,00,00,00,00,00,00,00,00
HKR,,MhiHostMemSize,0x00000001,00,00,00,00,20,00,00,00
HKR,,RS6OSInfo,0x00000001,70,49,00,0A,00,00,00,00
HKR,,BurstMode,0x00000001,01,00,00,00
HKR,,MhiS0IdleExcludeD3,0x00000001,00,00,00,00
HKR,,BusPdoGuid,%REG_SZ%,%BusPdoGuid%
HKR,,UdePdo,%REG_SZ%,%UdePdo%
HKR,,QmuxPdo,%REG_SZ%,%QmuxPdo%

;-------------- Service installation
[MhiHost_Device.NT.Services]
AddService = MhiHost,%SPSVCINST_ASSOCSERVICE%, MhiHost_Service_Inst

; -------------- MhiHost driver install sections
[MhiHost_Service_Inst]
DisplayName    = %MhiHost.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\MhiHost.sys
LoadOrderGroup = Extended Base

;
;--- MhiHost_Device Coinstaller installation ------
;

[DestinationDirs]
DefaultDestDir = 12
MhiHost_Device_CoInstaller_CopyFiles = 11

[MhiHost_Device.NT.CoInstallers]
AddReg=MhiHost_Device_CoInstaller_AddReg
CopyFiles=MhiHost_Device_CoInstaller_CopyFiles

[MhiHost_Device_CoInstaller_AddReg]
;


[MhiHost_Device_CoInstaller_CopyFiles]
;


[SourceDisksFiles]
MhiHost.sys  = 1,,
;


[MhiHost_Device.NT.Wdf]
KmdfService =  MhiHost, MhiHost_wdfsect
[MhiHost_wdfsect]
KmdfLibraryVersion = 1.23

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Cinterion" 
ClassName="Qualcomm Modem Host Interface" 
DiskName = "MhiHost Installation Disk"
PCI\VEN_1269&DEV_00B3.DeviceDesc = "SDX55-Cinterion"
MhiHost.SVCDESC = "Modem Host Interface Service"
REG_SZ              = 0x00000000
REG_DWORD           = 0x00010001
UdePdo="QcUde-00B31269"
QmuxPdo="QcQmux_OEM_MUST_CHANGE_THIS"
BusPdoGuid="{3a4d657c-0a42-4501-9627-ba1b76ffc39d}"
