; /*****************************************************************************
; ** COPYRIGHT (C) 2008-2019 Mellanox                                        **
; ****************************************************************************/

[version]

Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Mellanox%
Compatible  = 1
DriverVer = 10/07/2020,2.50.23317.0
CatalogFile=MlxRshimEth.cat

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

; Mellanox CX Based PCI VPI Adapter

[Mellanox.NTamd64.6.3]
; DisplayName           Section       DeviceID
; -----------           -------       --------
%BFC2D2.000815B3.DeviceDesc%=MlxRshimEth.MlxRshimEthinstall, MLX5\RSHIM_ETH

;
; Windows NT specific entry
;
;-----------------------------------------------------------------------------

[MlxRshimEth.MlxRshimEthinstall]
Characteristics = 0x81 ; NCF_VIRTUAL
AddReg          = cx.reg, bindings.reg,
CopyFiles       = MlxRshimEth.CopyFiles
*IfType         = 6        ; IF_TYPE_ETHERNET_CSMACD
*MediaType      = 0        ; NdisMedium802_3
*PhysicalMediaType = 14    ; NdisPhysicalMedium802_3

[MlxRshimEth.MlxRshimEthinstall.Services]
AddService = MlxRshimEth, 2, MlxRshimEth.Service, common.EventLog

[MlxRshimEth.MlxRshimEthinstall.HW]


; cx common
;
[cx.reg]
HKR, NDI\Params\*JumboPacket ,         ParamDesc,  0, "%MaxFrameSize%"
HKR, NDI\Params\*JumboPacket ,         default,    0, "1514"
HKR, NDI\Params\*JumboPacket ,         min,        0, "614"
HKR, NDI\Params\*JumboPacket ,         max,        0, "00009614"
HKR, NDI\Params\*JumboPacket ,         step,       0, "1"
HKR, NDI\Params\*JumboPacket ,         Base,       0, "10"
HKR, NDI\Params\*JumboPacket ,         type,       0, "dword"
HKR, "", *JumboPacket ,  %FLG_ADDREG_NOCLOBBER%, "1514"

HKR, NDI\Params\*ReceiveBuffers,  ParamDesc, 0, "%RecvRingSize%"
HKR, NDI\Params\*ReceiveBuffers,  default,    0, "64"
HKR, NDI\Params\*ReceiveBuffers,  min, 	   0, "16"
HKR, NDI\Params\*ReceiveBuffers,  max, 	   0, "64"
HKR, NDI\Params\*ReceiveBuffers,  step,	   0, "1"
HKR, NDI\Params\*ReceiveBuffers,  Base,	   0, "10"
HKR, NDI\Params\*ReceiveBuffers,  type,	   0, "dword"
HKR, "", *ReceiveBuffers, 0, "64"

HKR, NDI\Params\NetworkAddress,  ParamDesc,  0, "%NetworkAddress%"
HKR, NDI\Params\NetworkAddress,  Default,    0, ""
HKR, NDI\Params\NetworkAddress,  type,       0, "edit"
HKR, NDI\Params\NetworkAddress,  LimitText,  0, "12"
HKR, NDI\Params\NetworkAddress,  UpperCase,  0, "1"
HKR, NDI\Params\NetworkAddress,  optional,   0, "1"

;-----------------------------------------------------------------------------


; MlxRshimEth NT specific
[bindings.reg]
; use ndis5 as the upper bound because NT supports it
HKR, Ndi,                       Service,    0, "MlxRshimEth"
HKR, NDI\Interfaces,            UpperRange, 0, "ndis5"
HKR, NDI\Interfaces,            LowerRange, 0, "ethernet,MLNX"

[MlxRshimEth.Service]
DisplayName     = %MlxRshimEth.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\MlxRshimEth.sys
LoadOrderGroup  = NDIS

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

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

;-----------------------------------------------------------------------------
; DestinationDirs
;

[DestinationDirs]
MlxRshimEth.CopyFiles    = 12
[MlxRshimEth.CopyFiles]
MlxRshimEth.sys,,,2


[SourceDisksNames]
;
; diskid = description[, [tagfile] [, <unused>, subdir]]
;
1 = %DiskDescription%,MlxRshimEth.sys,,

[SourceDisksFiles]
;
; filename_on_source = diskID[, [subdir][, size]]
;
MlxRshimEth.sys = 1,, ; on distribution disk 1
MlxRshimEthui.dll = 1

[Strings]
Mellanox                 = "Mellanox Technologies Ltd."
MaxFrameSize             = "Jumbo Packet"
RecvRingSize             = "Receive Buffers"
NetworkAddress           = "Network Address"

; VPI
BFC2D2.000815B3.DeviceDesc   = "Mellanox BlueField Management Network Adapter"
MlxRshimEth.Service.DispName = "Mellanox BlueField Management Network Adapter"
DiskDescription              = "Mellanox Driver Disk 1"

REG_SZ                    = 0x00000000
REG_DWORD                 = 0x00010001
REG_DWORD_NO_CLOBBER      = 0x00010003
FLG_ADDREG_NOCLOBBER      = 0x00000002
