;
; __________________________________________________________________________
;|                                                                          |
;| Copyright, ST Microelectronics, Inc.                                     |
;| All Rights Reserved.                                                     |
;| This software contains the valuable trade secrets of ST Microelectronics.|
;| The software is protected under copyright laws as an unpublished work of |
;| ST Microelectronics. Notice is for informational purposes only and does  |
;| not imply publication. The user of this software may make copies of the  |
;| software for use with parts manufactured by ST Microelectronics or under |
;| license from ST Microelectronics and for no other use.                   |
;|__________________________________________________________________________|
;
; This is derived in part from the Microsoft WDF sample Toaster and PLX9x5x drivers, 
; Copyright (c) Microsoft Corporation.
;
;Module Name:
;
;    ST7007.INF
;
;Abstract:
;    INF file for installing ST7007 upper filter driver and function driver

[Version]
Signature   = "$WINDOWS NT$"
Class       = System
ClassGuid   = {4d36e97d-e325-11ce-bfc1-08002be10318}
Provider    = %STM%
CatalogFile = ST7007.cat
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%GPEDevice.DeviceDesc%
DriverVer=10/18/2012,2.0.0.40
;PnPLockDown = 1

[SourceDisksNames]
1 = %DISK_NAME%,,,

[SourceDisksFiles.x86]
st7007.sys = 1,i386,
WdfCoInstaller01009.dll=1,i386,

[SourceDisksFiles.amd64]
st7007.sys = 1,amd64,
WdfCoInstaller01009.dll=1,amd64,

[DestinationDirs]
DefaultDestDir = 12  ; DIRID_DRIVERS
GPEDevice_CoInstaller_CopyFiles = 11
GPEDevice_Copy = 12

;***********************************************
; GPE Device Function and Filter Install Section
;***********************************************

[Manufacturer]
%STM%=ST,ntx86,ntamd64

; For XP and later
[ST.ntx86]
; DisplayName                   Section           DeviceId
; -----------                   -------           --------
%GPEDevice.DeviceDesc%=         GPEDevice,        PCI\VEN_104a&DEV_7007 
; Dell requires subsystem ID and subvendor ID to be set - enable this (and remove the entry above) once their BIOS is ready
;%GPEDevice.DeviceDesc%=        GPEDevice,        PCI\VEN_104a&DEV_7007&SUBSYS_10280001

[ST.ntamd64]
; DisplayName                   Section           DeviceId
; -----------                   -------           --------
%GPEDevice.DeviceDesc%=         GPEDevice,        PCI\VEN_104a&DEV_7007 
; Dell requires subsystem ID and subvendor ID to be set - enable this (and remove the entry above) once their BIOS is ready
;%GPEDevice.DeviceDesc%=        GPEDevice,        PCI\VEN_104a&DEV_7007&SUBSYS_10280001

[GPEDevice.NT]
CopyFiles=GPEDevice_Copy

[GPEDevice_Copy]
ST7007.sys

[GPEDevice.NT.HW]
AddReg=GPEDevice_AddReg

[GPEDevice_AddReg]
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens
HKR,Interrupt Management,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,0x00010001,1

;*****************************************
; Service Section
;*****************************************

[GPEDevice.NT.Services]
; Do not specify SPSVCINST_ASSOCSERVICE on filter drivers
AddService = ST7007, %SPSVCINST_ASSOCSERVICE%, ST_GPE_Service_Inst

[ST_GPE_Service_Inst]
DisplayName     = %GPE.SVCDESC%
ServiceType     = 1               ; SERVICE_KERNEL_DRIVER
StartType       = 0               ; SERVICE_BOOT_START
ErrorControl    = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\ST7007.sys
LoadOrderGroup    = System Bus Extender

;*****************************************
; GPE_Device Coinstaller installation 
;*****************************************

[GPEDevice.NT.CoInstallers]
AddReg          = GPEDevice_CoInstaller_AddReg
CopyFiles       = GPEDevice_CoInstaller_CopyFiles

[GPEDevice_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[GPEDevice_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll


[GPEDevice.NT.Wdf]
KmdfService              = ST7007, ST7007_wdfsect

[ST7007_wdfsect]
KmdfLibraryVersion       = 1.9

[Strings]
SPSVCINST_ASSOCSERVICE   = 0x00000002
STM                      = "STMicroelectronics"
DISK_NAME                = "ST7007 Installation Disk"
GPEDevice.DeviceDesc 	 = "Dell Data Protection | Hardware Crypto Accelerator"
GPE.SVCDESC          	 = "ST7007 Encryption Device Driver"

