;
; Usb4HostRouter.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=USB ; TODO: edit Class
ClassGuid={36FC9E60-C465-11CF-8056-444553540000} ; ; TODO: change class guid
Provider=%ProviderName%
CatalogFile=Usb4HostRouter.cat
DriverVer = 05/07/2021,10.0.20348.1

[DestinationDirs]
DefaultDestDir = 12


[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
Usb4HostRouter.sys  = 3426,,

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

[Manufacturer]
%StdMfg%=Standard,NTamd64

[Standard.NTamd64]
%Usb4HostRouter.DeviceDesc%=Usb4HostRouter_Device, Root\Usb4HostRouter ; TODO: edit hw-id
%PCI\USB4_MS_CM.DeviceDesc%=Usb4HostRouter_Device, PCI\USB4_MS_CM ; hw-id as decorated by PCIe driver

[Usb4HostRouter_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
Usb4HostRouter.sys

;-------------- Service installation
[Usb4HostRouter_Device.NT.Services]
AddService = Usb4HostRouter,%SPSVCINST_ASSOCSERVICE%, Usb4HostRouter_Service_Inst

[Usb4HostRouter_Device.NT.HW]
AddReg = MSI.reg

[MSI.reg]
HKR, "Interrupt Management",                                      0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties",   0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties",   MSISupported,        0x00010001, 1
HKR, "Interrupt Management\MessageSignaledInterruptProperties",   MessageNumberLimit,  0x00010001, 16

; -------------- Usb4HostRouter driver install sections
[Usb4HostRouter_Service_Inst]
DisplayName    = %Usb4HostRouter.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Usb4HostRouter.sys

[Usb4HostRouter_Device.NT.Wdf]
KmdfService =  Usb4HostRouter, Usb4HostRouter_wdfsect
[Usb4HostRouter_wdfsect]
KmdfLibraryVersion = 1.15

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
StdMfg = "(Standard system devices)"
ProviderName="Microsoft"
;ClassName="Samples" ; TODO: edit ClassName
DiskName = "USB4 Host Router Installation Disk"

Usb4HostRouter.DeviceDesc = "USB4 Host Router Device"
Usb4HostRouter.SVCDESC = "USB4 Host Router Service"
PCI\USB4_MS_CM.DeviceDesc ="USB4(TM) Host Router (Microsoft)"
