; INF file for MegaRaid family of RAID controllers.
;********************************************************************
;                                                                    *
;   Copyright 2014 LSI Corp., Inc. All rights reserved.              *
;                                                                    *
;   This file is property of LSI Corp., Inc. and is licensed for     *
;   use as is.  The receipt of or possession of this file does not   *
;   convey any rights to modify its contents, in whole, or in part,  *
;   without the specific written consent of LSI Corp., Inc.          *
;                                                                    *
;								     *
; LSI is a trademark of LSI Corporation in the United States and     *
; other countries.						     *
; Avago Technologies is a trademark of Avago Technologies in the     *
; United States and other countries.				     *
;								     *
; Copyright © 2013-2014 LSI Corporation.			     *
; Copyright © 2013-2014 Avago Technologies All rights reserved       *
;                                                                    *
;********************************************************************

[version]
Signature   ="$Windows NT$"
Class       = SCSIAdapter
ClassGUID   = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider    = %LSI%
;Real date 01/22/2020
DriverVer=07/26/2017,6.714.22.00


[Manufacturer]
%LSI% = LSI, NTx86, NTamd64

[SourceDisksNames]
3426 = windows cd

[SourceDisksFiles]
megasas2i.sys = 3426

[DestinationDirs]
DefaultDestDir = 12

[ControlFlags]
ExcludeFromSelect = *

[Install_MSI.NT]
CopyFiles = @MegaSas2i.sys

[Install_MSI.NT.HW]
Include = machine.inf
Needs   = PciIoSpaceNotRequired.HW
AddReg  = Install_AddReg_HW

[Install_AddReg_HW]
HKR, Interrupt Management\MessageSignaledInterruptProperties, MSISupported, %REG_DWORD%, %MSI_ENABLED%
HKR, Interrupt Management\Affinity Policy, DevicePolicy, %REG_DWORD%, %AcrossAllProcessors%
HKR, Interrupt Management\Affinity Policy, DevicePriority, %REG_DWORD%, %IrqPriorityHigh%
HKR, Interrupt Management\Affinity Policy, GroupPolicy, %REG_DWORD%, 1

[Install_MSI.NT.Services]
AddService = megasas2i, %SPSVCINST_ASSOCSERVICE%, Driver_Install, EventLog_Install

[Driver_Install]
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_BOOT_START% 
ErrorControl   = %SERVICE_ERROR_NORMAL% 
ServiceBinary  = %12%\MegaSas2i.sys
LoadOrderGroup = SCSI Miniport
AddReg         = Parms_AddReg

[Parms_AddReg]
HKR, "Parameters", %BUSTYPE_NAME%, %REG_DWORD%, %BUSTYPE_RAID%
HKR, "Parameters\PnpInterface", %PCIBUS%, %REG_DWORD%, 1
HKR, "Parameters\Device", DriverParameter, 0x00000000, "nobusywait=1"
HKR, "Parameters\Device", %512eKey%, %REG_DWORD%, %ENABLED%
HKLM, "System\CurrentControlSet\Services\Disk", %TIMEOUT_VALUE%, %REG_DWORD%, %TIMEOUT_SECONDS%
HKR, "StorPort", "PowerSrbTimeout", %REG_DWORD%, 0x28

[EventLog_Install]
AddReg = EventLog_AddReg

[EventLog_AddReg]
HKR,,EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\megasas2i.sys"
HKR,,TypesSupported, %REG_DWORD%, 7

[LSI.NTx86]

;
; LSI - 2208 Series:
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005B

; LSI - 3108 Series:
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005D
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005F

; LSI - Intruder

%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_00CE
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_00CF
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_0052
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_0053


[LSI.NTamd64]



; LSI - 2208 Series:
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005B

; LSI - 3108 Series:
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005D
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_005F


%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_00CE
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_00CF
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_0052
%mraidsasGeneric.DeviceDesc%        = Install_MSI, PCI\VEN_1000&DEV_0053


[Strings]
;Localizable Strings needed for HBA naming in Windows UI

LSI = "AvagoTech"
mraidsasGeneric.DeviceDesc          = "AVAGO MegaRAID SAS Adapter"


;*******************************************
;Non-Localizable strings

SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 1
SERVICE_BOOT_START     = 0
SERVICE_ERROR_NORMAL   = 1
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001

PCIBUS                  = 5
TIMEOUT_SECONDS         = 60
TIMEOUT_VALUE           = "IoTimeoutValue"
BUSTYPE_NAME            = "BusType"
BUSTYPE_RAID            = 8

MSI_ENABLED             = 1
AcrossAllProcessors     = 5
IrqPriorityHigh         = 3

512eKey 		= "EnableQueryAccessAlignment"
ENABLED 		= 1
DISABLED		= 0
