;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
;INF Name:
;    ufxchipidea.inf
;
;Abstract:
;    INF for installing the USB function driver for Chipidea controllers.
;
;--*/

[Version]
Signature   = "$WINDOWS NT$"
Class       = USBFunctionController
ClassGuid   = {bbbe8734-08fa-4966-b6a6-4e5ad010cdd7}
Provider    = %MSFT%
PnpLockdown = 1
DriverVer = 05/07/2021,10.0.20348.1

[SourceDisksNames]
3426 = windows cd

[SourceDisksFiles]
UfxChipidea.sys = 3426

[DestinationDirs]
DefaultDestDir = 13

[Manufacturer]
%UfxChipidea.Mfg% = UfxChipidea, NTamd64

[UfxChipidea.NTamd64]
%UfxChipidea.DeviceDesc%=UfxChipidea.Install, URS\PNP0C90&FUNCTION
%UfxChipidea.DeviceDesc%=UfxChipidea.Install_Qualcomm, ACPI\QCOM2488
%UfxChipidea.DeviceDesc%=UfxChipidea.Install_Qualcomm, URS\QCOM24B7&FUNCTION

%UfxChipidea.DeviceDesc%=UfxChipidea.Install ; Used by Include/Needs

; -----------------------------------------------------------------------------
;   Generic installation section
; -----------------------------------------------------------------------------

[UfxChipidea.Install.NT]
CopyFiles = UfxChipidea.CopyFiles

[UfxChipidea.Install.NT.HW]
AddReg=UfxChipidea.SecurityAddReg

[UfxChipidea.Install.NT.Services]
AddService = UfxChipidea, 2, UfxChipidea.AddService

; -----------------------------------------------------------------------------
;   Qualcomm specific installation section
; -----------------------------------------------------------------------------

[UfxChipidea.Install_Qualcomm.NT]
CopyFiles = UfxChipidea.CopyFiles

[UfxChipidea.Install_Qualcomm.NT.HW]
AddReg=UfxChipidea.SecurityAddReg
AddReg=UfxChipidea.Filters.AddReg

[UfxChipidea.Install_Qualcomm.NT.Services]
AddService = UfxChipidea, 2, UfxChipidea.AddService

[UfxChipidea.Filters.AddReg]
HKR,,"LowerFilters",0x00010000,"QcUsbFnFilter"

; -----------------------------------------------------------------------------
;   Common installation section
; -----------------------------------------------------------------------------

[UfxChipidea.CopyFiles]
UfxChipidea.sys

[UfxChipidea.SecurityAddReg]
HKR,,DeviceCharacteristics,0x10001,0x100 ;FILE_DEVICE_SECURE_OPEN

[UfxChipidea.AddService]
DisplayName     = %UfxChipidea.ServiceName%
ServiceType     = 1     ; SERVICE_KERNEL_DRIVER
StartType       = 3     ; SERVICE_DEMAND_START
ErrorControl    = 1     ; SERVICE_ERROR_NORMAL
ServiceBinary   = %13%\UfxChipidea.sys
LoadOrderGroup  = Base
Dependencies    = ufx01000

[Strings]
MSFT = "Microsoft"
UfxChipidea.Mfg = "USB Chipidea Controller"
UfxChipidea.DeviceDesc = "USB Chipidea Controller"
UfxChipidea.ServiceName = "USB Chipidea Controller"
