;
; MhiHost.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Sample ; TODO: edit Class
;ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
ClassGuid={8A824C6B-ACDA-4F01-9F4C-3E204EE8BFC9}
Provider=%ManufacturerName%
CatalogFile=mhihost.cat
DriverVer = 08/28/2020,1.0.3.7
PnpLockdown=1
; 

;[DestinationDirs]

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

[ClassInstall32]
Addreg=SampleClassReg

[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

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

;[SourceDisksFiles]


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

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%PCI\VEN_103C&DEV_877F.DeviceDesc% = MhiHost_Device, PCI\VEN_103C&DEV_877F&SUBSYS_877F103C
%PCI\VEN_03F0&DEV_0A6C.DeviceDesc% = MhiHost_Device, PCI\VEN_03F0&DEV_0A6C&SUBSYS_877F103C

;[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,10,27,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%
HKLM,SYSTEM\CurrentControlSet\Control\DeviceOverrides\USB#VID_03F0&PID_0A6C&REV_0300\LocationPaths\*,Removable,0x00010001,0x00000000

;-------------- 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="HP" 
ClassName="Qualcomm Modem Host Interface" 
DiskName = "MhiHost Installation Disk"
PCI\VEN_103C&DEV_877F.DeviceDesc = "SDX55"
PCI\VEN_03F0&DEV_0A6C.DeviceDesc = "SDX55"
MhiHost.SVCDESC = "Modem Host Interface Service"
REG_SZ              = 0x00000000
REG_DWORD           = 0x00010001
UdePdo="QcUde-877F103C"
QmuxPdo="QcQmux_OEM_MUST_CHANGE_THIS"
BusPdoGuid="{3a4d657c-0a42-4501-9627-ba1b76ffc39d}"
