[MLX4] This patch loads winverbs and winmad as filter drivers for mlx4_hca and mthca
[mirror/winof/.git] / hw / mthca / kernel / mthca.inx
index 3aa6a6a..49b6370 100644 (file)
@@ -18,6 +18,12 @@ MTHCA.UMCopyFiles=%DIRID_SYSTEM%
 MTHCA.WOW64CopyFiles=%DIRID_SYSTEM_X86%\r
 Ibal.UMCopyFiles=%DIRID_SYSTEM%\r
 Ibal.WOW64CopyFiles=%DIRID_SYSTEM_X86%\r
+WinVerbs.CopySysFiles = %DIRID_DRIVERS%\r
+WinVerbs.CopyDllFiles = %DIRID_SYSTEM%\r
+WinMad.CopySysFiles = %DIRID_DRIVERS%\r
+WinMad.CopyDllFiles = %DIRID_SYSTEM%\r
+Wdf_CoInstaller_CopyFiles = %DIRID_SYSTEM%\r
+\r
 \r
 ; ================= Class Install section =====================\r
 \r
@@ -28,7 +34,9 @@ AddReg=ClassAddReg
 HKR,,,,"InfiniBand Channel Adapters"\r
 HKR,,Icon,,-5\r
 HKR,,SilentInstall,,1\r
-HKR,,"UpperFilters",0x00010000,"ibbus" ; enable IBBUS/AL Filter driver loading.\r
+HKR,,"UpperFilters",0x00010000,"ibbus" ; enable IBBUS/AL Filter driver load.\r
+HKR,,"UpperFilters",0x00010008,"WinVerbs" ; enable winverbs Filter driver load.\r
+HKR,,"UpperFilters",0x00010008,"WinMad"\r
 \r
 \r
 ; ================= Device Install section =====================\r
@@ -51,6 +59,14 @@ complib.dll=1,,
 ibald.dll=1,,\r
 complibd.dll=1,,\r
 ibbus.sys=1,,\r
+winverbs.sys = 1,,\r
+winverbs.dll = 1,,\r
+winverbsd.dll = 1,,\r
+winmad.sys = 1,,\r
+winmad.dll = 1,,\r
+winmadd.dll = 1,,\r
+WdfCoInstaller01007.dll = 1,,\r
+\r
 \r
 [SourceDisksFiles.amd64]\r
 mthca.sys=1,,\r
@@ -67,6 +83,13 @@ cl32d.dll=1,,
 ibal32.dll=1,,\r
 ibal32d.dll=1,,\r
 ibbus.sys=1,,\r
+winverbs.sys = 1,,\r
+winverbs.dll = 1,,\r
+winverbsd.dll = 1,,\r
+winmad.sys = 1,,\r
+winmad.dll = 1,,\r
+winmadd.dll = 1,,\r
+WdfCoInstaller01007.dll = 1,,\r
 \r
 [SourceDisksFiles.ia64]\r
 mthca.sys=1,,\r
@@ -83,6 +106,13 @@ cl32d.dll=1,,
 ibal32.dll=1,,\r
 ibal32d.dll=1,,\r
 ibbus.sys=1,,\r
+winverbs.sys = 1,,\r
+winverbs.dll = 1,,\r
+winverbsd.dll = 1,,\r
+winmad.sys = 1,,\r
+winmad.dll = 1,,\r
+winmadd.dll = 1,,\r
+WdfCoInstaller01007.dll = 1,,\r
 \r
 [Manufacturer]\r
 %MTL% = HCA.DeviceSection,ntx86,ntamd64,ntia64\r
@@ -128,6 +158,10 @@ CopyFiles = MTHCA.CopyFiles
 CopyFiles = MTHCA.UMCopyFiles\r
 CopyFiles = Ibal.UMCopyFiles\r
 CopyFiles = Ibbus.CopyFiles\r
+CopyFiles = WinVerbs.CopySysFiles\r
+CopyFiles = WinVerbs.CopyDllFiles\r
+CopyFiles = WinMad.CopySysFiles\r
+CopyFiles = WinMad.CopyDllFiles\r
 \r
 [MTHCA.DDInstall.ntamd64]\r
 CopyFiles = MTHCA.CopyFiles\r
@@ -136,6 +170,10 @@ CopyFiles = MTHCA.WOW64CopyFiles
 CopyFiles = Ibal.UMCopyFiles\r
 CopyFiles = Ibal.WOW64CopyFiles\r
 CopyFiles = Ibbus.CopyFiles\r
