;------------------------------------------------------------------------------
; TW6801CAP.INF
;------------------------------------------------------------------------------

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Msft%

[ControlFlags]
;ExcludeFromSelect=*

[Manufacturer]
%MsftMfg%=Techwell

[Techwell]
-------------------
%TW6801CAP.Device%  = TW6801CAP.Device,PCI\VEN_1797&DEV_6801 ; tw6801 video
%TW6801BCAP.Device% = TW6801BCAP.Device,PCI\VEN_1797&DEV_6804 ; tw6801b video

[TW6801xCAP.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,TW6801.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
;HKR,"DriverData","XParam",0x00010001, 0x40, 0x01, 0x16, 0x00

;------------------------------------------------------------------------------
; These are the files we need installed
;------------------------------------------------------------------------------

[TW6801xCAP.CopyDrivers]
TW6801.sys
stream.sys

[TW6801xCAP.KnownFiles]
TW6801.sys=safe

[DestinationDirs]
TW6801xCAP.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
TW6801xCAP.CopyFilters=11

[TW6801CAP.Device]
Include    = ks.inf, ksfilter.inf						;, kscaptur.inf
Needs      = KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg     = TW6801xCAP.AddReg,Device.AddReg
CopyFiles  = TW6801xCAP.CopyDrivers,TW6801xCAP.CopyFilters
KnownFiles = TW6801xCAP.KnownFiles

[TW6801CAP.Device.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoCrossbar,

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoCapture.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%TW6801CAP.Capture%

[VideoCrossbar]
AddReg=VideoXBar.AddReg

[VideoXBar.AddReg]
HKR,,CLSID,,{71F96460-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%TW6801CAP.Crossbar%

[TW6801CAP.Device.Services]
AddService = TW6801CAP,0x00000002,TW6801CAP.ServiceInstall

[TW6801CAP.ServiceInstall]
DisplayName   = %TW6801CAP.Capture%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\TW6801.sys

[TW6801BCAP.Device]
Include    = ks.inf, ksfilter.inf						;, kscaptur.inf
Needs      = KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg     = TW6801xCAP.AddReg,Device.AddReg
CopyFiles  = TW6801xCAP.CopyDrivers,TW6801xCAP.CopyFilters
KnownFiles = TW6801xCAP.KnownFiles

[TW6801BCAP.Device.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCaptureB,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoCrossbarB,

[VideoCaptureB]
AddReg=VideoCaptureB.AddReg

[VideoCaptureB.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%TW6801BCAP.Capture%

[VideoCrossbarB]
AddReg=VideoXBarB.AddReg

[VideoXBarB.AddReg]
HKR,,CLSID,,{71F96460-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%TW6801BCAP.Crossbar%

[TW6801BCAP.Device.Services]
AddService = TW6801CAP,0x00000002,TW6801BCAP.ServiceInstall

[TW6801BCAP.ServiceInstall]
DisplayName   = %TW6801BCAP.Capture%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\TW6801.sys

[Strings]
Msft		    = "ShenZhen Aopvision Co. Ltd"
MsftMfg		    = "ShenZhen Aopvision Co. Ltd"

TW6801CAP.Device    = "Aopvision PCI 6801 Capture"
TW6801CAP.Capture   = "PCI680x Stream Capture"
Tw6801CAP.Crossbar  = "PCI680x Crossbar Filter"

TW6801BCAP.Device   = "Aopvision PCI 6801B Capture"
TW6801BCAP.Capture  = "PCI680xB Stream Capture"
Tw6801BCAP.Crossbar = "PCI680xB Crossbar Filter"

SERVICE_KERNEL_DRIVER = 1
SERVICE_AUTO_START    = 2
SERVICE_ERROR_NORMAL  = 1