*****************************************************************************
;*
;*  Copyright (c) 2003-2016 Emulex. All rights reserved.
;*
;*
;*       OEMSETUP.INF - This file is used by Setup to install the Emulex STORPORT 
;*                Miniport driver elxfcoe.sys 
;*
;*                (for Emulex FCoE Host Bus Adapters)
;*
;*******************************************************************************

[version]
signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%EMULEX%
DriverVer=04/13/2016,11.0.247.8000

;
; Source file information
;
[SourceDisksNames]
1 = %elxfcoe.DeviceDesc%,lpscsi,,


[SourceDisksFiles]
elxfcoe.sys = 1

[DestinationDirs]
elxfcoe_CopyFiles  = 12 

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%EMULEX%=EMULEX, NTamd64


;**********************************
; Emulex Manufacturer device list
;**********************************
[EMULEX]

[EMULEX.NTamd64]
;Tomcat
%elxfcoe.DeviceDesc% = elxfcoe_BE_MSI, PCI\VEN_19A2&DEV_0714

;Lancer FCoE
%elxfcoe.DeviceDesc% = elxfcoe_Lancer_MSI, PCI\VEN_10DF&DEV_E260

; SkyHawk
%elxfcoe.DeviceDesc% = elxfcoe_BE_MSI, PCI\VEN_10DF&DEV_0724

;
; The Install Section
;

[elxfcoe_BE_MSI]
CopyFiles = elxfcoe_CopyFiles
AddReg    = elxfcoe_Registry_Update

[elxfcoe_BE_MSI.HW]
Include = machine.inf
Needs   = PciIoSpaceNotRequired
AddReg  = elxfcoe_Registry_Update_BE_MSI

[elxfcoe_Lancer_MSI]
CopyFiles = elxfcoe_CopyFiles
AddReg    = elxfcoe_Registry_Update

[elxfcoe_Lancer_MSI.HW]
Include = machine.inf
Needs   = PciIoSpaceNotRequired
AddReg  = elxfcoe_Registry_Update_Lancer_MSI

[elxfcoe_CopyFiles]
elxfcoe.sys

[elxfcoe_Registry_Update]
HKLM,SYSTEM\CurrentControlSet\Services\elxfcoe\Parameters\PnPInterface,"5",0x00010001, 0x00000001
HKLM,SYSTEM\CurrentControlSet\Services\elxfcoe\Parameters,BusType,0x00010001,0x0000006

[elxfcoe_Registry_Update_BE_MSI]
HKR,"Interrupt Management\Affinity Policy", GroupPolicy, 0x00010001, 1

HKR,"Interrupt Management\MessageSignaledInterruptProperties", MSISupported,       0x00010001, 1
HKR,"Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 32

HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", DevicePolicy,    0x00010001, 5
HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", StartingMessage, 0x00010001, 0
HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", EndingMessage,   0x00010001, 31

[elxfcoe_Registry_Update_Lancer_MSI]
HKR,"Interrupt Management\Affinity Policy", GroupPolicy, 0x00010001, 1

HKR,"Interrupt Management\MessageSignaledInterruptProperties", MSISupported,       0x00010001, 1
HKR,"Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 32

HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", DevicePolicy,    0x00010001, 5
HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", StartingMessage, 0x00010001, 0
HKR,"Interrupt Management\MessageSignaledInterruptProperties\Range\0", EndingMessage,   0x00010001, 31

[elxfcoe_BE_MSI.Services]
AddService = elxfcoe, %SPSVCINST_ASSOCSERVICE%, elxfcoe_Service_Inst, Miniport_EventLog_Inst

[elxfcoe_Lancer_MSI.Services]
AddService = elxfcoe, %SPSVCINST_ASSOCSERVICE%, elxfcoe_Service_Inst, Miniport_EventLog_Inst

[elxfcoe_Service_Inst]
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\elxfcoe.sys
LoadOrderGroup = SCSI Miniport

[Miniport_EventLog_Inst]
AddReg = Miniport_EventLog_AddReg

[Miniport_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7

[Strings]
;Localizable strings
Msft               = "Microsoft"
EMULEX             = "Emulex"
elxfcoe.DeviceDesc = "Emulex FCoE HBA - Storport Miniport Driver"

;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
REG_SZ                 = 0x00000000
