~ubuntu-branches/ubuntu/saucy/argyll/saucy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
;--------------------------------------------------------------------------
; Copyright 2010 Graeme W. Gill.
; 
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this file, to deal
; in this file without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of this file, and to permit persons to whom this file is
; furnished to do so, subject to the following conditions:
; 
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of this file.
; 
; THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THIS FILE OR THE USE OR OTHER DEALINGS IN
; THIS FILE.
;--------------------------------------------------------------------------

; ==== Strings ====

[Strings]

Provider            = "ArgyllCMS"
DeviceName          = "Eye-One Display 3 (Argyll)" 
Manufacturer        = "X-Rite"
VendorID            = "VID_0765"
ProductID           = "PID_5020"
DeviceGUID          = {b3e19540-cd53-11e0-aee4-0002a5d5c51b}
CatalogFile         = "i1Disp.cat"
CatalogFile_NTAMD64 = "i1Disp_x64.cat"

Date                = "03/18/2010"		; MM/DD/YYYY
libusb0ver          = "1.0.0.1"

Libusb_ClassName    = "Argyll LibUSB-1.0A devices"
Libusb_DiskName     = "LibUSB-1.0A Device Install Disk"

libusb0_SvcDesc     = "LibUSB-1.0A libusb0 - Kernel Driver 2010/3/18, 1.0.0.1"
ptlibusb0_SvcDesc   = "LibUSB-1.0A libusb0 - PT Kernel Driver 2010/3/18, 1.12.0.1"
WinUSB_SvcDesc      = "LibUSB-1.0A WinUSB Driver Service"

; These 8 determine which type of driver is installed & used for each platform:
; LIBUSB0_DEV   libusb0.sys kernel driver (Win2K to Win7, signing needed on 64 bit)
; PTLIBUSB0_DEV ptlibusb0.sys kernel driver (Win2K to Win7, signed by PRUFTECHNIK)
; WINUSBCO_DEV  Install & use latest WinUSB kernel driver (WinXP to Win7)
; WINUSB_DEV    Use installed WinUSB kernel driver (Vista to Win7) 

Default_Device      = "LIBUSB0_DEV"		; Default
NTx86.5.0_Device    = "LIBUSB0_DEV"		; 32 bit Win2K
NTx86.5.1_Device    = "WINUSBCO_DEV"		; 32 bit WinXP
NTamd64.5.1_Device  = "WINUSBCO_DEV"		; 64 bit WinXP
NTx86.6_Device      = "WINUSBCO_DEV"		; 32 bit Vista
NTamd64.6_Device    = "WINUSBCO_DEV"		; 64 bit Vista
NTx86.6.1_Device    = "WINUSBCO_DEV"		; 32 bit Win7
NTamd64.6.1_Device  = "WINUSBCO_DEV"		; 64 bit Win7

; ==== Version ====

[Version]
Signature = "$Windows NT$"
DriverVer = %Date%,%libusb0ver%
Provider  = %Provider%

; (Note the ClassGuid must not be quoted or a string substitution to work on Win2K)
Class               = %Libusb_ClassName%
ClassGuid           = {817cffe0-328b-11df-9b9f-0002a5d5c51b}	; Libusb V1.0A ClassGUID
CatalogFile         = %CatalogFile%
CatalogFile.NTAMD64 = %CatalogFile_NTAMD64%

[ClassInstall32]
AddReg=class_install_add_reg

[class_install_add_reg]
HKR,,,,%Libusb_ClassName%
HKR,,Icon,,"-20"	; -20 is for the USB icon

; ==== Manufacturer and Models ====

[Manufacturer]
%Manufacturer%=Devices,NTx86.5.0,NTx86.5.1,NTx86.5,NTamd64.5.1,NTamd64.5, \
                       NTx86.6,NTamd64.6,NTx86.6.1,NTamd64.6.1

; ==== Devices ====

[Devices]				; Default
%DeviceName% = %Default_Device%, USB\%VendorID%&%ProductID%

[Devices.NTx86.5.0]		; 32 bit Win2K 
%DeviceName% = %NTx86.5.0_Device%, USB\%VendorID%&%ProductID%

[Devices.NTx86.5.1]		; 32 bit WinXP
%DeviceName% = %NTx86.5.1_Device%, USB\%VendorID%&%ProductID%

[Devices.NTx86.5]		; 32 bit Windows Server 2003 etc.
%DeviceName% = %NTx86.5.1_Device%, USB\%VendorID%&%ProductID%

[Devices.NTamd64.5.1]	; 64 bit WinXP
%DeviceName% = %NTamd64.5.1_Device%, USB\%VendorID%&%ProductID%

[Devices.NTamd64.5]		; 64 bit Windows Server 2003 etc.
%DeviceName% = %NTamd64.5.1_Device%, USB\%VendorID%&%ProductID%

[Devices.NTx86.6]		; 32 bit Vista
%DeviceName% = %NTx86.6_Device%, USB\%VendorID%&%ProductID%

[Devices.NTamd64.6]		; 64 bit Vista
%DeviceName% = %NTamd64.6_Device%, USB\%VendorID%&%ProductID%

[Devices.NTx86.6.1]		; 32 bit Win7
%DeviceName% = %NTx86.6.1_Device%, USB\%VendorID%&%ProductID%

[Devices.NTamd64.6.1]	; 64 bit Win7
%DeviceName% = %NTamd64.6.1_Device%, USB\%VendorID%&%ProductID%


