win-pvdrivers

view xenvbd/xenvbd.inx @ 310:60372bd2582d

First cut of putting xenbus config details in the .inf file - xenvbd may yet pass WHQL
author James Harper <james.harper@bendigoit.com.au>
date Fri Jun 13 14:16:50 2008 +1000 (2008-06-13)
parents b4f7d75fbe24
children c25d8b936290
line source
1 [Version]
2 Signature="$WINDOWS NT$"
3 Class=SCSIAdapter
4 ClassGuid={4D36E97B-E325-11CE-BFC1-08002BE10318}
5 Provider=%XenGplPv%
6 CatalogFile="XenGPLPV.cat"
8 [DestinationDirs]
9 DefaultDestDir = 12
11 [ControlFlags]
12 ExcludeFromSelect=*
14 [Manufacturer]
15 %XenGplPv%=XenGplPv,NTx86
16 %XenGplPv%=XenGplPv,NTamd64
18 [XenGplPv.NTx86]
19 %XenVbd.DRVDESC%=XenVbd_Inst, XEN\VBD
21 [XenGplPv.NTamd64]
22 %XenVbd.DRVDESC%=XenVbd_Inst, XEN\VBD
24 [XenVbd_Inst.NT]
25 CopyFiles=XenVbd.CopyFiles
27 [XenVbd.CopyFiles]
28 xenvbd.sys
30 [XenVbd_Inst.NT.Services]
31 AddService=XenVbd,2,XenVbd_Service, XenVbd_EventLog
33 [XenVbd_Service]
34 DisplayName = %XenVbd.SVCDESC%
35 ServiceType = 1
36 StartType = 0
37 ErrorControl = 1
38 LoadOrderGroup = System Bus Extender
39 ServiceBinary = %12%\xenvbd.sys
40 AddReg = XenVbd_Service_AddReg,XenVbd_XenConfig_AddReg
42 [XenVbd_Service_AddReg]
43 HKR,"Parameters\PnpInterface", "0", 0x00010001, 0x00000001
44 ; Add XenHide as a filter to IDE Controllers
45 HKLM,SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318},UpperFilters,0x00010008,XenHide
46 ; Add XenHide as a filter to SCSI Controllers
47 HKLM,SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318},UpperFilters,0x00010008,XenHide
49 [XenVbd_EventLog]
50 AddReg = XenVbd_EventLog_AddReg
52 [XenVbd_EventLog_AddReg]
53 HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\XenVbd.sys"
54 HKR,,TypesSupported,0x00010001,7
56 [XenVbd_Inst.NT.HW]
57 AddReg = XenVbd_XenConfig_AddReg, XenVbd_UpperFilter_AddReg
59 [XenVbd_XenConfig_AddReg]
60 HKR,"XenConfig\ring-ref", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_RING%
61 HKR,"XenConfig\event-channel", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_EVENT_CHANNEL_IRQ%
62 HKR,"XenConfig\device-type", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_READ_STRING_FRONT%
63 HKR,"XenConfig\sectors", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_READ_STRING_BACK%
64 HKR,"XenConfig\sector-size", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_READ_STRING_BACK%
65 HKR,"XenConfig\vectors", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_VECTORS%
66 HKR,"XenConfig\grants", "type", %FLG_ADDREG_TYPE_DWORD%, %XEN_INIT_TYPE_GRANT_ENTRIES%
67 HKR,"XenConfig\grants", "value", %FLG_ADDREG_TYPE_DWORD%, 144
69 [XenVbd_UpperFilter_AddReg]
70 HKR,,UpperFilters,0x10000,XenConfig
72 [XenConfig_Inst.NT.HW]
73 CopyFiles=XenConfig.CopyFiles
75 [XenConfig.CopyFiles]
76 xenconfig.sys
78 [XenConfig_Inst.NT.Services]
79 AddService=XenConfig,0,XenConfig_Service
81 [XenConfig_Service]
82 DisplayName = %XenConfig.SVCDESC%
83 ServiceType = 1
84 StartType = 0
85 ErrorControl = 1
86 LoadOrderGroup = System Bus Extender
87 ServiceBinary = %12%\xenconfig.sys
88 AddReg = XenConfig_Service_AddReg
90 [XenConfig_Service_AddReg]
91 HKR,"Parameters\PnpInterface", "0", 0x00010001, 0x00000001
93 [SourceDisksFiles]
94 xenvbd.sys=1
95 xenconfig.sys=1
97 [SourceDisksNames.x86]
98 1 = %DISK_NAME%,,,.\i386
100 [SourceDisksNames.amd64]
101 1 = %DISK_NAME%,,,.\amd64
103 [Strings]
104 XenGplPv = "Xen GPL PV Driver Developers"
105 XenVbd.SVCDESC = "Xen Block Device Driver"
106 XenVbd.DRVDESC = "Xen Block Device Driver"
107 XenConfig.DRVDESC = "Xen Config Resource Generator"
108 DISK_NAME = "Xen Block Device Driver Install Disk"
109 FLG_ADDREG_TYPE_DWORD = 0x00010001
110 XEN_INIT_TYPE_END = 0
111 XEN_INIT_TYPE_WRITE_STRING = 1
112 XEN_INIT_TYPE_RING = 2
113 XEN_INIT_TYPE_EVENT_CHANNEL = 3
114 XEN_INIT_TYPE_EVENT_CHANNEL_IRQ = 4
115 XEN_INIT_TYPE_READ_STRING_FRONT = 5
116 XEN_INIT_TYPE_READ_STRING_BACK = 6
117 XEN_INIT_TYPE_VECTORS = 7
118 XEN_INIT_TYPE_GRANT_ENTRIES = 8
119 XEN_INIT_TYPE_COPY_PTR = 9