win-pvdrivers

changeset 64:ed27484c3ab8

xennet: update for improved build process
author Andy Grover <andy.grover@oracle.com>
date Tue Dec 18 20:21:32 2007 -0800 (2007-12-18)
parents d458fc4371b9
children fd2827973086
files target/netxen.inf xennet/makefile.inc xennet/sources xennet/xennet.inx
line diff
     1.1 --- a/target/netxen.inf	Wed Dec 19 14:27:43 2007 +1100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,100 +0,0 @@
     1.4 -[Version]
     1.5 -Signature="$WINDOWS NT$"
     1.6 -Class=Net
     1.7 -ClassGuid={4D36E972-E325-11CE-BFC1-08002BE10318}
     1.8 -Provider=%JAMESHARPER%
     1.9 -DriverVer=11/11/2007,1.0.1.290
    1.10 -
    1.11 -[DestinationDirs]
    1.12 -DefaultDestDir = 12
    1.13 -ClassInstall32_CopyFiles=11
    1.14 -CoInstaller_CopyFiles = 11
    1.15 -
    1.16 -; ================= Class section =====================
    1.17 -
    1.18 -[ClassInstall32]
    1.19 -Addreg=ClassInstall32_AddReg
    1.20 -CopyFiles=ClassInstall32_CopyFiles
    1.21 -
    1.22 -[ClassInstall32_AddReg]
    1.23 -HKR,,,0,%ClassName%
    1.24 -HKR,,Icon,,-5
    1.25 -HKR,,DeviceCharacteristics,0x10001,0x100
    1.26 -HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)"
    1.27 -
    1.28 -[ClassInstall32_CopyFiles]
    1.29 -
    1.30 -[ControlFlags]
    1.31 -ExcludeFromSelect=*
    1.32 -
    1.33 -
    1.34 -[Manufacturer]
    1.35 -%JAMESHARPER%=JAMESHARPER,NTx86
    1.36 -
    1.37 -[JAMESHARPER]
    1.38 -%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    1.39 -
    1.40 -[JAMESHARPER.NTx86]
    1.41 -%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    1.42 -
    1.43 -[XenNet_Inst.NT]
    1.44 -CopyFiles=XenNet.CopyFiles
    1.45 -Characteristics = 0x1 ; NCF_VIRTUAL
    1.46 -AddReg = XenNet_Reg
    1.47 -
    1.48 -[XenNet_Reg]
    1.49 -HKR, Ndi, Service, 0, "XenNet"
    1.50 -HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
    1.51 -HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
    1.52 -
    1.53 -[XenNet.CopyFiles]
    1.54 -xennet.sys
    1.55 -
    1.56 -[SourceDisksFiles]
    1.57 -xennet.sys=1
    1.58 -WdfCoinstaller01005.dll=1,,
    1.59 -
    1.60 -[SourceDisksNames.x86]
    1.61 -1 = %DISK_NAME%,,,\i386
    1.62 -
    1.63 -[XenNet_Inst.Services]
    1.64 -AddService=XenNet,2,XenNet_Service 
    1.65 -
    1.66 -[XenNet_Inst.NT.Services]
    1.67 -AddService=XenNet,2,XenNet_Service 
    1.68 -
    1.69 -[XenNet_Service]
    1.70 -DisplayName    = %XenNet.SVCDESC%                            
    1.71 -ServiceType    = 1
    1.72 -StartType      = 3
    1.73 -ErrorControl   = 1
    1.74 -LoadOrderGroup = NDIS
    1.75 -ServiceBinary  = %12%\xennet.sys                            
    1.76 -AddReg = XenNet_Service_AddReg
    1.77 -
    1.78 -[XenNet_Service_AddReg]
    1.79 -; 5 = PciBus, 0 = Internal, 15 = PnpBus
    1.80 -HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
    1.81 -
    1.82 -[XenNet_Inst.NT.CoInstallers]
    1.83 -AddReg=CoInstaller_AddReg
    1.84 -CopyFiles=CoInstaller_CopyFiles
    1.85 -
    1.86 -[CoInstaller_CopyFiles]
    1.87 -WdfCoinstaller01005.dll,,,2
    1.88 -
    1.89 -[CoInstaller_AddReg]
    1.90 -HKR,,CoInstallers32,0x00010000, "WdfCoinstaller01005.dll,WdfCoInstaller"
    1.91 -
    1.92 -[XenNet_Inst.NT.Wdf]
    1.93 -KmdfService = xennet, xennet_wdfsect
    1.94 -
    1.95 -[xennet_wdfsect]
    1.96 -KmdfLibraryVersion = 1.0
    1.97 -
    1.98 -[Strings]
    1.99 -JAMESHARPER = "James Harper"
   1.100 -ClassName = "Network Adapters"
   1.101 -XenNet.SVCDESC = "Xen Net Device Driver"
   1.102 -XenNet.DRVDESC = "Xen Net Device Driver"
   1.103 -DISK_NAME = "Xen Net Device Driver Install Disk"
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xennet/makefile.inc	Tue Dec 18 20:21:32 2007 -0800
     2.3 @@ -0,0 +1,6 @@
     2.4 +_LNG=$(LANGUAGE)
     2.5 +STAMP=stampinf -f $@ -a $(_BUILDARCH) -d * -v $(VERSION)
     2.6 +
     2.7 +..\Target\$(DDK_TARGET_OS)\$(INF_NAME).inf: $(INF_NAME).inx sources
     2.8 +    copy $(@B).inx $@
     2.9 +    $(STAMP)
     3.1 --- a/xennet/sources	Wed Dec 19 14:27:43 2007 +1100
     3.2 +++ b/xennet/sources	Tue Dec 18 20:21:32 2007 -0800
     3.3 @@ -10,5 +10,8 @@ NO_BINPLACE=1
     3.4  KMDF_VERSION=1
     3.5  TARGETLIBS=$(DDK_LIB_PATH)\ntstrsafe.lib \
     3.6    $(DDK_LIB_PATH)\ndis.lib
     3.7 +INF_NAME=xennet
     3.8 +MISCFILES=$(TARGETPATH)\$(INF_NAME).inf
     3.9 +NTTARGETFILES=
    3.10  
    3.11  SOURCES=xennet.c
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/xennet/xennet.inx	Tue Dec 18 20:21:32 2007 -0800
     4.3 @@ -0,0 +1,100 @@
     4.4 +[Version]
     4.5 +Signature="$WINDOWS NT$"
     4.6 +Class=Net
     4.7 +ClassGuid={4D36E972-E325-11CE-BFC1-08002BE10318}
     4.8 +Provider=%JAMESHARPER%
     4.9 +DriverVer=11/11/2007,1.0.1.290
    4.10 +
    4.11 +[DestinationDirs]
    4.12 +DefaultDestDir = 12
    4.13 +ClassInstall32_CopyFiles=11
    4.14 +CoInstaller_CopyFiles = 11
    4.15 +
    4.16 +; ================= Class section =====================
    4.17 +
    4.18 +[ClassInstall32]
    4.19 +Addreg=ClassInstall32_AddReg
    4.20 +CopyFiles=ClassInstall32_CopyFiles
    4.21 +
    4.22 +[ClassInstall32_AddReg]
    4.23 +HKR,,,0,%ClassName%
    4.24 +HKR,,Icon,,-5
    4.25 +HKR,,DeviceCharacteristics,0x10001,0x100
    4.26 +HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)"
    4.27 +
    4.28 +[ClassInstall32_CopyFiles]
    4.29 +
    4.30 +[ControlFlags]
    4.31 +ExcludeFromSelect=*
    4.32 +
    4.33 +
    4.34 +[Manufacturer]
    4.35 +%JAMESHARPER%=JAMESHARPER,NTx86
    4.36 +
    4.37 +[JAMESHARPER]
    4.38 +%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    4.39 +
    4.40 +[JAMESHARPER.NTx86]
    4.41 +%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    4.42 +
    4.43 +[XenNet_Inst.NT]
    4.44 +CopyFiles=XenNet.CopyFiles
    4.45 +Characteristics = 0x1 ; NCF_VIRTUAL
    4.46 +AddReg = XenNet_Reg
    4.47 +
    4.48 +[XenNet_Reg]
    4.49 +HKR, Ndi, Service, 0, "XenNet"
    4.50 +HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
    4.51 +HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
    4.52 +
    4.53 +[XenNet.CopyFiles]
    4.54 +xennet.sys
    4.55 +
    4.56 +[SourceDisksFiles]
    4.57 +xennet.sys=1
    4.58 +WdfCoinstaller01005.dll=1,,
    4.59 +
    4.60 +[SourceDisksNames.x86]
    4.61 +1 = %DISK_NAME%,,,\i386
    4.62 +
    4.63 +[XenNet_Inst.Services]
    4.64 +AddService=XenNet,2,XenNet_Service 
    4.65 +
    4.66 +[XenNet_Inst.NT.Services]
    4.67 +AddService=XenNet,2,XenNet_Service 
    4.68 +
    4.69 +[XenNet_Service]
    4.70 +DisplayName    = %XenNet.SVCDESC%                            
    4.71 +ServiceType    = 1
    4.72 +StartType      = 3
    4.73 +ErrorControl   = 1
    4.74 +LoadOrderGroup = NDIS
    4.75 +ServiceBinary  = %12%\xennet.sys                            
    4.76 +AddReg = XenNet_Service_AddReg
    4.77 +
    4.78 +[XenNet_Service_AddReg]
    4.79 +; 5 = PciBus, 0 = Internal, 15 = PnpBus
    4.80 +HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
    4.81 +
    4.82 +[XenNet_Inst.NT.CoInstallers]
    4.83 +AddReg=CoInstaller_AddReg
    4.84 +CopyFiles=CoInstaller_CopyFiles
    4.85 +
    4.86 +[CoInstaller_CopyFiles]
    4.87 +WdfCoinstaller01005.dll,,,2
    4.88 +
    4.89 +[CoInstaller_AddReg]
    4.90 +HKR,,CoInstallers32,0x00010000, "WdfCoinstaller01005.dll,WdfCoInstaller"
    4.91 +
    4.92 +[XenNet_Inst.NT.Wdf]
    4.93 +KmdfService = xennet, xennet_wdfsect
    4.94 +
    4.95 +[xennet_wdfsect]
    4.96 +KmdfLibraryVersion = 1.0
    4.97 +
    4.98 +[Strings]
    4.99 +JAMESHARPER = "James Harper"
   4.100 +ClassName = "Network Adapters"
   4.101 +XenNet.SVCDESC = "Xen Net Device Driver"
   4.102 +XenNet.DRVDESC = "Xen Net Device Driver"
   4.103 +DISK_NAME = "Xen Net Device Driver Install Disk"