+CopyFiles = WinVerbs.CopySysFiles\r
+CopyFiles = WinVerbs.CopyDllFiles\r
+CopyFiles = WinMad.CopySysFiles\r
+CopyFiles = WinMad.CopyDllFiles\r
 \r
 [MTHCA.DDInstall.ntia64]\r
 CopyFiles = MTHCA.CopyFiles\r
@@ -144,6 +182,10 @@ CopyFiles = MTHCA.WOW64CopyFiles
 CopyFiles = Ibal.UMCopyFiles\r
 CopyFiles = Ibal.WOW64CopyFiles\r
 CopyFiles = Ibbus.CopyFiles\r
+CopyFiles = WinVerbs.CopySysFiles\r
+CopyFiles = WinVerbs.CopyDllFiles\r
+CopyFiles = WinMad.CopySysFiles\r
+CopyFiles = WinMad.CopyDllFiles\r
 \r
 \r
 ; ============== Services ==============\r
@@ -151,14 +193,20 @@ CopyFiles = Ibbus.CopyFiles
 [MTHCA.DDInstall.ntx86.Services]\r
 AddService = mthca,%SPSVCINST_ASSOCSERVICE%,MTHCA.ServiceInstall,MTHCA.EventLog\r
 AddService = ibbus,,Ibbus.ServiceInstall\r
+AddService = WinVerbs,,WinVerbs.ServiceInstall\r
+AddService = WinMad,,WinMad.ServiceInstall\r
 \r
 [MTHCA.DDInstall.ntamd64.Services]\r
 AddService = mthca,%SPSVCINST_ASSOCSERVICE%,MTHCA.ServiceInstall,MTHCA.EventLog\r
 AddService = ibbus,,Ibbus.ServiceInstall\r
+AddService = WinVerbs,,WinVerbs.ServiceInstall\r
+AddService = WinMad,,WinMad.ServiceInstall\r
 \r
 [MTHCA.DDInstall.ntia64.Services]\r
 AddService = mthca,%SPSVCINST_ASSOCSERVICE%,MTHCA.ServiceInstall,MTHCA.EventLog\r
 AddService = ibbus,,Ibbus.ServiceInstall\r
+AddService = WinVerbs,,WinVerbs.ServiceInstall\r
+AddService = WinMad,,WinMad.ServiceInstall\r
 \r
 \r
 ; ============= File Copy ==============\r
@@ -189,6 +237,19 @@ complibd.dll,cl32d.dll,,2
 [Ibbus.CopyFiles]\r
 ibbus.sys\r
 \r
+[WinVerbs.CopySysFiles]\r
+winverbs.sys\r
+\r
+[WinVerbs.CopyDllFiles]\r
+winverbs.dll,,,2\r
+winverbsd.dll,,,2\r
+\r
+[WinMad.CopySysFiles]\r
+winmad.sys\r
+\r
+[WinMad.CopyDllFiles]\r
+winmad.dll,,,2\r
+winmadd.dll,,,2\r
 \r
 ; ============= MTHCA Service Install section ==============\r
 \r
@@ -246,6 +307,65 @@ HKR,"Parameters","DebugFlags",%REG_DWORD%,0x80000000
 HKR,"Parameters","ReportPortNIC",%REG_DWORD%,1\r
 \r
 \r
+; ============= WinVerbs Service Install section ==============\r
+\r
+[WinVerbs.ServiceInstall]\r
+DisplayName = %WinVerbs.ServiceDesc%\r
+ServiceType = %SERVICE_KERNEL_DRIVER%\r
+StartType = %SERVICE_DEMAND_START%\r
+ErrorControl = %SERVICE_ERROR_NORMAL%\r
+ServiceBinary  = %12%\winverbs.sys\r
+LoadOrderGroup = PNP Filter\r
+Dependencies   = ibbus\r
+\r
+; ============= WinMad Service Install section ==============\r
+\r
+[WinMad.ServiceInstall]\r
+DisplayName = %WinMad.ServiceDesc%\r
+ServiceType = %SERVICE_KERNEL_DRIVER%\r
+StartType = %SERVICE_DEMAND_START%\r
+ErrorControl = %SERVICE_ERROR_NORMAL%\r
+ServiceBinary  = %12%\winmad.sys\r
+LoadOrderGroup = PNP Filter\r
+Dependencies   = winverbs\r
+\r
+\r
+; ============= KMDF CoInstaller section ==============\r
+\r
+[MTHCA.DDInstall.ntx86.CoInstallers]\r
+AddReg = Wdf_CoInstaller_AddReg\r
+CopyFiles = Wdf_CoInstaller_CopyFiles\r
+\r
+[MTHCA.DDInstall.ntamd64.CoInstallers]\r
+AddReg = Wdf_CoInstaller_AddReg\r
+CopyFiles = Wdf_CoInstaller_CopyFiles\r
+\r
+[MTHCA.DDInstall.ntia64.CoInstallers]\r
+AddReg = Wdf_CoInstaller_AddReg\r
+CopyFiles = Wdf_CoInstaller_CopyFiles\r
+\r
+[Wdf_CoInstaller_AddReg]\r
+HKR,, CoInstallers32,0x00010000, "WdfCoInstaller01007.dll,WdfCoInstaller"\r
+\r
+[Wdf_CoInstaller_CopyFiles]\r
+WdfCoInstaller01007.dll\r
+\r
+[MTHCA.DDInstall.ntx86.Wdf]\r
+KmdfService = WinVerbs, WvWdfSect\r
+KmdfService = WinMad, WvWdfSect\r
+\r
+[MTHCA.DDInstall.ntamd64.Wdf]\r
+KmdfService = WinVerbs, WvWdfSect\r
+KmdfService = WinMad, WvWdfSect\r
+\r
+[MTHCA.DDInstall.ntia64.Wdf]\r
+KmdfService = WinVerbs, WvWdfSect\r
+KmdfService = WinMad, WvWdfSect\r
+\r
+[WvWdfSect]\r
+KmdfLibraryVersion = 1.7\r
+\r
+\r
 ; ============= Uninstall Section =============\r
 \r
 [DefaultUninstall.ntx86]\r
