;/*++
;
; Copyright Lenovo 2005-2008, all rights reserved.
;
; Parties Service Access Device Driver INF
;
; Module Name:
;
;   Psadd.inf
;   =========
;
;   Date : Wednesday, 9 November, 2005 initial
;
;   6.1.1008.0-  uses {87da5330-1c08-11db-a98b-0800200c9a66}
;   6.1.1009.0+  uses {9d2fe6d0-9b76-11db-b606-0800200c9a66}
;
;   Usage : 1) \\winddk\6000\tools\devcon\*\devcon install Tvti2c.inf "{GUID}\psadd"
;           2) \\winddk\6000\tools\devcon\*\devcon remove "{GUID}\psadd"
;
;   or use the "psaainst.exe -install" to install under the package directory.
;
; Abstract:
;   INF file for installing PSA device drivers  (2000/XP/WS2K3/Vista/Vista64)
;
; History :
;
;   6.1.1012 - support more than 4G memory on windows vista 64bit system
;
;   6.1.1010 - add the WS2K3 for Lenovo China (May 2007)
;
;   6.1.1009 - logo'ed for driver icon fix (Mar 2007)
;
;   6.1.1008 - initial for Vista logo (Nov 2006)
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=SMDriver
ClassGuid={9d2fe6d0-9b76-11db-b606-0800200c9a66}
Provider=%Lenovo%
DriverVer=08/14/2008,6.1.1013.0
CatalogFile.NTx86   = psadd.cat
CatalogFile.NTAMD64 = psadd64.cat

[DestinationDirs]
DefaultDestDir = 12

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

[ClassInstall32]
Addreg=PsaddClassReg
;CopyFiles=PsaddClassInstallerCopyFiles

[PsaddClassReg]
HKR,,,0,%ClassName%
HKR,,IconPath,,"%systemroot%\\system32\\setupapi.dll,-27"
HKR,,DeviceCharacteristics,0x10001,0x100        ; Use same security checks on relative opens

;[Tvti2cClassInstallerCopyFiles]
;i2cw.dll

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

[Manufacturer]
%Lenovo%=Lenovo,NTx86, NTamd64

; For Win2K
[Lenovo]
%PsaddDevice.DeviceDesc%=Psadd_Device, {9d2fe6d0-9b76-11db-b606-0800200c9a66}\psadd

; For XP and later
[Lenovo.NTx86]
%PsaddDevice.DeviceDesc%=Psadd_Device, {9d2fe6d0-9b76-11db-b606-0800200c9a66}\psadd

[Lenovo.NTamd64]
%PsaddDevice.DeviceDesc%=Psadd_Device, {9d2fe6d0-9b76-11db-b606-0800200c9a66}\psadd


[Psadd_Device.NT]
CopyFiles=Psadd_Device.NT.Copy
FriendlyNameFormat=%FriendlyNameFormat%

[Psadd_Device.NT.Copy]
psadd.sys

[Psadd_Device.NT.HW]
AddReg=Psadd_Device.NT.HW.AddReg

[Psadd_Device.NT.HW.AddReg]
HKR,,"BeepCount",0x00010003,4

;-------------- Service installation

[Psadd_Device.NT.Services]
AddService = psadd, %SPSVCINST_ASSOCSERVICE%, psadd_Service_Inst

[psadd_Service_Inst]
DisplayName    = %psadd.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\psadd.sys
LoadOrderGroup = Extended Base

[SourceDisksFiles]
psadd.sys=1

[SourceDisksNames.x86]
1 = %DISK_NAME%,,,.\

[SourceDisksNames.amd64]
1 = %DISK_NAME%,,,\amd64

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
Lenovo = "Lenovo TVT SMBIOS"
ClassName = "SM Driver"
DISK_NAME = "Parties Service Access Installation Disk"
PsaddDevice.DeviceDesc = "SM bios service"
psadd.SVCDESC = "Lenovo Parties Service Access Device Driver"
FriendlyNameFormat = "PartiesServiceAccess%1!u!"
