;-----------------------------------------------------------------------------
;
; rcbottom.inf = Installation for AMD-RAID device driver
;
; Copyright (c)2012-2025 Advanced Micro Devices, Inc.
;
;-----------------------------------------------------------------------------
; - Class and ClassGUID specify the type of driver and must match
;     (see $DDKPATH/inc/api/devguid.h).
; - Driver provided by Advanced Micro Devices, Inc. for AMD-RAID 9.3 software.
;   (9.3.3-00218)
;-----------------------------------------------------------------------------

[Version]
Signature="$WINDOWS NT$"
Class=SCSIAdapter
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%AMD%
CatalogFile=rcbottom.cat
DriverVer = 03/18/2025,9.3.3.00218
PnpLockDown = 1

; ================= Class section =====================

[SourceDisksNames]
1 = %DiskName%,,,""

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%AMD% = AMD,ntamd64

;-----------------------------------------------------------------------------
[AMD.ntamd64]
%rcbottom_Desc%=rcbottom_Inst,PCI\VEN_1022&DEV_7905&CC_0104
%rcbottom_Desc%=rcbottom_Inst,PCI\VEN_1022&DEV_43BD&CC_0104
%rcbottom_Desc%=rcbottom_Inst,PCI\VEN_1022&DEV_7916&CC_0104
%rcbottom_Desc%=rcbottom_Inst,PCI\VEN_1022&DEV_7917&CC_0104
%rcbottom_Desc%=rcbottom_Inst,PCI\VEN_1022&DEV_B000&CC_0108

[rcbottom_Inst.NT]
CopyFiles=Drivers_Dir

[rcbottom_Inst.NT.HW]
AddReg=RCBOTTOM_MSI_INTERRUPTS

[Drivers_Dir]
rcbottom.sys,,,0x00002008

[RCBOTTOM_MSI_INTERRUPTS]
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1
HKR,Interrupt Management,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,0x00010001,1
HKR,Interrupt Management\MessageSignaledInterruptProperties,MessageNumberLimit,0x00010001,16
HKR, Interrupt Management\Affinity Policy, 0x00000010
HKR, Interrupt Management\Affinity Policy, DevicePolicy, 0x00010001, 5 ;IrqPolicySpreadMessagesAcrossAllProcessors




;-------------- Service installation
[rcbottom_Inst.NT.Services]
AddService = rcbottom,%SPSVCINST_ASSOCSERVICE%, rcbottom_Service_Inst

; -------------- rcbottom driver install sections
[rcbottom_Service_Inst]
DisplayName    = %rcbottom.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 0               ; SERVICE_BOOT_START
ErrorControl   = 2               ; SERVICE_ERROR_SEVERE
ServiceBinary  = %12%\rcbottom.sys
LoadOrderGroup = SCSI miniport
DelReg = rcbottom_Inst_DelReg
AddReg = rcbottom_Inst_AddReg

;-----------------------------------------------------------------------------
[rcbottom_Inst_DelReg]
HKR, "Parameters\Device", "EnableHIPM"
HKR, "Parameters\Device", "EnableDIPM"
HKR, "Parameters\Device", "HMBAllocationPolicy"

;-----------------------------------------------------------------------------
[rcbottom_Inst_AddReg]
HKR, "Parameters\Device", "EnableHIPM", 0x00010001, 0xFFFFFFFF 
HKR, "Parameters\Device", "EnableDIPM", 0x00010001, 0X00000000 
HKR, "Parameters\Device", "HMBAllocationPolicy", 0x00010001, 0X00000002
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1


[DestinationDirs]
DefaultDestDir = 12

[SourceDisksFiles]
rcbottom.sys  = 1,,


[Strings]
AMD = "Advanced Micro Devices, Inc."
SPSVCINST_ASSOCSERVICE= 0x00000002
ClassName="ADAPTER" ; TODO: edit ClassName
DiskName = "AMD-RAID Bottom Device Installation Disk"
rcbottom_Desc = "AMD-RAID Bottom Device"
rcbottom.SVCDESC = "AMD-RAID Bottom Service"
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
