;/*++
;
;Copyright (c) 2014-2019  QualComm Corporation
;
;Module Name:
;    qccamrearsensor6490.INF
;
;Abstract:
;    INF file for installing the Driver Frameworks Camera Sensor Driver
;
;Reference:
; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-copyfiles-directive
; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/using-dirids
; https://msdn.microsoft.com/en-us/library/dn756642(v=vs.85).aspx
;--*/

[Version]
Signature   = "$WINDOWS NT$"
Class=Camera
ClassGuid={ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
Provider    = %QC%
DriverVer = 10/02/2025,1.0.4444.9300
CatalogFile = qccamrearsensor6490.cat
PnpLockdown = 1

; ================= Class section =====================
[SourceDisksNames]
;
; A SourceDisksNames section identifies the distribution disks or CD-ROM discs that contain
; the source files to be transferred to the target computer during installation.
;
; diskid = disk-description[,[tag-or-cab-file],[unused],[path],[flags][,tag-file]]
;
; If the path value is omitted from an entry, files are assumed to be in the 
; installation root of the distribution disk.
;
0 = %Desc_x860%

[SourceDisksFiles]
;
; filename=diskid[,[ subdir][,size]]
; if no path directory was specified, in the installation root.
;
qccamrearsensor6490.sys           = 0


[DestinationDirs]
;
; [DefaultDestDir=dirid[,subdir]]
; [file-list-section=dirid[,subdir]]... 
; DIRIDs: 11, System directory; 12, Drivers directory
;
DefaultDestDir   = 13


;*****************************************
; Camera Sensor  Install Section
;*****************************************
[Manufacturer]
%QC%=QC, NTARM64.10.0...16299

[QC.NTARM64.10.0...16299]
%CameraRearSensor.DeviceDesc% = CameraRearSensor_Device, ACPI\QCOM0E26
%CameraRearSensor.DeviceDesc% = CameraRearSensor_Device, ACPI\VEN_QCOM&DEV_0E26

[Drivers_Dir]
qccamrearsensor6490.sys

[CameraRearSensor_Device.NT]
CopyFiles  = Drivers_Dir                   ; copy system file(s)
SubClass   = StillImage
DeviceType = 2

[CameraRearSensor_Device.NT.HW]
AddReg=CameraRearSensor_Device_Security_Reg
 
[CameraRearSensor_Device_Security_Reg]
HKR,,IQVersionYear,0x10001,2018
HKR,,IQVersionMonth,0x10001,6
HKR,,IQVersionRelease,0x10001,2
HKR,,DeviceCharacteristics,0x10001,0x100

;-------------- Service installation
[CameraRearSensor_Device.NT.Services]
AddService = CameraRearSensor,%SPSVCINST_ASSOCSERVICE%, CameraRearSensor_Service_Inst

; -------------- CameraRearSensor driver install sections
[CameraRearSensor_Service_Inst]
DisplayName    = %CameraRearSensor.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\qccamrearsensor6490.sys

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
QC                           = "Qualcomm Incorporated"
CameraRearSensor.DeviceDesc  = "Qualcomm(R) Spectra(TM) 395 ISP Camera Rear Sensor Device"
CameraRearSensor.SVCDESC     = "Qualcomm(R) Spectra(TM) 395 ISP Camera Rear Sensor Device"
ClassName                    = "Qualcomm Camera Rear Sensor Device"
Desc_x860                    = "Qualcomm Camera Rear Sensor Installation Disk"
