; QL2300.INF - This file is used by Setup to install QLogic PCI Fibre Channel Windows Server STOR PnP Miniport Driver
; Copyright 1996-2020 Marvell Semiconductor Inc.

[version]
signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%QLOGIC%
;Real Driver date 11/05/2020
DriverVer=08/19/2015,9.4.2.103

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
ql2300i.sys=3426

[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS

[Manufacturer]
%QLOGIC%=QLOGIC, NTamd64

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


[QLOGIC.NTamd64]

%ql2300i.DeviceDesc% = ql2300i_NoIO_Inst, PCI\VEN_1077&DEV_2432
%ql2300i.DeviceDesc% = ql2300i_NoIO_8R2_Inst, PCI\VEN_1077&DEV_2532
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2031
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2071
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2171
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2271
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2371
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2261
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2533
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2081
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2281
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2089
%ql2300i.DeviceDesc% = ql2300i_8R2_Inst, PCI\VEN_1077&DEV_2289

[ControlFlags]
ExcludeFromSelect = *

[ql2300i_NoIO_Inst]
CopyFiles = @ql2300i.sys
AddReg = ql2300i_Registry_Update
ExcludeID=PCI\VEN_1077&DEV_2432&SUBSYS_004A1137

[ql2300i_8R2_Inst]
CopyFiles = @ql2300i.sys
AddReg = ql2300i_Registry_Update
ExcludeID=PCI\VEN_1077&DEV_2432&SUBSYS_004A1137

[ql2300i_NoIO_8R2_Inst]
CopyFiles = @ql2300i.sys
AddReg = ql2300i_Registry_Update
ExcludeID=PCI\VEN_1077&DEV_2432&SUBSYS_004A1137

[ql2300i_Registry_Update]
HKLM,SYSTEM\CurrentControlSet\Services\ql2300i\Parameters\Device,BusType,0x00010001,0x00000006
HKLM,SYSTEM\CurrentControlSet\Services\ql2300i\Parameters,IoTimeoutValue,0x00010001,0x3C
HKLM,SYSTEM\CurrentControlSet\Services\ql2300i\Parameters\Device,DriverParameter,0x00000000,""

[ql2300i_NoIO_Inst.Services]
AddService = ql2300i, %SPSVCINST_ASSOCSERVICE%, ql2300i_Service_Inst, Miniport_EventLog_Inst

[ql2300i_8R2_Inst.Services]
AddService = ql2300i, %SPSVCINST_ASSOCSERVICE%, ql2300i_Service_Inst, Miniport_EventLog_Inst

[ql2300i_NoIO_8R2_Inst.Services]
AddService = ql2300i, %SPSVCINST_ASSOCSERVICE%, ql2300i_Service_Inst, Miniport_EventLog_Inst

[ql2300i_Service_Inst]
DisplayName    = %ql2300i.DriverDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\ql2300i.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\drivers\ql2300i.sys;%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7

[ql2300i_8R2_Inst.HW]
AddReg = ql2300i_LM_Registry_Update
AddReg = ql2300i_GP_Registry_Update

[ql2300i_NoIO_8R2_Inst.HW]
AddReg = ql2300i_LM_Registry_Update
AddReg = ql2300i_GP_Registry_Update
Include=pci.inf
Needs=PciIoSpaceNotRequired.HW

[ql2300i_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

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

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

;*******************************************
;Non-localizable, Handy macro substitutions
SPSVCINST_ASSOCSERVICE    = 0x00000002
SERVICE_KERNEL_DRIVER     = 1
SERVICE_BOOT_START        = 0
SERVICE_ERROR_NORMAL      = 1
REG_EXPAND_SZ             = 0x00020000
REG_DWORD                 = 0x00010001

