;/*++
;
;Copyright (c) 1990-1999 Microsoft Corporation All rights Reserved
;
;Module Name:
;
;    iBtFltCoex.INF
;
;Abstract:
;    INF file for installing coexistance filter driver
;    This file is dependant on bth.inf
;
;--*/

[Version]
Signature   = "$WINDOWS NT$"
Class       = Bluetooth
ClassGuid   = {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
Provider    = %PROVIDER_NAME%
DriverVer=04/15/2013,3.0.1304.0338
CatalogFile = iBtFltCoex_WP8.cat
CatalogFile.ntamd64 = iBtFltCoex_WP8.cat


[SourceDisksNames]
1=%SOURCEDISK1%,,,\Win32

[SourceDisksNames.amd64]
1=%SOURCEDISK1%,,,\Win64

[SourceDisksFiles]
btmhsf.sys=1
ibtusb.sys=1
ibtrmgmt.dll=1
WdfCoInstaller01011.dll = 1

[DestinationDirs]
btmhsf.Copy = 12                    ;DIRID_DRIVERS
ibtrmgmt.Copy = 11
btmhsf_CoInstaller_CopyFiles = 11


[Manufacturer]
%COMPANY_NAME% = Device, NTx86.6.2, NTamd64.6.2, NTx86, NTamd64


[Device.NTx86.6.2]
%USB\VID_8087&PID_07DC% = Install_HighSpeed_WP, USB\VID_8087&PID_07DC

[Device.NTamd64.6.2]
%USB\VID_8087&PID_07DC% = Install_HighSpeed_WP, USB\VID_8087&PID_07DC

[Device.NTx86]
%USB\VID_8087&PID_07DC% = Install_HighSpeed_WP_NORK, USB\VID_8087&PID_07DC

[Device.NTamd64]
%USB\VID_8087&PID_07DC% = Install_HighSpeed_WP_NORK, USB\VID_8087&PID_07DC


; --------------Start filter Driver WP install section (W8)

[Install_HighSpeed_WP_NORK]
Include=bth.inf
Needs=BthUsb.NT
CopyFiles=btmhsf.Copy

[Install_HighSpeed_WP_NORK.HW]
Needs=BthUsb.NT.HW
AddReg=btmhsf.HW.AddReg.Filters
AddReg=btmhsf.HW.AddReg.HubSelectiveSuspendWorkAround

[Install_HighSpeed_WP_NORK.Services]
Needs=BthUSB.NT.Services
AddService = ibtusb,, ibtusb_iBT_Service_Inst,ibtusb_iBT_EventLog_Inst
AddService = btmhsf,, BTMHSF.ServiceInst_W8

[Install_HighSpeed_WP_NORK.Services]
Needs=BthUSB.NT.Services
AddService = ibtusb,, ibtusb_iBT_Service_Inst,ibtusb_iBT_EventLog_Inst
AddService = btmhsf,, BTMHSF.ServiceInst_W8

[Install_HighSpeed_WP_NORK.CoInstallers]
AddReg          = btmhsf_CoInstaller_AddReg
CopyFiles       = btmhsf_CoInstaller_CopyFiles

[Install_HighSpeed_WP_NORK.Wdf]
KmdfService              = btmhsf, btmhsf_wdfsect


[Install_HighSpeed_WP]
Include=bth.inf
Needs=BthUsb.NT
CopyFiles=btmhsf.Copy, ibtrmgmt.Copy

[Install_HighSpeed_WP.HW]
Needs=BthUsb.NT.HW
AddReg=btmhsf.HW.AddReg.Filters
AddReg=btmhsf.HW.AddReg.HubSelectiveSuspendWorkAround
AddReg=ibtrmgmt.AddReg

[Install_HighSpeed_WP.Services]
Needs=BthUSB.NT.Services
AddService = ibtusb,, ibtusb_iBT_Service_Inst,ibtusb_iBT_EventLog_Inst
AddService = btmhsf,, BTMHSF.ServiceInst_W8

[Install_HighSpeed_WP.CoInstallers]
AddReg          = btmhsf_CoInstaller_AddReg
CopyFiles       = btmhsf_CoInstaller_CopyFiles

[ibtrmgmt.Copy]
ibtrmgmt.dll

[ibtrmgmt.AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Radio Support",SupportDLL,0x20000,"%SystemRoot%\System32\ibtrmgmt.dll"


[Install_HighSpeed_WP.Wdf]
KmdfService              = btmhsf, btmhsf_wdfsect

; --------------End filter Driver WP install section (W8)



[btmhsf.Copy]
ibtusb.sys 
btmhsf.sys


[btmhsf.HW.AddReg.Filters]
HKR,,"LowerFilters",0x00010008,"ibtusb"
HKR,,"LowerFilters", 0x00010008, "btmhsf" 
HKR, ,"RemoteWakeEnabled",0x00010001,1
HKR, ,"DeviceRemoteWakeSupported",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters",SystemRemoteWakeSupported ,0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters",DIDVendorIDSource,0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters",DIDVendorID,0x00010001,0x00008087
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters",DIDProductID,0x00010001,0x000007DC
HKLM,"SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters",DIDVersion,0x00010001,0x00000800




[btmhsf.HW.AddReg.HubSelectiveSuspendWorkAround]
HKLM, System\CurrentControlSet\Control\usbflags\808700240000, NoClearTTBufferOnCancel, 0x00000001, 1
HKLM, System\CurrentControlSet\Control\usbflags\808700200000, NoClearTTBufferOnCancel, 0x00000001, 1


[btmhsf_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01011.dll,WdfCoInstaller"

[btmhsf_CoInstaller_CopyFiles]
WdfCoInstaller01011.dll

[btmhsf_wdfsect]
KmdfLibraryVersion       = 1.11

[BTMHSF.ServiceInst_W8]
;DisplayName=%BTMHSF.ServiceDesc%
ServiceType=1					; SERVICE_KERNEL_DRIVER
StartType=3					; SERVICE_DEMAND_START 
ErrorControl=1					; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\btmhsf.sys
LoadOrderGroup = PNP Filter
AddReg=BTMHSF.ServiceInst.EnableHS
AddReg=BTMHSF.ServiceInst.EnableHS085

[BTMHSF.ServiceInst.EnableHS085]
HKR,Parameters,{2E454E7B-105D-4ed0-B382-3BD48FA299CC},0x00010001,1

[BTMHSF.ServiceInst.EnableHS]
HKR,Parameters,{2AF3B5F3-9F38-4936-9349-CFA669E16FE2},0x00010001,3
HKR,Parameters,OBEXIntervalAMP,0x00010001,0x00000004
HKR,Parameters,MaxAMPSwitches,0x00010001,0x00000000
HKR,Parameters,SwitchSpeedAMP,0x00010001,0x00001f40
HKR,Parameters,SwitchSpeedBR,0x00010001,0x00000bb8
HKR,Parameters,{E9D88F82-245A-4381-A254-6D7BF0BBB0EC},0x00010001,0x000003e8

[ibtusb_iBT_Service_Inst]
DisplayName    = %ibtusb.SVCDESC_IBT%
ServiceType    = 1 ;SERVICE_KERNEL_DRIVER
StartType      = 3 ;SERVICE_DEMAND_START
ErrorControl   = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\ibtusb.sys
LoadOrderGroup = PNP Filter
AddReg=ibtusb_iBT_Service_Inst.Parameters

[ibtusb_iBT_Service_Inst.Parameters]
HKR,Parameters,OverrideInquiry,0x00010001,0x00000001
HKR,Parameters,InquiryLength,0x00010001,0x00000005

;
; Event Log install section
;
[ibtusb_iBT_EventLog_Inst]
AddReg=ibtusb_iBT_EventLog_AddReg

[ibtusb_iBT_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\ibtusb.sys"
HKR,,TypesSupported,0x00010001,7


[Strings]
PROVIDER_NAME ="Intel"
COMPANY_NAME  = "Intel Corporation"
ibtusb.SVCDESC_IBT = "Intel(R) Wireless Bluetooth(R) 4.0 + HS Adapter"
USB\VID_8087&PID_07DC = "Intel(R) Wireless Bluetooth(R) 4.0 + HS Adapter"
SOURCEDISK1 = "Intel(R) Wireless Bluetooth(R) 4.0 + HS Adapter Install Disk"
