; amdusb4usb3hubfilter.inf
;
; Copyright (c) 2022 Advanced Micro Devices Inc.
;

[Version]
Signature = "$Windows NT$"
Class     = USB
ClassGUID = {36FC9E60-C465-11CF-8056-444553540000}
Provider  = %ProviderString%
DriverPackageType=ClassFilter
DriverVer = 02/11/2022,1.0.0.3
CatalogFile=amdusb4usb3hubfilter.cat
PnpLockdown=1

[Manufacturer]
%ManufacturerString%=amd,NTamd64

[amd.NTamd64]
; DisplayName           Section           DeviceId
; -----------           -------           --------
%AMDUSB4USB3FILTER.DRVDESC%=      amdusb4usb3hubfilter_Inst,    USB\ROOT_HUB30&VID1022&PID15D7&REV0000
%AMDUSB4USB3FILTER.DRVDESC%=      amdusb4usb3hubfilter_Inst,    USB\ROOT_HUB30&VID1022&PID15D6&REV0000


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

[SourceDisksFiles]
amdusb4usb3hubfilter.sys = 1,,

[Drivers_Dir]
amdusb4usb3hubfilter.sys

[DestinationDirs]
DefaultDestDir = 12

[amdusb4usb3hubfilter_Inst.NT]
CopyFiles=Drivers_Dir


;;;;; registry ;;;;;;
[amdusb4usb3hubfilter_Inst.NT.HW]
AddReg = amdusb4usb3hubfilter_AddReg

[amdusb4usb3hubfilter_AddReg]
HKR,, UpperFilters, 0x00010008, usbfilter

;;;;; install pcifilter service ;;;;;;
[amdusb4usb3hubfilter_Inst.NT.Services]
AddService = USBHUB3, %SPSVCINST_ASSOCSERVICE%, usb_ServiceInst
AddService = usbfilter,,amdusb4usb3hubfilter_ServiceInst

;[amdusb4usb3hubfilter_Inst.CoInstallers]
[usb_ServiceInst]
DisplayName    = "USB Bus Driver"
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\USBHUB3.sys
LoadOrderGroup = "Boot Bus Extender"

[amdusb4usb3hubfilter_ServiceInst]
DisplayName    = %amdusb4usb3hubfilter_svcdesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\amdusb4usb3hubfilter.sys
LoadOrderGroup = "Usb Filter"

;;;;; string definition ;;;;;;;;
[Strings]
ProviderString     = "Advanced Micro Devices Inc."
ManufacturerString = "Advanced Micro Devices Inc."
AMDUSB4USB3FILTER.DRVDESC = "AMD USB4 ROOT"
SystemClassName = "System devices"
amdusb4usb3hubfilter_svcdesc = "AMD USB4 USB3HUB Filter Driver"
DISK_NAME = "AMD USB4 USB3HUB Filter Driver Install Disk"
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 1
SERVICE_BOOT_START     = 0
SERVICE_DEMAND_START   = 3
SERVICE_ERROR_NORMAL   = 1