@@ -257,6 +377,10 @@ DelReg     = ClassAddReg
 DelFiles   = Ibal.UMCopyFiles\r
 DelFiles   = Ibbus.CopyFiles\r
 DelReg     = Ibbus.ParamsReg\r
+DelFiles   = WinVerbs.CopySysFiles\r
+DelFiles   = WinVerbs.CopyDllFiles\r
+DelFiles   = WinMad.CopySysFiles\r
+DelFiles   = WinMad.CopyDllFiles\r
 \r
 [DefaultUninstall.ntamd64]\r
 DelFiles   = MTHCA.CopyFiles\r
@@ -269,6 +393,10 @@ DelFiles   = Ibal.UMCopyFiles
 DelFiles   = Ibal.WOW64CopyFiles\r
 DelFiles   = Ibbus.CopyFiles\r
 DelReg     = Ibbus.ParamsReg\r
+DelFiles   = WinVerbs.CopySysFiles\r
+DelFiles   = WinVerbs.CopyDllFiles\r
+DelFiles   = WinMad.CopySysFiles\r
+DelFiles   = WinMad.CopyDllFiles\r
 \r
 [DefaultUninstall.ntia64]\r
 DelFiles   = MTHCA.CopyFiles\r
@@ -281,8 +409,14 @@ DelFiles   = Ibal.UMCopyFiles
 DelFiles   = Ibal.WOW64CopyFiles\r
 DelFiles   = Ibbus.CopyFiles\r
 DelReg     = Ibbus.ParamsReg\r
+DelFiles   = WinVerbs.CopySysFiles\r
+DelFiles   = WinVerbs.CopyDllFiles\r
+DelFiles   = WinMad.CopySysFiles\r
+DelFiles   = WinMad.CopyDllFiles\r
 \r
 [DefaultUninstall.Services]\r
+DelService = WinMad,%SPSVCINST_STOPSERVICE%\r
+DelService = WinVerbs,%SPSVCINST_STOPSERVICE%\r
 DelService = Ibbus,%SPSVCINST_STOPSERVICE%\r
 DelService = mthca,%SPSVCINST_STOPSERVICE%\r
 \r
@@ -303,10 +437,13 @@ MT25204.DeviceDesc="InfiniHost III Lx (MT25204) - Mellanox InfiniBand HCA for PC
 MT25205.DeviceDesc="InfiniHost III Lx (MT25205) - Mellanox InfiniBand HCA for PCI Express (burner device)"\r
 DiskId = "Mellanox InfiniBand HCA installation disk"\r
 Ibbus.ServiceDesc = "InfiniBand Bus/AL (Filter Driver)"\r
-SPSVCINST_NULL = 0x0\r
+WinVerbs.ServiceDesc = "WinVerbs Service"\r
+WinMad.ServiceDesc = "WinMad Service"\r
+SPSVCINST_NULL         = 0x0\r
 SPSVCINST_ASSOCSERVICE = 0x00000002\r
 SPSVCINST_STOPSERVICE  = 0x00000200\r
 SERVICE_KERNEL_DRIVER  = 1\r
+SERVICE_BOOT_START     = 0\r
 SERVICE_DEMAND_START   = 3\r
 SERVICE_ERROR_NORMAL   = 1\r
 REG_DWORD              = 0x00010001\r