win-pvdrivers

changeset 67:6de0f54b913c

merge to head
author James Harper <james.harper@bendigoit.com.au>
date Wed Dec 19 20:28:56 2007 +1100 (2007-12-19)
parents be0e5f13ec5f fd2827973086
children 7ae8e22810a3 21502e79acc3
files target/netxen.inf
line diff
     1.1 --- a/target/netxen.inf	Wed Dec 19 20:27:40 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	Wed Dec 19 20:28:56 2007 +1100
     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 20:27:40 2007 +1100
     3.2 +++ b/xennet/sources	Wed Dec 19 20:28:56 2007 +1100
     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 --- a/xennet/xennet.c	Wed Dec 19 20:27:40 2007 +1100
     4.2 +++ b/xennet/xennet.c	Wed Dec 19 20:28:56 2007 +1100
     4.3 @@ -283,6 +283,7 @@ XenNet_AllocRXBuffers(struct xennet_info
     4.4        break;
     4.5      }
     4.6      NdisChainBufferAtBack(packet, buffer);
     4.7 +    NDIS_SET_PACKET_HEADER_SIZE(packet, XN_HDR_SIZE);
     4.8  
     4.9      /* Give to netback */
    4.10      id = (unsigned short)(req_prod + i) & (NET_RX_RING_SIZE - 1);
    4.11 @@ -386,7 +387,7 @@ XenNet_Interrupt(
    4.12  
    4.13    UNREFERENCED_PARAMETER(Interrupt);
    4.14  
    4.15 -  KdPrint((__DRIVER_NAME "     ***XenNet Interrupt***\n"));  
    4.16 +  //KdPrint((__DRIVER_NAME "     ***XenNet Interrupt***\n"));  
    4.17  
    4.18    if (xi->connected)
    4.19    {
    4.20 @@ -1012,7 +1013,7 @@ XenNet_ReturnPacket(
    4.21    NdisFreeBuffer(buffer);
    4.22    NdisFreePacket(Packet);
    4.23  
    4.24 -  KdPrint((__FUNCTION__ " called\n"));
    4.25 +  //KdPrint((__FUNCTION__ " called\n"));
    4.26  }
    4.27  
    4.28  PMDL
    4.29 @@ -1071,7 +1072,7 @@ XenNet_SendPackets(
    4.30  
    4.31      NdisQueryPacket(curr_packet, NULL, NULL, NULL, &pkt_size);
    4.32  
    4.33 -    KdPrint(("sending pkt, len %d\n", pkt_size));
    4.34 +    //KdPrint(("sending pkt, len %d\n", pkt_size));
    4.35  
    4.36      pmdl = XenNet_Linearize(curr_packet);
    4.37      if (!pmdl)
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/xennet/xennet.inx	Wed Dec 19 20:28:56 2007 +1100
     5.3 @@ -0,0 +1,100 @@
     5.4 +[Version]
     5.5 +Signature="$WINDOWS NT$"
     5.6 +Class=Net
     5.7 +ClassGuid={4D36E972-E325-11CE-BFC1-08002BE10318}
     5.8 +Provider=%JAMESHARPER%
     5.9 +DriverVer=11/11/2007,1.0.1.290
    5.10 +
    5.11 +[DestinationDirs]
    5.12 +DefaultDestDir = 12
    5.13 +ClassInstall32_CopyFiles=11
    5.14 +CoInstaller_CopyFiles = 11
    5.15 +
    5.16 +; ================= Class section =====================
    5.17 +
    5.18 +[ClassInstall32]
    5.19 +Addreg=ClassInstall32_AddReg
    5.20 +CopyFiles=ClassInstall32_CopyFiles
    5.21 +
    5.22 +[ClassInstall32_AddReg]
    5.23 +HKR,,,0,%ClassName%
    5.24 +HKR,,Icon,,-5
    5.25 +HKR,,DeviceCharacteristics,0x10001,0x100
    5.26 +HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)"
    5.27 +
    5.28 +[ClassInstall32_CopyFiles]
    5.29 +
    5.30 +[ControlFlags]
    5.31 +ExcludeFromSelect=*
    5.32 +
    5.33 +
    5.34 +[Manufacturer]
    5.35 +%JAMESHARPER%=JAMESHARPER,NTx86
    5.36 +
    5.37 +[JAMESHARPER]
    5.38 +%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    5.39 +
    5.40 +[JAMESHARPER.NTx86]
    5.41 +%XenNet.DRVDESC%=XenNet_Inst, XEN\VIF
    5.42 +
    5.43 +[XenNet_Inst.NT]
    5.44 +CopyFiles=XenNet.CopyFiles
    5.45 +Characteristics = 0x1 ; NCF_VIRTUAL
    5.46 +AddReg = XenNet_Reg
    5.47 +
    5.48 +[XenNet_Reg]
    5.49 +HKR, Ndi, Service, 0, "XenNet"
    5.50 +HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
    5.51 +HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
    5.52 +
    5.53 +[XenNet.CopyFiles]
    5.54 +xennet.sys
    5.55 +
    5.56 +[SourceDisksFiles]
    5.57 +xennet.sys=1
    5.58 +WdfCoinstaller01005.dll=1,,
    5.59 +
    5.60 +[SourceDisksNames.x86]
    5.61 +1 = %DISK_NAME%,,,\i386
    5.62 +
    5.63 +[XenNet_Inst.Services]
    5.64 +AddService=XenNet,2,XenNet_Service 
    5.65 +
    5.66 +[XenNet_Inst.NT.Services]
    5.67 +AddService=XenNet,2,XenNet_Service 
    5.68 +
    5.69 +[XenNet_Service]
    5.70 +DisplayName    = %XenNet.SVCDESC%                            
    5.71 +ServiceType    = 1
    5.72 +StartType      = 3
    5.73 +ErrorControl   = 1
    5.74 +LoadOrderGroup = NDIS
    5.75 +ServiceBinary  = %12%\xennet.sys                            
    5.76 +AddReg = XenNet_Service_AddReg
    5.77 +
    5.78 +[XenNet_Service_AddReg]
    5.79 +; 5 = PciBus, 0 = Internal, 15 = PnpBus
    5.80 +HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
    5.81 +
    5.82 +[XenNet_Inst.NT.CoInstallers]
    5.83 +AddReg=CoInstaller_AddReg
    5.84 +CopyFiles=CoInstaller_CopyFiles
    5.85 +
    5.86 +[CoInstaller_CopyFiles]
    5.87 +WdfCoinstaller01005.dll,,,2
    5.88 +
    5.89 +[CoInstaller_AddReg]
    5.90 +HKR,,CoInstallers32,0x00010000, "WdfCoinstaller01005.dll,WdfCoInstaller"
    5.91 +
    5.92 +[XenNet_Inst.NT.Wdf]
    5.93 +KmdfService = xennet, xennet_wdfsect
    5.94 +
    5.95 +[xennet_wdfsect]
    5.96 +KmdfLibraryVersion = 1.0
    5.97 +
    5.98 +[Strings]
    5.99 +JAMESHARPER = "James Harper"
   5.100 +ClassName = "Network Adapters"
   5.101 +XenNet.SVCDESC = "Xen Net Device Driver"
   5.102 +XenNet.DRVDESC = "Xen Net Device Driver"
   5.103 +DISK_NAME = "Xen Net Device Driver Install Disk"