; ==== Files Sources and Destinations ====

[SourceDisksNames]
1 = %Libusb_DiskName%
2 = %Libusb_DiskName%,,,WinCoInstallers\x86
3 = %Libusb_DiskName%,,,WinCoInstallers\amd64

[SourceDisksFiles]
libusb0.sys = 1,,
libusb0_x64.sys = 1,,
ptlibusb0.sys = 1,,
ptlibusb0_x64.sys = 1,,
libusb-1.0A.dll = 1,,
libusb-1.0A_x64.dll = 1,,
WinUSBCoInstaller2.dll=2
WdfCoInstaller01009.dll=2

[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll=3
WdfCoInstaller01009.dll=3

[DestinationDirs]
libusb0_files_sys       = 10,system32\drivers
libusb0_files_sys_x64   = 10,system32\drivers
ptlibusb0_files_sys     = 10,system32\drivers
ptlibusb0_files_sys_x64 = 10,system32\drivers
Libusb_files_dll        = 10,system32
Libusb_files_dll_wow64  = 10,syswow64
Libusb_files_dll_x64    = 10,system32
CoInstallers_CopyFiles  = 11

[Libusb_files_dll]
libusb-1.0A.dll

[Libusb_files_dll_wow64]
libusb-1.0A.dll

[Libusb_files_dll_x64]
libusb-1.0A.dll,libusb-1.0A_x64.dll

; ==== libusb0 Device driver ====

[libusb0_files_sys]
libusb0.sys

[libusb0_files_sys_x64]
libusb0.sys,libusb0_x64.sys

; For each one of these, there must be one for Services !!!
[LIBUSB0_DEV]
CopyFiles = Libusb0_files_sys, Libusb_files_dll

[LIBUSB0_DEV.NTAMD64]
CopyFiles = libusb0_files_sys_x64, Libusb_files_dll_wow64, Libusb_files_dll_x64


[LIBUSB0_DEV.HW]
AddReg = libusb0_add_reg_hw


[libusb0_add_reg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,libusb0.sys

[libusb0_add_reg_hw]
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
HKR,,SurpriseRemovalOK,0x00010001,1				; Device properties

[LIBUSB0_DEV.Services]
AddService = libusb0, 0x00000002, libusb0_add_service

[LIBUSB0_DEV.NTAMD64.Services]
AddService = libusb0, 0x00000002, libusb0_add_service

[libusb0_add_service]
DisplayName    = %libusb0_SvcDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 0
ServiceBinary  = %12%\libusb0.sys

; ==== ptlibusb0 Device driver ====

[ptlibusb0_files_sys]
libusb0.sys,ptlibusb0.sys

[ptlibusb0_files_sys_x64]
libusb0.sys,ptlibusb0_x64.sys

; For each one of these, there must be one for Services !!!
[PTLIBUSB0_DEV]
CopyFiles = ptlibusb0_files_sys, Libusb_files_dll

[PTLIBUSB0_DEV.NTAMD64]
CopyFiles = ptlibusb0_files_sys_x64, Libusb_files_dll_wow64, Libusb_files_dll_x64


[PTLIBUSB0_DEV.HW]
AddReg = ptlibusb0_add_reg_hw


[ptlibusb0_add_reg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,libusb0.sys

[ptlibusb0_add_reg_hw]
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
HKR,,SurpriseRemovalOK,0x00010001,1				; Device properties

[PTLIBUSB0_DEV.Services]
AddService = libusb0, 0x00000002, ptlibusb0_add_service

[PTLIBUSB0_DEV.NTAMD64.Services]
AddService = libusb0, 0x00000002, ptlibusb0_add_service

[ptlibusb0_add_service]
DisplayName    = %ptlibusb0_SvcDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 0
ServiceBinary  = %12%\libusb0.sys


; ==== WinUSB Device driver with Coinstallers ====

; For each one of these, there must be one for Services !!!
[WINUSBCO_DEV]
CopyFiles = Libusb_files_dll
Include=winusb.inf
Needs=WINUSB.NT

[WINUSBCO_DEV.NTAMD64]
CopyFiles = Libusb_files_dll_wow64, Libusb_files_dll_x64
Include=winusb.inf
Needs=WINUSB.NT


[WINUSBCO_DEV.HW]
AddReg = WinUSB_add_reg_hw

[WINUSBCO_DEV.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_add_service

[WINUSBCO_DEV.NTAMD64.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_add_service

[WINUSBCO_DEV.Wdf]
KmdfService=WINUSB, WinUSB_Install

[WINUSBCO_DEV.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

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

[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01009.dll

; ==== WinUSB Device driver (No Coinstallers) ====

; For each one of these, there must be one for Services !!!
[WINUSB_DEV]
CopyFiles = Libusb_files_dll

[WINUSB_DEV.NTAMD64]
CopyFiles = Libusb_files_dll_wow64, Libusb_files_dll_x64


[WINUSB_DEV.HW]
AddReg = WinUSB_add_reg_hw

[WINUSB_DEV.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_add_service

[WINUSB_DEV.NTAMD64.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_add_service

[WINUSB_DEV.Wdf]
KmdfService=WINUSB, WinUSB_Install

[WinUSB_Install]
KmdfLibraryVersion=1.9

[WinUSB_add_reg_hw]
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
HKR,,SurpriseRemovalOK,0x00010001,1				; Device properties

[WinUSB_add_service]
DisplayName     = %WinUSB_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys