;   Mantis BDA driver Install Information File For Win2000, WinXP, MCE
;
;       V1.0.1.5 2006/04/11 00:00:00
;
;   Copyright (c) 2005-2006 DTV-DVB Technology Inc.
;   All Rights Reserved.
;

[Version]
signature           = "$CHICAGO$"
Class               = Media
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %DTV-DVB%
LayoutFile          = Layout.inf
DriverVer           = 04/11/2006,1.0.1.5
CatalogFile         = MtsBDA.cat
CatalogFile.NTAMD64 = AMD64\MtsBDA.cat
CatalogFile.NTIA64  = IA64\MtsBDA.cat

[DestinationDirs]
MTSBDA.CopyDrivers = 10,System32\Drivers 

[Manufacturer]
%MfgName% = DevicesSection, NTAMD64, NTIA64

[ControlFlags]
ExcludeFromSelect = *
ExcludeFromSelect.NT = *

[SourceDisksNames]
1 = "DTV-DVB Mantis BDA Driver", MtsBda.inf, , ""

[SourceDisksNames.AMD64]
1 = "DTV-DVB Mantis BDA Driver", MtsBda.inf, , \AMD64

[SourceDisksNames.IA64]
1 = "DTV-DVB Mantis BDA Driver", MtsBda.inf, , \IA64

[SourceDisksFiles]
MtsBda.sys=1

[DevicesSection]
; DisplayName                   Section        DeviceID
; -----------                   -------        --------
"DTV-DVB Mantis BDA Receiver" = MTSBDA.Device, PCI\VEN_1822&DEV_4E35

[DevicesSection.NTAMD64]
; DisplayName                   Section        DeviceID
; -----------                   -------        --------
"DTV-DVB Mantis BDA Receiver" = MTSBDA.Device, PCI\VEN_1822&DEV_4E35

[DevicesSection.NTIA64]
; DisplayName                   Section        DeviceID
; -----------                   -------        --------
"DTV-DVB Mantis BDA Receiver" = MTSBDA.Device, PCI\VEN_1822&DEV_4E35

[MTSBDA.Device]
Include    = ks.inf, kscaptur.inf, bda.inf
Needs      = KS.Registration, KSCAPTUR.Registration, BDA.Installation
AddReg     = MTSBDA.AddReg
CopyFiles  = MTSBDA.CopyDrivers

[MTSBDA.Device.NT]
Include    = ks.inf, kscaptur.inf, bda.inf
Needs      = KS.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg     = MTSBDA.AddReg
CopyFiles  = MTSBDA.CopyDrivers

[MTSBDA.Device.NT.Services]
Addservice = MTSBDA, 0x00000002, MTSBDA.AddService

[MTSBDA.AddService]
DisplayName    = %MTSBDA.FriendlyName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\MtsBda.sys
LoadOrderGroup = Base

[MTSBDA.CopyDrivers]
MtsBda.sys

