[version]
signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%APPLE%
DriverVer = 11/11/2018,6.1.7800.1
; Original Date 11/11/2019

;
; Source file information
;

[SourceDisksNames]
1 = %DiskDesc%,,,

[SourceDisksFiles]
AppleSSD.sys = 1

[AppleSSD_CopyFiles]
AppleSSD.sys,,,1

[DestinationDirs]
DefaultDestDir = 12 ; DIRID_DRIVERS

[Manufacturer]
%APPLE%=APPLE,NTamd64

[AppleSSD_Service_Inst]
DisplayName    = %DevDesc1%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\AppleSSD.sys
LoadOrderGroup = SCSI Miniport
AddReg         = PnPsafe_PCI_AddReg
AddReg         = Parameters

[PnPsafe_PCI_AddReg]
HKR, "Parameters\PnpInterface", "5", %REG_DWORD%, 0x00000001
HKR, "Parameters", "BusType", %REG_DWORD%, 0x00000001

[AppleSSD_MSI_AddReg]
HKR,Interrupt Management,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,%REG_DWORD%,1

[Parameters]
HKR, Parameters\Device, MaxTranLenInPages, %REG_DWORD%, 0x00000040 ; Maximum Transfer Length in pages set to 256KB

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

[APPLE.NTamd64]
%DevDesc1% = AppleSSD_Inst, PCI\VEN_106B&CC_0180

[AppleSSD_Inst]
CopyFiles = AppleSSD_CopyFiles

[AppleSSD_Inst.Services]
AddService = AppleSSD, %SPSVCINST_ASSOCSERVICE%, AppleSSD_Service_Inst, AppleSSD_EventLog_Inst

[AppleSSD_Inst.HW]
AddReg = AppleSSD_MSI_AddReg

[AppleSSD_EventLog_Inst]
AddReg = AppleSSD_EventLog_AddReg


[Strings]
;Localizable Strings needed for HBA naming in Windows UI
APPLE = "Apple Inc."
DevDesc1 = "Apple Solid State Drive Device"
DiskDesc = "Disk 1"

;*******************************************
;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
