; /*****************************************************************************
; ** Copyright (C) Mellanox Technologies, Ltd. 2001-2020. ALL RIGHTS RESERVED.**
; ****************************************************************************/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%MLNX%
DriverVer = 10/07/2020,2.50.23317.0
CatalogFile=MlxRshimBus.cat

[DestinationDirs]
DefaultDestDir = 12,

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

[SourceDisksFiles]
MlxRshimBus.sys  = 1,

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

[Manufacturer]
%MLNX%=Mellanox,NTamd64.6.3

; For Win8.1/2012 R2 and later
[Mellanox.NTamd64.6.3]
%MlxRshimBus.DeviceDesc%=MlxRshimBus_Device, PCI\VEN_15B3&DEV_C2D2
%MlxRshimBus2.DeviceDesc%=MlxRshimBus_Device, PCI\VEN_15B3&DEV_C2D3
%MlxRshimBusLf.DeviceDesc%=MlxRshimBus_Device, PCI\VEN_15B3&DEV_0211
%MlxRshimBus2Lf.DeviceDesc%=MlxRshimBus_Device, PCI\VEN_15B3&DEV_0214
%MlxRshimBus2LfSec.DeviceDesc%=MlxRshimBus_Device, PCI\VEN_15B3&DEV_0215

[MlxRshimBus_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
MlxRshimBus.sys


;-------------- Service installation
[MlxRshimBus_Device.NT.Services]
AddService = MlxRshimBus,%SPSVCINST_ASSOCSERVICE%, MlxRshimBus_Service_Inst, common.EventLog

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

[common.EventLog]
AddReg = common.AddEventLog.reg

[common.AddEventLog.reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\drivers\MlxRshimBus.sys;%%SystemRoot%%\System32\iologmsg.dll"
HKR, , TypesSupported,   0x00010001, 7

[MlxRshimBus_Device.NT.HW]
AddReg=MlxRshimBus_Device.NT.AddReg

[MlxRshimBus_Device.NT.AddReg]
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system


[MlxRshimBus_Device.NT.Wdf]
KmdfService = MlxRshimBus, MlxRshimBus_wdfsect
[MlxRshimBus_wdfsect]
KmdfLibraryVersion = 1.11



[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
MLNX = "Mellanox"
DiskId1 = "Mellanox Rshim Bus Installation Disk"
MlxRshimBus.DeviceDesc = "MT416842 BlueField SoC management interface"
MlxRshimBus2.DeviceDesc = "MT42822 BlueField-2 SoC Management Interface"
MlxRshimBuslF.DeviceDesc = "MT416842 Family [BlueField SoC Flash Recovery]"
MlxRshimBus2lF.DeviceDesc = "MT42822 Family [BlueField-2 SoC Flash Recovery]"
MlxRshimBus2LfSec.DeviceDesc= "MT42822 Family [BlueField-2 Secure Flash Recovery]"
MlxRshimBus.SVCDESC = "BlueField SoC management interface"

