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

[version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MLNX%
CatalogFile=MlxRshimCom.cat
DriverVer = 11/18/2021,2.80.25134.0


; ================= Device Install section =====================

[ControlFlags]
ExcludeFromSelect=*

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

[SourceDisksFiles]
MlxRshimCom.sys=1

[SourceDisksNames]
1=%DISK_NAME%,

[DestinationDirs]
DefaultDestDir  = 12

; For Win8.1/2012 R2 and later
[MLNX.NTamd64.6.3]
; DisplayName           Section           DeviceId
; -----------           -------           --------
%BFC2D2.000815B3.DeviceDesc%=MlxRshimCom_Inst, MLX5\RSHIM_COM

[MlxRshimCom_Inst.NT]
CopyFiles=MlxRshimCom.CopyFiles

[MlxRshimCom.CopyFiles]
MlxRshimCom.sys

[MlxRshimCom_Inst.NT.Services]
AddService=MlxRshimCom,0x00000002,MlxRshimCom_Service, common.EventLog

[MlxRshimCom_Service]
DisplayName    = %MlxRshimCom.SVCDESC%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\MlxRshimCom.sys

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

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

[MlxRshimCom_Inst.NT.HW]
Addreg=MlxRshimCom_Inst.NT.HW.AddReg

[MlxRshimCom_Inst.NT.HW.AddReg]
;
; By default, WDF device is protected with SDDL_DEVOBJ_SYS_ALL_ADM_ALL which means
; only operating system and administrators can access the COM1 device. Let's change
; it to allow everyone to have read/write access to it. Please refer to WDK section
; "SDDL for Device Objects" for detailed description on this.
;
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGW;;;WD)"
;
; apply FILE_DEVICE_SECURE_OPEN to the whole devnode: Use same security checks on relative opens
;
HKR,,DeviceCharacteristics,0x10001,0x100


[MlxRshimCom_Inst.NT.Wdf]
KmdfService = MlxRshimCom, MlxRshimCom_wdfsect
[MlxRshimCom_wdfsect]
KmdfLibraryVersion = 1.11

[Strings]
MLNX = "Mellanox Technologies Ltd."
MlxRshimCom.SVCDESC = "Mellanox BlueField Management Serial Port"
BFC2D2.000815B3.DeviceDesc = "Mellanox BlueField Management Serial Port"
DISK_NAME = "Serial Install Disk"

