[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XENIFACE PATCH 2/2] Bump binding to 0x0900000B



Require UNPLUGv3 be present, so that drivers are all using the same binding
revision number.
Also refactors the INF file to match other drivers

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>
---
 src/xeniface.inf | 123 ++++++++++++++++++++++++++---------------------
 1 file changed, 67 insertions(+), 56 deletions(-)

diff --git a/src/xeniface.inf b/src/xeniface.inf
index fdb78ea..fe5ea75 100644
--- a/src/xeniface.inf
+++ b/src/xeniface.inf
@@ -30,83 +30,94 @@
 ; SUCH DAMAGE.
 
 [Version]
-Signature="$WINDOWS NT$"
+Signature="$Windows NT$"
 Class=System
-ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318} 
+ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318}
 Provider=%Vendor%
-DriverVer=@INF_DATE@,@MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@.@BUILD_NUMBER@
 CatalogFile=xeniface.cat
-DriverPackageDisplayName=%DiskId1%
+DriverVer=@INF_DATE@,@MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@.@BUILD_NUMBER@
+DriverPackageDisplayName=%DiskDesc%
 PnpLockdown=1
 
 [DestinationDirs]
 DefaultDestDir = 12
-ServiceDestDir.Copy = 11
-
-[Manufacturer]
-%Vendor%=Inst,NT@INF_ARCH@
+XenAgent_CopyFiles = 11
 
-[Inst.NT@INF_ARCH@]
-; DisplayName              Section           DeviceID
-; -----------              -------           --------
-
-%XenIfaceDevice.DeviceDesc% =XenIface_Device, 
XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_IFACE&REV_0900000A
-%XenIfaceDevice.DeviceDesc% =XenIface_Device, 
XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_IFACE&REV_0900000A
-%XenIfaceDevice.DeviceDesc% =XenIface_Device, 
XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_IFACE&REV_0900000A
+[SourceDisksNames]
+0=%DiskDesc%
 
-[XenIface_Device]
-CopyFiles=XenIface_Device.Copy
-CopyFiles=ServiceDestDir.Copy
+[SourceDisksFiles]
+xeniface.sys=0,,
+xenagent.exe=0,,
+xenagent.dll=0,,
 
-[XenIFace_Device.Copy]
+[XenIface_CopyFiles]
 xeniface.sys
 
-[ServiceDestDir.Copy]
+[XenAgent_CopyFiles]
 
xenagent_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.exe,xenagent.exe
 
xenagent_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,xenagent.dll
 
-[Xeniface_Device.Services]
-AddService = xeniface, %SPSVCINST_ASSOCSERVICE%, xeniface_Service_Inst
-AddService = xenagent, %XENAGENT_FLAGS%, 
xenagent_Service_Inst,xenagent_EventLog
-
-[xeniface_Service_Inst]
-DisplayName    = %XenIfaceDevice.DeviceDesc%
-ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
-StartType      = 3               ; SERVICE_DEMAND_START 
-ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
-ServiceBinary  = %12%\xeniface.sys
-LoadOrderGroup = Extended Base
-AddReg = Xeniface_Parameters
+[Manufacturer]
+%Vendor%=Inst,NT@INF_ARCH@
 
-[Xeniface_Parameters]
+[Inst.NT@INF_ARCH@]
+; DisplayName       Section        DeviceID
+; -----------       -------        --------
+%XenIfaceName% =    XenIface_Inst, 
XENBUS\VEN_@VENDOR_PREFIX@@VENDOR_DEVICE_ID@&DEV_IFACE&REV_0900000B
+%XenIfaceName% =    XenIface_Inst, 
XENBUS\VEN_@VENDOR_PREFIX@0001&DEV_IFACE&REV_0900000B
+%XenIfaceName% =    XenIface_Inst, 
XENBUS\VEN_@VENDOR_PREFIX@0002&DEV_IFACE&REV_0900000B
+
+[XenIface_Inst]
+CopyFiles=XenIface_CopyFiles
+CopyFiles=XenAgent_CopyFiles
+
+[Xeniface_Inst.Services]
+AddService = xeniface, 0x0002, XenIface_Service
+AddService = xenagent, 0x0800, XenAgent_Service,XenAgent_EventLog
+
+[XenIface_Service]
+DisplayName=%XenIfaceName%
+ServiceType=%SERVICE_KERNEL_DRIVER%
+StartType=%SERVICE_DEMAND_START%
+ErrorControl=%SERVICE_ERROR_NORMAL%
+ServiceBinary=%12%\xeniface.sys
+LoadOrderGroup=Extended Base
+AddReg=XenIface_Parameters
+
+[XenIface_Parameters]
 HKR,"Parameters",,0x00000010
 
-[xenagent_Service_Inst]
-DisplayName    = %xenagent.SVCDESC%
-ServiceType    = 16              ; SERVICE_WIN32_OWN_PROCESS
-StartType      = 2               ; SERVICE_AUTO_START 
-ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
-ServiceBinary  = 
%11%\xenagent_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.exe
+[XenAgent_Service]
+DisplayName=%XenAgentName%
+ServiceType=%SERVICE_WIN32_OWN_PROCESS%
+StartType=%SERVICE_AUTO_START%
+ErrorControl=%SERVICE_ERROR_NORMAL%
+ServiceBinary=%11%\xenagent_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.exe
 
-[xenagent_EventLog]
-AddReg=xenagent_EventLog_AddReg
+[XenAgent_EventLog]
+AddReg=XenAgent_AddReg
 
-[xenagent_EventLog_AddReg]
+[XenAgent_AddReg]
 
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\xenagent_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll"
 HKR,,TypesSupported,0x00010001,7
 
-[SourceDisksNames]
-1 = %DiskId1%,,,""
-
-[SourceDisksFiles]
-xeniface.sys  = 1,,
-xenagent.exe = 1,,
-xenagent.dll = 1,,
-
 [Strings]
-SPSVCINST_ASSOCSERVICE= 0x00000002
-Vendor= "@VENDOR_NAME@" 
-DiskId1 = "@PRODUCT_NAME@ Interface Package"
-XenIfaceDevice.DeviceDesc = "@PRODUCT_NAME@ Interface"
-XENAGENT_FLAGS= 0x00000800
-xenagent.SVCDESC= "@PRODUCT_NAME@ Agent"
+Vendor="@VENDOR_NAME@"
+DiskDesc="@PRODUCT_NAME@ Interface Package"
+XenIfaceName="@PRODUCT_NAME@ Interface"
+XenAgentName="@PRODUCT_NAME@ Agent"
+
+SERVICE_BOOT_START=0x0
+SERVICE_SYSTEM_START=0x1
+SERVICE_AUTO_START=0x2
+SERVICE_DEMAND_START=0x3
+SERVICE_DISABLED=0x4
+
+SERVICE_KERNEL_DRIVER=0x1
+SERVICE_WIN32_OWN_PROCESS=0x10
+
+SERVICE_ERROR_IGNORE=0x0
+SERVICE_ERROR_NORMAL=0x1
+SERVICE_ERROR_SEVERE=0x2
+SERVICE_ERROR_CRITICAL=0x3
-- 
2.44.0.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.