[MTSBDA.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,MtsBda.sys
HKR,,PageOutWhenUnopened,3,01

; Skip scan shift frequency (+-167) - For DVB-T
; Normal: +- 167KHz will be scanned
HKR,"DriverData","ShiftFreqScan",0x00010001, 0x00,0x00,0x00,0x00
; Don't scan +-167KHz, just return lock failure
;HKR,"DriverData","ShiftFreqScan",0x00010001, 0x01,0x00,0x00,0x00

; Relock monitor
; Normal
HKR,"DriverData","RelockMonitor",0x00010001, 0x00,0x00,0x00,0x00
; Enable Relock monitor
;HKR,"DriverData","RelockMonitor",0x00010001, 0x01,0x00,0x00,0x00

; DiSEqC Selection
; 0: Normal
HKR,"DriverData","DiSEqC",0x00010001, 0x00,0x00,0x00,0x00
; 1: DiSEqC A
;HKR,"DriverData","DiSEqC",0x00010001, 0x01,0x00,0x00,0x00
; 2: DiSEqC B
;HKR,"DriverData","DiSEqC",0x00010001, 0x02,0x00,0x00,0x00
; 3: DiSEqC C
;HKR,"DriverData","DiSEqC",0x00010001, 0x03,0x00,0x00,0x00
; 4: DiSEqC D
;HKR,"DriverData","DiSEqC",0x00010001, 0x04,0x00,0x00,0x00

; LNB Power
; 0: OFF
;HKR,"DriverData","LNBPower",0x00010001, 0x00,0x00,0x00,0x00
; 1: ON
HKR,"DriverData","LNBPower",0x00010001, 0x01,0x00,0x00,0x00

; 22k Tone
; 0: ON/OFF by LNB switch frequency
HKR,"DriverData","Tone",0x00010001, 0x00,0x00,0x00,0x00
; 1: OFF
;HKR,"DriverData","Tone",0x00010001, 0x01,0x00,0x00,0x00
; 2: ON
;HKR,"DriverData","Tone",0x00010001, 0x02,0x00,0x00,0x00

; Tone and Data Burst
; 0: Tone and data burst off
HKR,"DriverData","ToneDataBurst",0x00010001, 0x00,0x00,0x00,0x00
; 1: Tone burst on
;HKR,"DriverData","ToneDataBurst",0x00010001, 0x01,0x00,0x00,0x00
; 2: Data burst on
;HKR,"DriverData","ToneDataBurst",0x00010001, 0x02,0x00,0x00,0x00

; For ATSC frequency shift
; 0: No shift
;HKR,"DriverData","ATSCFreqShift",0x00010001, 0x00,0x00,0x00,0x00
; 1750: Shift 1750KHz
HKR,"DriverData","ATSCFreqShift",0x00010001, 0xD6,0x06,0x00,0x00

; TSGenSimulator
; 0: Disabled, 0x10: MCE DVB-T
HKR,"DriverData","TSGenSimulator",0x00010001, 0x00,0x00,0x00,0x00

; Device/Driver information
;HKR,"DriverData","SupportHWInfo",0x00010000, "Mantis PCI DVB FTA/CI series"
;HKR,"DriverData","Device_Name",0x00010000, "1034"

;command table
; 0: DTV-DVB remote, 1: CyberLink, 2: IVI, 3: MCE, 4: DTV-DVB (WM_INPUT), 5: Custom, 0xFFFF: Disable RC
HKR,"DriverData","RC_Configuration",0x00010001, 0x00, 0x00, 0x00, 0x00

; //IR system code checklist1
HKR,"DriverData","IRSYSCODECHECK1",0x00010001, 0x00,0xFF,0x00,0x00
; //IR system code checklist2
;HKR,"DriverData","IRSYSCODECHECK2",0x00010001, 0x01,0xAA,0x00,0x00

HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D}
HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F}
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81}
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81},Name,,"Antenna In Pin"

; Load Mantis IR driver
HKR,"ENUM\HIDEVICE",pnpid,,"MtsHID.VIRTUAL"

[MTSBDA.Device.Interfaces]
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBS%, MTSBDATunerDVBS.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBT%, MTSBDATunerDVBT.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterMCEDVBT%, MTSBDATunerMCEDVBT.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBC%, MTSBDATunerDVBC.Interfaces,
AddInterface    = %KSCATEGORY_BDARECEIVER%, %KSSTRING_BdaSWVirtualBDAFilter%, MTSBDAVirtualBDA.Interfaces,

[MTSBDA.Device.NT.Interfaces]
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBS%, MTSBDATunerDVBS.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBT%, MTSBDATunerDVBT.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterMCEDVBT%, MTSBDATunerMCEDVBT.Interfaces,
AddInterface    = %KSCATEGORY_BDATUNER%,    %KSSTRING_BdaSWTunerFilterDVBC%, MTSBDATunerDVBC.Interfaces,
AddInterface    = %KSCATEGORY_BDARECEIVER%, %KSSTRING_BdaSWVirtualBDAFilter%, MTSBDAVirtualBDA.Interfaces,

[MTSBDATunerDVBS.Interfaces]
AddReg  = MTSBDATunerDVBS.Interface.AddReg
[MTSBDATunerDVBS.Interface.AddReg]
HKR,,CLSID,,%MTSBDA.CLSID%
HKR,,FriendlyName,,%MTSBDATunerDVBS.FriendlyName%

[MTSBDATunerDVBT.Interfaces]
AddReg  = MTSBDATunerDVBT.Interface.AddReg
[MTSBDATunerDVBT.Interface.AddReg]
HKR,,CLSID,,%MTSBDA.CLSID%
HKR,,FriendlyName,,%MTSBDATunerDVBT.FriendlyName%

[MTSBDATunerMCEDVBT.Interfaces]
AddReg  = MTSBDATunerMCEDVBT.Interface.AddReg
[MTSBDATunerMCEDVBT.Interface.AddReg]
HKR,,CLSID,,%MTSBDA.CLSID%
HKR,,FriendlyName,,%MTSBDATunerMCEDVBT.FriendlyName%

[MTSBDATunerDVBC.Interfaces]
AddReg  = MTSBDATunerDVBC.Interface.AddReg
[MTSBDATunerDVBC.Interface.AddReg]
HKR,,CLSID,,%MTSBDA.CLSID%
HKR,,FriendlyName,,%MTSBDATunerDVBC.FriendlyName%

[MTSBDAVirtualBDA.Interfaces]
AddReg  = MTSBDAVirtualBDA.Interface.AddReg
[MTSBDAVirtualBDA.Interface.AddReg]
HKR,,CLSID,,%MTSBDA.CLSID%
HKR,,FriendlyName,,%MTSBDAVirtualBDA.FriendlyName%

[Strings]
DTV-DVB         = "DTV-DVB"
MfgName         = "DTV-DVB"
MTSBDA.CLSID    = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED
MTSBDA.DeviceDesc        = "DTV-DVB Mantis BDA Driver"
MTSBDA.FriendlyName      = "DTV-DVB Mantis BDA Driver"
MTSBDATunerDVBS.FriendlyName    = "DTV-DVB Mantis DVBS BDA Receiver"
MTSBDATunerDVBT.FriendlyName    = "DTV-DVB Mantis DVBT BDA Receiver"
MTSBDATunerMCEDVBT.FriendlyName = "DTV-DVB Mantis MCE DVBT BDA Receiver"
MTSBDATunerDVBC.FriendlyName    = "DTV-DVB Mantis DVBC BDA Receiver"
MTSBDAVirtualBDA.FriendlyName   = "DTV-DVB Mantis Virtual BDA Receiver"
KSSTRING_BdaFilter	 = "{2BC59444-39D8-49cb-ADD5-AB91AA7247AE}"

;
; The following items should be moved to KS_registration - TCP
;
KSCATEGORY_BDATUNER     = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSCATEGORY_BDARECEIVER  = "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"
MediaCategories         = "SYSTEM\CurrentControlSet\Control\MediaCategories"

KSSTRING_BdaSWTunerFilterDVBS    = "{ACEC2D03-BDEC-44c0-9A97-C577F6EE2602}"
KSSTRING_BdaSWTunerFilterDVBT    = "{CCB6E038-21F5-4c73-8F84-65EA23B8FAE1}"
KSSTRING_BdaSWTunerFilterMCEDVBT = "{A385DA0A-9190-4f34-BC18-9F1433BF97CE}"
KSSTRING_BdaSWTunerFilterDVBC    = "{BCC1431A-B717-4f7d-B47B-11EF8363798C}"
KSSTRING_BdaSWVirtualBDAFilter   = "{D0543381-19F7-412a-99D6-652D586A2CF7}"

;
; ServiceType values
SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008
SERVICE_WIN32_OWN_PROCESS   = 0x00000010
SERVICE_WIN32_SHARE_PROCESS = 0x00000020
SERVICE_INTERACTIVE_PROCESS = 0x00000100
SERVICE_INTERACTIVE_SHARE_PROCESS   = 0x00000120

; StartType values
SERVICE_BOOT_START          = 0x00000000
SERVICE_SYSTEM_START        = 0x00000001
SERVICE_AUTO_START          = 0x00000002
SERVICE_DEMAND_START        = 0x00000003
SERVICE_DISABLED            = 0x00000004

; ErrorControl values
SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

; Characteristic flags
NCF_VIRTUAL                 = 0x0001
NCF_WRAPPER                 = 0x0002
NCF_PHYSICAL                = 0x0004
NCF_HIDDEN                  = 0x0008
NCF_NO_SERVICE              = 0x0010
NCF_NOT_USER_REMOVABLE      = 0x0020
NCF_HAS_UI                  = 0x0080
NCF_MODEM                   = 0x0100

; Registry types
REG_MULTI_SZ                = 0x10000
REG_EXPAND_SZ               = 0x20000
REG_DWORD                   = 0x10001

; Win9x Compatible Types
REG_BINARY                  = 17
REG_SZ                      = 0

; Service install flags
SPSVCINST_TAGTOFRONT        = 0x1
SPSVCINST_ASSOCSERVICE      = 0x2
