[IBBUS] added support for creating vendor defined devices.
[mirror/winof/.git] / hw / mlx4 / kernel / hca / mlx4_hca.inx
1 ; Mellanox Technologies InfiniBand HCAs.\r
2 ; Copyright 2008 Mellanox Technologies all Rights Reserved.\r
3 \r
4 [Version]\r
5 Signature="$WINDOWS NT$"\r
6 Class=InfiniBandController\r
7 ClassGUID={58517E00-D3CF-40c9-A679-CEE5752F4491}\r
8 Provider=%MTL%\r
9 ; must be synchronized with hca\drv.c\r
10 DriverVer=02/01/2008,1.0.0.0\r
11 CatalogFile=mlx4_hca.cat\r
12 \r
13 \r
14 ;*****************************************\r
15 ; Destination directory section\r
16 ;*****************************************\r
17 \r
18 [DestinationDirs]\r
19 DefaultDestDir = %DIRID_DRIVERS%\r
20 MLX4HCA.UMCopyFiles = %DIRID_SYSTEM%\r
21 MLX4HCA.WOW64CopyFiles = %DIRID_SYSTEM_X86%\r
22 Wdf_CoInstaller_CopyFiles = %DIRID_SYSTEM%\r
23 Ibal.UMCopyFiles = %DIRID_SYSTEM%\r
24 Ibal.WOW64CopyFiles = %DIRID_SYSTEM_X86%\r
25 WinVerbs.CopySysFiles = %DIRID_DRIVERS%\r
26 WinVerbs.CopyDllFiles = %DIRID_SYSTEM%\r
27 WinMad.CopySysFiles = %DIRID_DRIVERS%\r
28 WinMad.CopyDllFiles = %DIRID_SYSTEM%\r
29 \r
30 \r
31 ;*****************************************\r
32 ; Class Install section\r
33 ;*****************************************\r
34 \r
35 [ClassInstall32]\r
36 AddReg=ClassAddReg\r
37 \r
38 [ClassAddReg]\r
39 HKR,,,,"InfiniBand Channel Adapters"\r
40 HKR,,Icon,,-5\r
41 HKR,,SilentInstall,,1\r
42 HKR,,"UpperFilters",0x00010000,"ibbus"  ; enable IBBUS/AL Filter driver loading.\r
43 HKR,,"UpperFilters",0x00010008,"WinVerbs" ; enable winverbs Filter driver load.\r
44 HKR,,"UpperFilters",0x00010008,"WinMad"\r
45 \r
46 \r
47 ;*****************************************\r
48 ; Device Install section\r
49 ;*****************************************\r
50 \r
51 [SourceDisksNames.x86]\r
52 1=%DiskId%,,,""\r
53 \r
54 [SourceDisksNames.amd64]\r
55 1=%DiskId%,,,""\r
56 \r
57 [SourceDisksNames.ia64]\r
58 1=%DiskId%,,,""\r
59 \r
60 [SourceDisksFiles.x86]\r
61 mlx4_hca.sys = 1,,\r
62 mlx4u.dll = 1,,\r
63 mlx4ud.dll = 1,,\r
64 WdfCoInstaller01007.dll = 1,,\r
65 ibal.dll=1,,\r
66 ibald.dll=1,,\r
67 complib.dll=1,,\r
68 complibd.dll=1,,\r
69 ibbus.sys=1,,\r
70 winverbs.sys = 1,,\r
71 winverbs.dll = 1,,\r
72 winverbsd.dll = 1,,\r
73 winmad.sys = 1,,\r
74 winmad.dll = 1,,\r
75 winmadd.dll = 1,,\r
76 \r
77 [SourceDisksFiles.amd64]\r
78 mlx4_hca.sys = 1,,\r
79 mlx4u.dll = 1,,\r
80 mlx4ud.dll = 1,,\r
81 mlx4u32.dll = 1,,\r
82 mlx4u32d.dll = 1,,\r
83 WdfCoInstaller01007.dll = 1,,\r
84 ibal.dll=1,,\r
85 ibald.dll=1,,\r
86 complib.dll=1,,\r
87 complibd.dll=1,,\r
88 cl32.dll=1,,\r
89 cl32d.dll=1,,\r
90 ibal32.dll=1,,\r
91 ibal32d.dll=1,,\r
92 ibbus.sys=1,,\r
93 winverbs.sys = 1,,\r
94 winverbs.dll = 1,,\r
95 winverbsd.dll = 1,,\r
96 winmad.sys = 1,,\r
97 winmad.dll = 1,,\r
98 winmadd.dll = 1,,\r
99 \r
100 [SourceDisksFiles.ia64]\r
101 mlx4_hca.sys = 1,,\r
102 mlx4u.dll = 1,,\r
103 mlx4ud.dll = 1,,\r
104 mlx4u32.dll = 1,,\r
105 mlx4u32d.dll = 1,,\r
106 WdfCoInstaller01007.dll = 1,,\r
107 ibal.dll=1,,\r
108 ibald.dll=1,,\r
109 complib.dll=1,,\r
110 complibd.dll=1,,\r
111 cl32.dll=1,,\r
112 cl32d.dll=1,,\r
113 ibal32.dll=1,,\r
114 ibal32d.dll=1,,\r
115 ibbus.sys=1,,\r
116 winverbs.sys = 1,,\r
117 winverbs.dll = 1,,\r
118 winverbsd.dll = 1,,\r
119 winmad.sys = 1,,\r
120 winmad.dll = 1,,\r
121 winmadd.dll = 1,,\r
122 \r
123 \r
124 ;*****************************************\r
125 ; Mlx4HCA  Install Section\r
126 ;*****************************************\r
127 \r
128 [Manufacturer]\r
129 %MTL% = MLX4HCA.DeviceSection,ntx86,ntamd64,ntia64\r
130 \r
131 [MLX4HCA.DeviceSection]\r
132 ; empty since we don't support W9x/Me\r
133 \r
134 [MLX4HCA.DeviceSection.ntx86]\r
135 %Mlx4_Hca.DeviceDesc%=MLX4HCA.DDInstall, MLX4\ConnectX_Hca\r
136 \r
137 [MLX4HCA.DeviceSection.ntamd64]\r
138 %Mlx4_Hca.DeviceDesc%=MLX4HCA.DDInstall, MLX4\ConnectX_Hca\r
139 \r
140 [MLX4HCA.DeviceSection.ntia64]\r
141 %Mlx4_Hca.DeviceDesc%=MLX4HCA.DDInstall, MLX4\ConnectX_Hca\r
142 \r
143 [MLX4HCA.DDInstall.ntx86]\r
144 CopyFiles = MLX4HCA.CopyFiles\r
145 CopyFiles = MLX4HCA.UMCopyFiles\r
146 CopyFiles = Ibal.UMCopyFiles\r
147 CopyFiles = Ibbus.CopyFiles\r
148 CopyFiles = WinVerbs.CopySysFiles\r
149 CopyFiles = WinVerbs.CopyDllFiles\r
150 CopyFiles = WinMad.CopySysFiles\r
151 CopyFiles = WinMad.CopyDllFiles\r
152 \r
153 [MLX4HCA.DDInstall.ntamd64]\r
154 CopyFiles = MLX4HCA.CopyFiles\r
155 CopyFiles = MLX4HCA.UMCopyFiles\r
156 CopyFiles = MLX4HCA.WOW64CopyFiles\r
157 CopyFiles = Ibal.UMCopyFiles\r
158 CopyFiles = Ibal.WOW64CopyFiles\r
159 CopyFiles = Ibbus.CopyFiles\r
160 CopyFiles = WinVerbs.CopySysFiles\r
161 CopyFiles = WinVerbs.CopyDllFiles\r
162 CopyFiles = WinMad.CopySysFiles\r
163 CopyFiles = WinMad.CopyDllFiles\r
164 \r
165 [MLX4HCA.DDInstall.ntia64]\r
166 CopyFiles = MLX4HCA.CopyFiles\r
167 CopyFiles = MLX4HCA.UMCopyFiles\r
168 CopyFiles = MLX4HCA.WOW64CopyFiles\r
169 CopyFiles = Ibal.UMCopyFiles\r
170 CopyFiles = Ibal.WOW64CopyFiles\r
171 CopyFiles = Ibbus.CopyFiles\r
172 CopyFiles = WinVerbs.CopySysFiles\r
173 CopyFiles = WinVerbs.CopyDllFiles\r
174 CopyFiles = WinMad.CopySysFiles\r
175 CopyFiles = WinMad.CopyDllFiles\r
176 \r
177 \r
178 [MLX4HCA.DDInstall.ntx86.Services]\r
179 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog\r
180 AddService = ibbus,,Ibbus.ServiceInstall\r
181 AddService = WinVerbs,,WinVerbs.ServiceInstall\r
182 AddService = WinMad,,WinMad.ServiceInstall\r
183 \r
184 [MLX4HCA.DDInstall.ntamd64.Services]\r
185 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog\r
186 AddService = ibbus,,Ibbus.ServiceInstall\r
187 AddService = WinVerbs,,WinVerbs.ServiceInstall\r
188 AddService = WinMad,,WinMad.ServiceInstall\r
189 \r
190 [MLX4HCA.DDInstall.ntia64.Services]\r
191 AddService = mlx4_hca,%SPSVCINST_ASSOCSERVICE%,MLX4HCA.ServiceInstall,MLX4HCA.EventLog\r
192 AddService = ibbus,,Ibbus.ServiceInstall\r
193 AddService = WinVerbs,,WinVerbs.ServiceInstall\r
194 AddService = WinMad,,WinMad.ServiceInstall\r
195 \r
196 \r
197 ;*****************************************\r
198 ; File Copy\r
199 ;*****************************************\r
200 \r
201 [MLX4HCA.CopyFiles]\r
202 mlx4_hca.sys\r
203 \r
204 [MLX4HCA.UMCopyFiles]\r
205 mlx4u.dll,,,2\r
206 mlx4ud.dll,,,2\r
207 \r
208 [MLX4HCA.WOW64CopyFiles]\r
209 mlx4u.dll,mlx4u32.dll,,2\r
210 mlx4ud.dll,mlx4u32d.dll,,2\r
211 \r
212 [Ibal.UMCopyFiles]\r
213 ibal.dll,,,2\r
214 ibald.dll,,,2\r
215 complib.dll,,,2\r
216 complibd.dll,,,2\r
217 \r
218 [Ibal.WOW64CopyFiles]\r
219 ibal.dll,ibal32.dll,,2\r
220 ibald.dll,ibal32d.dll,,2\r
221 complib.dll,cl32.dll,,2\r
222 complibd.dll,cl32d.dll,,2\r
223 \r
224 [Ibbus.CopyFiles]\r
225 ibbus.sys\r
226 \r
227 [WinVerbs.CopySysFiles]\r
228 winverbs.sys\r
229 \r
230 [WinVerbs.CopyDllFiles]\r
231 winverbs.dll,,,2\r
232 winverbsd.dll,,,2\r
233 \r
234 [WinMad.CopySysFiles]\r
235 winmad.sys\r
236 \r
237 [WinMad.CopyDllFiles]\r
238 winmad.dll,,,2\r
239 winmadd.dll,,,2\r
240 \r
241 \r
242 ;*****************************************\r
243 ; MLX4HCA Service Install section\r
244 ;*****************************************\r
245 \r
246 [MLX4HCA.ServiceInstall]\r
247 DisplayName     = %MLX4HCA.ServiceDesc%\r
248 ServiceType     = %SERVICE_KERNEL_DRIVER%\r
249 StartType       = %SERVICE_DEMAND_START%\r
250 ErrorControl    = %SERVICE_ERROR_NORMAL%\r
251 ServiceBinary   = %12%\mlx4_hca.sys\r
252 LoadOrderGroup  = extended base\r
253 AddReg          = MLX4HCA.ParamsReg\r
254 \r
255 [MLX4HCA.EventLog]\r
256 AddReg = MLX4HCA.AddEventLogReg\r
257 \r
258 [MLX4HCA.AddEventLogReg]\r
259 HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\mlx4_hca.sys"\r
260 HKR, , TypesSupported,   0x00010001, 7\r
261 \r
262 [MLX4HCA.ParamsReg]\r
263 HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens\r
264 HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system \r
265 HKR,"Parameters","DebugLevel",%REG_DWORD%,0x00000003\r
266 HKR,"Parameters","DebugFlags",%REG_DWORD%,0x0000ffff\r
267 HKLM,"System\CurrentControlSet\Control\WMI\GlobalLogger\F8C96A49-AE22-41e9-8025-D7E416884D89","Flags",%REG_DWORD%,0xffff\r
268 HKLM,"System\CurrentControlSet\Control\WMI\GlobalLogger\F8C96A49-AE22-41e9-8025-D7E416884D89","Level",%REG_DWORD%,0x3\r
269 \r
270 \r
271 ;*****************************************\r
272 ; IBBUS Service Install section\r
273 ;*****************************************\r
274 \r
275 [Ibbus.ServiceInstall]\r
276 DisplayName     = %Ibbus.ServiceDesc%\r
277 ServiceType     = %SERVICE_KERNEL_DRIVER%\r
278 StartType       = %SERVICE_DEMAND_START%\r
279 ErrorControl    = %SERVICE_ERROR_NORMAL%\r
280 ServiceBinary   = %12%\ibbus.sys\r
281 LoadOrderGroup  = PnP Filter\r
282 AddReg          = Ibbus.ParamsReg\r
283 Dependencies    = mlx4_hca\r
284 \r
285 [Ibbus.ParamsReg]\r
286 HKR,"Parameters","IbalDebugLevel",%REG_DWORD%,2\r
287 HKR,"Parameters","IbalDebugFlags",%REG_DWORD%,0x00ffffff\r
288 HKR,"Parameters","SmiPollInterval",%REG_DWORD_NO_CLOBBER%,20000\r
289 HKR,"Parameters","IocQueryTimeout",%REG_DWORD_NO_CLOBBER%,250\r
290 HKR,"Parameters","IocQueryRetries",%REG_DWORD_NO_CLOBBER%,4\r
291 HKR,"Parameters","IocPollInterval",%REG_DWORD_NO_CLOBBER%,30000\r
292 HKR,"Parameters","DebugFlags",%REG_DWORD%,0x80000000\r
293 HKR,"Parameters","ReportPortNIC",%REG_DWORD%,1\r
294 \r
295 HKR,"Parameters","StaticChild",%REG_MULTI_SZ%,IPoIB\r
296 ;use the following line to add your device\r
297 ;HKR,"Parameters","StaticChild",%REG_MULTI_SZ_APPEND%,"XsigoBus"\r
298 \r
299 HKR,"Parameters\IPoIB","DeviceId",%REG_SZ%,"IBA\IPoIB"\r
300 HKR,"Parameters\IPoIB","CompatibleId",%REG_MULTI_SZ%,"IBA\SID_1000066a00020000"\r
301 HKR,"Parameters\IPoIB","HardwareId",%REG_MULTI_SZ%,"IBA\IPoIB"\r
302 HKR,"Parameters\IPoIB","Description",%REG_SZ%,"OpenIB IPoIB Adapter"\r
303 HKR,"Parameters\IPoIB","PartitionKey",%REG_SZ%,"FFFF"\r
304 \r
305 HKR,"Parameters\XsigoBus","DeviceId",%REG_SZ%,"IBA\XsigoBus"\r
306 HKR,"Parameters\XsigoBus","CompatibleId",%REG_MULTI_SZ%,"IBA\SID_0000000002139702"\r
307 HKR,"Parameters\XsigoBus","HardwareId",%REG_MULTI_SZ%,"IBA\XsigoBus"\r
308 HKR,"Parameters\XsigoBus","Description",%REG_SZ%,"Xsigo Virtual Bus"\r
309 HKR,"Parameters\XsigoBus","PartitionKey",%REG_SZ%,"FFFF"\r
310 \r
311 ;*****************************************\r
312 ; WinVerbs Service Install section\r
313 ;*****************************************\r
314 \r
315 [WinVerbs.ServiceInstall]\r
316 DisplayName = %WinVerbs.ServiceDesc%\r
317 ServiceType = %SERVICE_KERNEL_DRIVER%\r
318 StartType = %SERVICE_DEMAND_START%\r
319 ErrorControl = %SERVICE_ERROR_NORMAL%\r
320 ServiceBinary  = %12%\winverbs.sys\r
321 LoadOrderGroup = PNP Filter\r
322 Dependencies   = ibbus\r
323 \r
324 ;*****************************************\r
325 ; WinMad Service Install section\r
326 ;*****************************************\r
327 \r
328 [WinMad.ServiceInstall]\r
329 DisplayName = %WinMad.ServiceDesc%\r
330 ServiceType = %SERVICE_KERNEL_DRIVER%\r
331 StartType = %SERVICE_DEMAND_START%\r
332 ErrorControl = %SERVICE_ERROR_NORMAL%\r
333 ServiceBinary  = %12%\winmad.sys\r
334 LoadOrderGroup = PNP Filter\r
335 Dependencies   = winverbs\r
336 \r
337 \r
338 ;*****************************************\r
339 ; Uninstall section (not used now)\r
340 ;*****************************************\r
341 \r
342 [DefaultUninstall.ntx86]\r
343 DelFiles   = MLX4HCA.CopyFiles\r
344 DelFiles   = MLX4HCA.UMCopyFiles\r
345 DelReg     = MLX4HCA.ParamsReg\r
346 DelReg     = MLX4HCA.AddEventLogReg\r
347 DelReg     = ClassAddReg\r
348 DelFiles   = Ibal.UMCopyFiles\r
349 DelFiles   = Ibbus.CopyFiles\r
350 DelReg     = Ibbus.ParamsReg\r
351 DelFiles   = WinVerbs.CopySysFiles\r
352 DelFiles   = WinVerbs.CopyDllFiles\r
353 DelFiles   = WinMad.CopySysFiles\r
354 DelFiles   = WinMad.CopyDllFiles\r
355 \r
356 [DefaultUninstall.ntamd64]\r
357 DelFiles   = MLX4HCA.CopyFiles\r
358 DelFiles   = MLX4HCA.UMCopyFiles\r
359 DelFiles   = MLX4HCA.WOW64CopyFiles\r
360 DelReg     = MLX4HCA.ParamsReg\r
361 DelReg     = MLX4HCA.AddEventLogReg\r
362 DelReg     = ClassAddReg\r
363 DelFiles   = Ibal.UMCopyFiles\r
364 DelFiles   = Ibal.WOW64CopyFiles\r
365 DelFiles   = Ibbus.CopyFiles\r
366 DelReg     = Ibbus.ParamsReg\r
367 DelFiles   = WinVerbs.CopySysFiles\r
368 DelFiles   = WinVerbs.CopyDllFiles\r
369 DelFiles   = WinMad.CopySysFiles\r
370 DelFiles   = WinMad.CopyDllFiles\r
371 \r
372 [DefaultUninstall.ntia64]\r
373 DelFiles   = MLX4HCA.CopyFiles\r
374 DelFiles   = MLX4HCA.UMCopyFiles\r
375 DelFiles   = MLX4HCA.WOW64CopyFiles\r
376 DelReg     = MLX4HCA.ParamsReg\r
377 DelReg     = MLX4HCA.AddEventLogReg\r
378 DelReg     = ClassAddReg\r
379 DelFiles   = Ibal.UMCopyFiles\r
380 DelFiles   = Ibal.WOW64CopyFiles\r
381 DelFiles   = Ibbus.CopyFiles\r
382 DelReg     = Ibbus.ParamsReg\r
383 DelFiles   = WinVerbs.CopySysFiles\r
384 DelFiles   = WinVerbs.CopyDllFiles\r
385 DelFiles   = WinMad.CopySysFiles\r
386 DelFiles   = WinMad.CopyDllFiles\r
387 \r
388 [DefaultUninstall.Services]\r
389 DelService = WinMad,%SPSVCINST_STOPSERVICE%\r
390 DelService = WinVerbs,%SPSVCINST_STOPSERVICE%\r
391 DelService = Ibbus,%SPSVCINST_STOPSERVICE%\r
392 DelService = mlx4_hca,%SPSVCINST_STOPSERVICE%\r
393 \r
394 \r
395 ;\r
396 ; It should be uncommented after returning MLX4_HCA to WDF model.\r
397 ; WinVerbs is a WDF, KMDF driver.\r
398 ;\r
399 \r
400 ;*****************************************\r
401 ; WDF Coinstaller installation section\r
402 ;*****************************************\r
403 \r
404 [MLX4HCA.DDInstall.ntx86.CoInstallers]\r
405 AddReg=Wdf_CoInstaller_AddReg\r
406 CopyFiles=Wdf_CoInstaller_CopyFiles\r
407 \r
408 [MLX4HCA.DDInstall.ntamd64.CoInstallers]\r
409 AddReg=Wdf_CoInstaller_AddReg\r
410 CopyFiles=Wdf_CoInstaller_CopyFiles\r
411 \r
412 [MLX4HCA.DDInstall.ntia64.CoInstallers]\r
413 AddReg=Wdf_CoInstaller_AddReg\r
414 CopyFiles=Wdf_CoInstaller_CopyFiles\r
415 \r
416 [Wdf_CoInstaller_AddReg]\r
417 HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01007.dll,WdfCoInstaller"\r
418 \r
419 [Wdf_CoInstaller_CopyFiles]\r
420 WdfCoInstaller01007.dll\r
421 \r
422 [MLX4HCA.DDInstall.ntx86.Wdf]\r
423 KmdfService = WinVerbs,WvWdfSect\r
424 KmdfService = WinMad,WvWdfSect\r
425 \r
426 [MLX4HCA.DDInstall.ntamd64.Wdf]\r
427 KmdfService = WinVerbs,WvWdfSect\r
428 KmdfService = WinMad,WvWdfSect\r
429 \r
430 [MLX4HCA.DDInstall.ntia64.Wdf]\r
431 KmdfService = WinVerbs,WvWdfSect\r
432 KmdfService = WinMad,WvWdfSect\r
433 \r
434 [WvWdfSect]\r
435 KmdfLibraryVersion = 1.7\r
436 \r
437 \r
438 ;*****************************************\r
439 ; Strings\r
440 ;*****************************************\r
441 \r
442 [Strings]\r
443 Mlx4HcaClassGuid = "{31B0B28A-26FF-4dca-A6FA-E767C7DFBA20}"\r
444 MTL="Mellanox Technologies Ltd."\r
445 MLX4HCA.ServiceDesc = "Mellanox ConnectX Virtual Infiband Driver"\r
446 Ibbus.ServiceDesc = "InfiniBand Bus/AL (Filter Driver)"\r
447 WinVerbs.ServiceDesc = "WinVerbs Service"\r
448 WinMad.ServiceDesc = "WinMad Service"\r
449 Mlx4_Hca.DeviceDesc="Mellanox ConnectX Virtual Channel Adapter"\r
450 DiskId = "Mellanox Mlx4 HCA installation disk"\r
451 SPSVCINST_NULL         = 0x0\r
452 SPSVCINST_ASSOCSERVICE = 0x00000002\r
453 SPSVCINST_STOPSERVICE  = 0x00000200\r
454 SERVICE_KERNEL_DRIVER  = 1\r
455 SERVICE_BOOT_START     = 0\r
456 SERVICE_DEMAND_START   = 3\r
457 SERVICE_ERROR_NORMAL   = 1\r
458 REG_DWORD              = 0x00010001\r
459 REG_DWORD_NO_CLOBBER   = 0x00010003\r
460 REG_MULTI_SZ           = 0x00010000\r
461 REG_MULTI_SZ_APPEND    = 0x00010008\r
462 DIRID_SYSTEM           = 11\r
463 DIRID_DRIVERS          = 12\r
464 DIRID_SYSTEM_X86       = 16425\r