[CORE\IOU] added following files:
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Aug 2008 16:08:42 +0000 (16:08 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Aug 2008 16:08:42 +0000 (16:08 +0000)
  ib_iou.cdf - for driver signing
  ib_iou.inx - for ibiou.sys installation; IOU relevant items
  makefile.inx - for creation of and date/time stamping ib_iou.inf file.
 Added to SOURCES files the rules required to create ib_iou.inf file.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1488 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/iou/kernel/SOURCES
core/iou/kernel/ib_iou.cdf [new file with mode: 0644]
core/iou/kernel/ib_iou.inx [new file with mode: 0644]
core/iou/kernel/makefile.inc [new file with mode: 0644]

index 141da4c..88befd1 100644 (file)
@@ -2,6 +2,14 @@ TARGETNAME=ibiou
 TARGETPATH=..\..\..\bin\kernel\obj$(BUILD_ALT_DIR)\r
 TARGETTYPE=DRIVER\r
 \r
+!if $(_NT_TOOLS_VERSION) != 0x700\r
+# WDK build only - transform .inx --> .inf adding date & version stamp.\r
+# see .\makefile.inc\r
+INF_NAME=ib_iou\r
+INF_TARGET=..\..\..\bin\kernel\$(O)\$(INF_NAME).inf\r
+NTTARGETFILES=$(INF_TARGET)\r
+!endif\r
+\r
 !if $(FREEBUILD)\r
 ENABLE_EVENT_TRACING=1\r
 !else\r
diff --git a/core/iou/kernel/ib_iou.cdf b/core/iou/kernel/ib_iou.cdf
new file mode 100644 (file)
index 0000000..ecc21ac
--- /dev/null
@@ -0,0 +1,8 @@
+[CatalogHeader]\r
+Name=ib_iou.cat\r
+PublicVersion=0x0000001\r
+EncodingType=0x00010001\r
+CATATTR1=0x10010001:OSAttr:2:6.0\r
+[CatalogFiles]\r
+<hash>ib_iou.inf=ib_iou.inf\r
+<hash>ibiou.sys=ibiou.sys\r
diff --git a/core/iou/kernel/ib_iou.inx b/core/iou/kernel/ib_iou.inx
new file mode 100644 (file)
index 0000000..08fe50b
--- /dev/null
@@ -0,0 +1,128 @@
+; OpenIB InfiniBand IOU Driver.\r
+; Copyright 2005 SilverStorm Technologies all Rights Reserved.\r
+; Copyright 2006 Mellanox Technologies all Rights Reserved.\r
+\r
+[Version]\r
+Signature="$Windows NT$"\r
+Class=System\r
+ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}\r
+Provider=%OPENIB%\r
+DriverVer=04/29/2008,1.1.0000.1085\r
+CatalogFile=ib_iou.cat\r
+\r
+; ================= Device Install section =====================\r
+\r
+; 64-bit platforms also copy 32-bit user-mode binaries.\r
+[DestinationDirs]\r
+DefaultDestDir=%DIRID_DRIVERS%\r
+\r
+[SourceDisksNames.x86]\r
+1=%DiskId%,,,""\r
+\r
+[SourceDisksNames.amd64]\r
+1=%DiskId%,,,""\r
+\r
+[SourceDisksNames.ia64]\r
+1=%DiskId%,,,""\r
+\r
+[SourceDisksFiles.x86]\r
+ibiou.sys=1\r
+\r
+[SourceDisksFiles.amd64]\r
+ibiou.sys=1\r
+\r
+[SourceDisksFiles.ia64]\r
+ibiou.sys=1\r
+\r
+[Manufacturer]\r
+%OPENIB% = GenIOU.DeviceSection,ntx86,ntamd64,ntia64\r
+%SST% = QLogicIOU.DeviceSection,ntx86,ntamd64,ntia64\r
+\r
+[GenIOU.DeviceSection]\r
+; empty since we don't support W9x/Me\r
+\r
+[GenIOU.DeviceSection.ntx86]\r
+%Iou.DeviceDesc% = Iou.DDInstall,IBA\IB_IOU\r
+\r
+[GenIOU.DeviceSection.ntamd64]\r
+%Iou.DeviceDesc% = Iou.DDInstall,IBA\IB_IOU\r
+\r
+[GenIOU.DeviceSection.ntia64]\r
+%Iou.DeviceDesc% = Iou.DDInstall,IBA\IB_IOU\r
+\r
+[QLogicIOU.DeviceSection]\r
+; empty since we don't support W9x/Me\r
+\r
+[QLogicIOU.DeviceSection.ntx86]\r
+%VFx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0060,IBA\V00066aP0010\r
+%VEx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0058\r
+%FVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00dd\r
+%EVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00de\r
+%BC2FC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e0\r
+%BC2GE.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e1\r
+\r
+[QLogicIOU.DeviceSection.ntamd64]\r
+%VFx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0060,IBA\V00066aP0010\r
+%VEx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0058\r
+%FVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00dd\r
+%EVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00de\r
+%BC2FC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e0\r
+%BC2GE.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e1\r
+\r
+[QLogicIOU.DeviceSection.ntia64]\r
+%VFx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0060,IBA\V00066aP0010\r
+%VEx.DeviceDesc% = Iou.DDInstall,IBA\V00066aP0058\r
+%FVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00dd\r
+%EVIC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00de\r
+%BC2FC.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e0\r
+%BC2GE.DeviceDesc% = Iou.DDInstall,IBA\V00066aP00e1\r
+\r
+[Iou.DDInstall.nt]\r
+CopyFiles = Iou.CopyFiles\r
+\r
+[Iou.DDInstall.nt.Services]\r
+AddService = ibiou,%SPSVCINST_ASSOCSERVICE%,Iou.ServiceInstall\r
+;AddService = ibiou,,Iou.ServiceInstall\r
+\r
+[Iou.CopyFiles]\r
+ibiou.sys\r
+\r
+;\r
+; ============= Service Install section ==============\r
+;\r
+\r
+[Iou.ServiceInstall]\r
+DisplayName    = %Iou.ServiceDesc%\r
+ServiceType     = %SERVICE_KERNEL_DRIVER%\r
+StartType       = %SERVICE_DEMAND_START%\r
+ErrorControl    = %SERVICE_ERROR_NORMAL%\r
+ServiceBinary   = %12%\ibiou.sys\r
+AddReg          = Iou.ParamsReg\r
+\r
+[Iou.ParamsReg]\r
+HKR,"Parameters","DebugLevel",%REG_DWORD%,2\r
+HKR,"Parameters","DebugFlags",%REG_DWORD%,0x00ffffff\r
+\r
+[Strings]\r
+OPENIB = "OpenFabrics Alliance"\r
+SST = "SilverStorm Technologies"\r
+VFx.DeviceDesc = "SilverStorm VFx"\r
+VEx.DeviceDesc = "SilverStorm VEx"\r
+FVIC.DeviceDesc = "SilverStorm FVIC"\r
+EVIC.DeviceDesc = "SilverStorm EVIC"\r
+BC2FC.DeviceDesc = "QLogic InfiniBand Fibre Channel Bridge Module"\r
+BC2GE.DeviceDesc = "QLogic InfiniBand Ethernet Bridge Module"\r
+\r
+Iou.DeviceDesc = "InfiniBand I/O Unit"\r
+Iou.ServiceDesc = "OpenIB InfiniBand  I/O Unit Driver"\r
+DiskId = "OpenIB InfiniBand Access Layer installation disk"\r
+SPSVCINST_NULL = 0x0\r
+SPSVCINST_ASSOCSERVICE = 0x00000002\r
+SERVICE_KERNEL_DRIVER  = 1\r
+SERVICE_DEMAND_START   = 3\r
+SERVICE_ERROR_NORMAL   = 1\r
+REG_DWORD              = 0x00010001\r
+REG_DWORD_NO_CLOBBER   = 0x00010003\r
+DIRID_SYSTEM           = 11\r
+DIRID_DRIVERS          = 12\r
+DIRID_SYSTEM_X86       = 16425\r
diff --git a/core/iou/kernel/makefile.inc b/core/iou/kernel/makefile.inc
new file mode 100644 (file)
index 0000000..4f29f50
--- /dev/null
@@ -0,0 +1,17 @@
+\r
+# Transform .inx file to .inf file adding date + major,min & svn.version stamp\r
+# Output .inf file is copied to the $(INF_TARGET) folder (commonly where .sys file resides).\r
+\r
+_LNG=$(LANGUAGE)\r
+\r
+!IF !DEFINED(_INX)\r
+_INX=.\r
+!ENDIF\r
+\r
+STAMP=stampinf -a $(_BUILDARCH)\r
+\r
+!INCLUDE mod_ver.def\r
+\r
+$(INF_TARGET) : $(_INX)\$(INF_NAME).inx\r
+    copy $(_INX)\$(@B).inx $@\r
+    $(STAMP) -f $@ -d * -v $(IB_MAJORVERSION).$(IB_MINORVERSION).$(IB_BUILDVERSION).$(OPENIB_REV)\r