;cyhid.inf
;Installation file for Cypress Semiconductor Inc.'s CYHID.SYS, Trackpad HID Device Driver
; Copyright (c) Cypress Semiconductor, Inc., April 2009, Feb 2010
;

[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
CatalogFile=cyhid.cat
DriverVer=12/04/2013,2.5.1.65

[SourceDisksNames]
1 = %DISK_NAME%, cyhid.sys,,

[SourceDisksFiles]
CYHID.sys = 1

[DestinationDirs]
CopyFilesSYS = 12     ;
CopyFilesDLL = 11     ; %SystemRoot%\system

[Manufacturer]
%VENDOR%=Vendor, NTx86, NTamd64, NTamd64.6, NTx86.6

; For Win2K
[Vendor]
%CyHidVirtual% = CyHidVirtual.Inst, {DB743776-404E-4E3B-A236-15BF7E87353A}\HID_DEVICE
%CyHidDevice%  = CyHidDevice.Inst,  HID\CypressVirtualHIDDevice

; For XP
[Vendor.NTx86]
%CyHidVirtual% = CyHidVirtual.Inst, {DB743776-404E-4E3B-A236-15BF7E87353A}\HID_DEVICE
%CyHidDevice%  = CyHidDevice.Inst,  HID\CypressVirtualHIDDevice

; For XP 64
[Vendor.NTamd64]
%CyHidVirtual% = CyHidVirtual.Inst, {DB743776-404E-4E3B-A236-15BF7E87353A}\HID_DEVICE
%CyHidDevice%  = CyHidDevice.Inst,  HID\CypressVirtualHIDDevice

; Vista/WIN7 64
[Vendor.NTamd64.6]
%CyHidVirtual% = CyHidVirtual.Inst.NTamd64.6, {DB743776-404E-4E3B-A236-15BF7E87353A}\HID_DEVICE
%CyHidDevice%  = CyHidDevice.Inst.NTamd64.6,  HID\CypressVirtualHIDDevice

; Vista/WIN7 32
[Vendor.NTx86.6]
%CyHidVirtual% = CyHidVirtual.Inst.NTx86.6, {DB743776-404E-4E3B-A236-15BF7E87353A}\HID_DEVICE
%CyHidDevice%  = CyHidDevice.Inst.NTx86.6,  HID\CypressVirtualHIDDevice


[ControlFlags]
ExcludeFromSelect  = HID\CypressVirtualHIDDevice

;===============================================================
;   cyhid (Root Enumerated Hid Device) install section
;===============================================================

;---------------------------------------------------------------------
; Install Section for VISTA/WIN7 64bit
;---------------------------------------------------------------------
[CyHidVirtual.Inst.NTamd64.6]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[CyHidVirtual.Inst.NTamd64.6.Services]
AddService = cyhid,0x00000002,cyhid_Service_Inst,

[CyHidVirtual.Inst.NTamd64.6.HW]
AddReg = cyhid_Parameters.Vista.AddReg 




;---------------------------------------------------------------------
; Install Section for XP 64bit
;---------------------------------------------------------------------
[CyHidVirtual.Inst.NTamd64]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[CyHidVirtual.Inst.NTamd64.Services]
AddService = cyhid,0x00000002,cyhid_Service_Inst,

[CyHidVirtual.Inst.NTamd64.HW]
AddReg = cyhid_Parameters.Vista.AddReg 

;---------------------------------------------------------------------
; Install Section for Vista/WIN7 32bit
;---------------------------------------------------------------------
[CyHidVirtual.Inst.ntx86.6]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[CyHidVirtual.Inst.ntx86.6.Services]
AddService = cyhid,0x00000002,cyhid_Service_Inst,

[CyHidVirtual.Inst.ntx86.6.HW]
AddReg = cyhid_Parameters.Vista.AddReg

;---------------------------------------------------------------------
; Install Section for XP 32
;---------------------------------------------------------------------
[CyHidVirtual.Inst.nt]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[CyHidVirtual.Inst.nt.Services]
AddService = cyhid,0x00000002,cyhid_Service_Inst,

[CyHidVirtual.Inst.nt.HW]
AddReg = cyhid_Parameters.AddReg


[CopyFilesSYS]
cyhid.sys

[CopyFilesDLL]

;
;	XP 32/64 REGISTRY INSTALL SECTION
;
[CyHid_Parameters.AddReg]

;
;   This is the rate at which the HidClass driver will be allowed to grab
;   report data from our driver.  Takes the HW device's report rate into account. Expressed in Milliseconds
;
HKR,,"HidReportRateMsecs",%REG_DWORD%, %HID_REPORT_RATE_MSECS%


;----------------------------------------------------------------------------------------------------------
;   
;  Touchpad USB Bus Interface Parameters
;
;----------------------------------------------------------------------------------------------------------
;
;	Touchpad HW Device USB Ids
;
HKR,,"USBVendorId",%REG_DWORD%, %VID%
HKR,,"USBProductId",%REG_DWORD%, %PID%

HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"cyhid.sys"

;
;	VISTA/WIN7 32/64 REGISTRY INSTALL SECTION
;
[CyHid_Parameters.Vista.AddReg]

;
;   This is the rate at which the HidClass driver will be allowed to grab
;   report data from our driver.  Takes the HW device's report rate into account. Expressed in Milliseconds
;
HKR,,"HidReportRateMsecs",%REG_DWORD%, %HID_REPORT_RATE_MSECS%



;----------------------------------------------------------------------------------------------------------
;   
;  Touchpad USB Bus Interface Parameters
;
;----------------------------------------------------------------------------------------------------------
;
;	Touchpad HW Device USB Ids
;
HKR,,"USBVendorId",%REG_DWORD%, %VID%
HKR,,"USBProductId",%REG_DWORD%, %PID%

HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"cyhid.sys"

[cyhid_Service_Inst]
DisplayName    = %CyHidVirtual%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\cyhid.sys 

;===============================================================
;   CyHidDevice (Virtual Hid Device) install section
; - Only a Null service is installed.
;===============================================================
;[CyHidDevice.Inst]

[CyHidDevice.Inst.NTamd64.6]
[CyHidDevice.Inst.NTamd64.6.HW]
[CyHidDevice.Inst.NTamd64.6.SERVICES]
AddService = ,0x00000002,   ; NULL Service

[CyHidDevice.Inst.ntx86.6]
[CyHidDevice.Inst.ntx86.6.HW]
[CyHidDevice.Inst.ntx86.6.SERVICES]
AddService = ,0x00000002,   ; NULL Service


[CyHidDevice.Inst.NTamd64]
[CyHidDevice.Inst.NTamd64.HW]
[CyHidDevice.Inst.NTamd64.SERVICES]
AddService = ,0x00000002,   ; NULL Service

[CyHidDevice.Inst.NT]
[CyHidDevice.Inst.NT.HW]
[CyHidDevice.Inst.NT.Services]
AddService = ,0x00000002,   ; NULL Service


;================================================================
[Strings] 
;  *******Product Info Strings******* 
VENDOR         = "Cypress Semiconductor, Inc." 
CyHidVirtual   = "Cypress Input Device" 
CyHidDevice    = "Cypress Trackpad" 
DISK_NAME      = "Cypress Trackpad Install Disk"

;  *******Driver Function Strings******* 

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 

SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

;  *******Data Type Strings******* 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000

; 1204 = 0x04b4
VID=1204
PID = 0x1337


HID_REPORT_RATE_MSECS = 100

