;/*++
;
;Copyright (c) 2012 by QUALCOMM, Incorporated.  All Rights Reserved.
;

;Module Name:
;    qccdi850.INF
;
;Abstract:
;    INF file for installing the Crashdump Injector Driver
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=SYSTEM
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%QUALCOMM%
CatalogFile=qccdi850.cat
DriverVer = 05/29/2019,1.0.10620.0000
PnpLockDown=1

[DestinationDirs]
DefaultDestDir = 13

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

[SourceDisksFiles]
qccdi850.sys  = 1,,

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

[Manufacturer]
%ManufacturerName%=Standard,NTARM64

[Standard.NTARM64]
%QCCDI.DeviceDesc%=QCCDI_Device, ACPI\QCOM026C

;/*
;Added WDTFSOCDeviceCategory Property to mark as not PnP Removable for HLK tests
;*/
[QCCDI_Device.NT]
CopyFiles=Drivers_Dir
AddProperty = WDTFSOCDeviceCategory
Reboot

[QCCDI_Device.NT.HW]
AddReg=CDIACL,QCCDISSDumpRegions_common,QCCDISSDumpRegions_850

[CDIACL]
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"

[QCCDIReg_common]
HKR,Parameters,"PreserveOld",%REG_DWORD%,00
HKR,Parameters,"DumpSubFolder",%REG_SZ%,"ssr_dumps"
HKR,Parameters,"DumpRoot",%REG_SZ%,"%24%\Qualcomm\"

; splitting chipset specific registries
;commenting below registries as feature support not confirmed.
;TODO : investigate if below flags applicable for current chips

[QCCDIReg_850]
;HKR,Parameters, ArmWDForSSDumps,%REG_DWORD%,1
HKR,Parameters, WDBaseAddress,%REG_DWORD%,0x17980000
;HKR,Parameters, SuppressCPUClockForDump,%REG_DWORD%,1
HKR,Parameters, MiniDumpConfigRegAddr,%REG_DWORD%,0x01FD3000
HKR,Parameters, MiniDumpConfigRegValue,%REG_DWORD%,0x20

[QCCDISSDumpRegions_common]
HKR,MEMRUNS\SHAREDIMEM,GUID,%REG_SZ%,"{6FAE2F68-3B80-4931-8E0E-E30A3580F14C}" 
HKR,MEMRUNS\SHAREDIMEM,CDIDumpType,%REG_DWORD%,0 
HKR,MEMRUNS\SHAREDIMEM,UnlockType,%REG_DWORD%,0

HKR,MEMRUNS\HYP_LOG,GUID,%REG_SZ%,"{2d79304a-543b-4147-bf69-465bbdd69fe0}" 
HKR,MEMRUNS\HYP_LOG,CDIDumpType,%REG_DWORD%,0 
HKR,MEMRUNS\HYP_LOG,UnlockType,%REG_DWORD%,0

HKR,MEMRUNS\TZ_LOG,GUID,%REG_SZ%,"{AA795F4D-3B0A-44A4-BB84-B7ECF3EE056A}" 
HKR,MEMRUNS\TZ_LOG,CDIDumpType,%REG_DWORD%,0 
HKR,MEMRUNS\TZ_LOG,UnlockType,%REG_DWORD%,0

[QCCDISSDumpRegions_850]
HKR,MEMRUNS\AMSS,GUID,%REG_SZ%,"{936dc601-5530-4b82-9d2a-72a488bec7c1}" 
HKR,MEMRUNS\AMSS,CDIDumpType,%REG_DWORD%,2 ; CDI_DUMP_TYPE_IGNORE_IN_OCD_ENABLE_IN_MINI_DUMP

HKR,MEMRUNS\ADSP,GUID,%REG_SZ%,"{d58464d3-5b28-4ea6-a2e2-e8e57c5c69b8}" 
HKR,MEMRUNS\ADSP,CDIDumpType,%REG_DWORD%,2 ; CDI_DUMP_TYPE_IGNORE_IN_OCD_ENABLE_IN_MINI_DUMP

HKR,MEMRUNS\SCSS,GUID,%REG_SZ%,"{53435353-1638-47e0-bb6d-0a646b8628bf}" 
HKR,MEMRUNS\SCSS,CDIDumpType,%REG_DWORD%,2 ; CDI_DUMP_TYPE_IGNORE_IN_OCD_ENABLE_IN_MINI_DUMP

HKR,MEMRUNS\CDSP,GUID,%REG_SZ%,"{6169B2D4-1B44-41A0-95Cf-8Df8D8DD050D}" 
HKR,MEMRUNS\CDSP,CDIDumpType,%REG_DWORD%,2 ; CDI_DUMP_TYPE_IGNORE_IN_OCD_ENABLE_IN_MINI_DUMP

HKR,MEMRUNS\SHAREDIMEM,NumMemRuns,%REG_DWORD%,1
HKR,MEMRUNS\SHAREDIMEM\1,BaseAddress,%REG_DWORD%,0x146BF000
HKR,MEMRUNS\SHAREDIMEM\1,Size,%REG_DWORD%,0x1000

HKR,MEMRUNS\TZ_LOG,NumMemRuns,%REG_DWORD%,1
HKR,MEMRUNS\TZ_LOG\1,BaseAddress,%REG_DWORD%,0x146BF720
HKR,MEMRUNS\TZ_LOG\1,Size,%REG_DWORD%,0x2000

HKR,MEMRUNS\HYP_LOG,NumMemRuns,%REG_DWORD%,1
HKR,MEMRUNS\HYP_LOG\1,BaseAddress,%REG_DWORD%,0x146BFB30
HKR,MEMRUNS\HYP_LOG\1,Size,%REG_DWORD%,0x2000



;/*
;Added WDTFSOCDeviceCategory Params to mark as not PnP Removable for HLK tests
;*/
[Drivers_Dir]
qccdi850.sys
[WDTFSOCDeviceCategory]
{5D078032-6378-437B-8DA5-9B32B7CA3FDD},2,7,,2

;-------------- Service installation
[QCCDI_Device.NT.Services]
AddService = QCCDI,%SPSVCINST_ASSOCSERVICE%, QCCDI_Service_Inst

; -------------- QCCDI driver install sections
[QCCDI_Service_Inst]
DisplayName    = %QCCDI.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\qccdi850.sys
AddReg         = QCCDIReg_common, QCCDIReg_850

[QCCDI_Device.NT.Wdf]
KmdfService = QCCDI, QCCDI_wdfsect

[QCCDI_wdfsect]
KmdfLibraryVersion = 1.11

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Qualcomm Incorporated"                                      
DiskName = "Qualcomm Crash Dump Injector Installation Disk"
QCCDI.DeviceDesc = "Qualcomm Crash Dump Injector Device"
QCCDI.SVCDESC = "Qualcomm Crash Dump Injector Service"
QUALCOMM = "Qualcomm Incorporated"  
REG_SZ                 = 0x00000000
REG_DWORD              = 0x00010001
