; qlfcoei.INF - This file is used by Setup to install QLogic PCI FCoE Windows STOR PnP Miniport Driver
; Copyright 1996-2013 QLogic Corporation 

[version]
signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%QLOGIC%
DriverVer=05/17/2013,9.1.11.3

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
qlfcoei.sys=3426

[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS

[Manufacturer]
%QLOGIC%=QLOGIC, NTamd64

;*******************************
;QLogic Manufacturer device list

[QLOGIC]

[QLOGIC.NTamd64]
%qlfcoei.DeviceDesc% = qlfcoei_8R2_InstP3P, PCI\VEN_1077&DEV_8021
%qlfcoei.DeviceDesc% = qlfcoei_8R2_Inst, PCI\VEN_1077&DEV_8031

[ControlFlags]
ExcludeFromSelect = *

[qlfcoei_8R2_Inst]
CopyFiles = @qlfcoei.sys
AddReg = qlfcoei_Registry_Update
AddReg = ql2xhai2_Registry_Update

[qlfcoei_8R2_InstP3P]
CopyFiles = @qlfcoei.sys
AddReg = qlfcoei_Registry_Update
AddReg = ql2xhai2_Registry_Update

[qlfcoei_Registry_Update]
HKLM,SYSTEM\CurrentControlSet\Services\qlfcoei\Parameters\Device,DriverParameter,0x00000000,""
HKLM,SYSTEM\CurrentControlSet\Services\qlfcoei\Parameters\Device,BusType,0x00010001,0x00000006
HKR,"Parameters",IoTimeoutValue,0x00010001,0x3C

[ql2xhai2_Registry_Update]
HKLM,SOFTWARE\Wow6432Node\SNIA\HBA\QL2X00,LibraryFile,0x00000000,"%10%\SysWOW64"

[qlfcoei_8R2_Inst.Services]
AddService = qlfcoei, %SPSVCINST_ASSOCSERVICE%, qlfcoei_Service_Inst, Miniport_EventLog_Inst

[qlfcoei_8R2_InstP3P.Services]
AddService = qlfcoei, %SPSVCINST_ASSOCSERVICE%, qlfcoei_Service_Inst, Miniport_EventLog_Inst

[qlfcoei_Service_Inst]
DisplayName    = %qlfcoei.DriverDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\qlfcoei.sys
LoadOrderGroup = SCSI Miniport
AddReg         = pnpsafe_pci_addreg

[pnpsafe_pci_addreg]
HKR, "Parameters\PnpInterface", "5", 0x00010001, 0x00000001

[Miniport_EventLog_Inst]
AddReg = Miniport_EventLog_AddReg

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

[qlfcoei_8R2_Inst.HW]
AddReg = qlfcoei_LM_Registry_Update

[qlfcoei_8R2_InstP3P.HW]
AddReg = qlfcoei_LMP3P_Registry_Update

[qlfcoei_LM_Registry_Update]
HKR,Interrupt Management,,0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties, 0, 0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties, MSISupported, 0x00010001, 1
HKR, "Interrupt Management\Affinity Policy", 0, 0x00000010
HKR, "Interrupt Management\Affinity Policy", DevicePolicy, 0x00010001, 5

[qlfcoei_LMP3P_Registry_Update]
HKR,Interrupt Management,,0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties, 0, 0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties, MSISupported, 0x00010001, 1
HKR, Interrupt Management\MessageSignaledInterruptProperties, MessageNumberLimit, 0x00010001, 2
HKR, "Interrupt Management\Affinity Policy", 0, 0x00000010
HKR, "Interrupt Management\Affinity Policy", DevicePolicy, 0x00010001, 5

[Strings]
;localizable
QLOGIC = "QLogic"
qlfcoei.DriverDesc = "QLogic [FCoE] STOR Miniport Inbox Driver (wx64)"
qlfcoei.DeviceDesc = "QLogic [FCoE] Adapter"

;*******************************************
;Handy macro substitutions (non-localizable)
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 1
SERVICE_BOOT_START     = 0
SERVICE_ERROR_NORMAL   = 1
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001
