;/*++
;
;Copyright (c) 2011 Realtek Corporation All rights Reserved
;
;Module Name:
;
;    RtkUartMp.INF
;
;Abstract:
;    INF file to installing Realtek bluetooth UART bus driver 
;
;    Use Devcon.exe to install for non-SoC platform.
;        "devcon install RtkUart.inf SerialBus_RootEnum"
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%REALTEK%
DriverVer=01/28/2016,2.0.98.2
CatalogFile=RtkUartMp.cat

[DestinationDirs]
DefaultDestDir = 12 ;;windows\system32\drivers
RtkBtUart.CopyList=12   ;; 11, windows\system32

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
RtkUartMp.sys  = 1,,
rtl8723b_mp_bt40_fw_asic_rom_patch.bin = 1
rtl8723b_config.bin = 1

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%REALTEK%=RealtekMsWin,NTx86,NTAMD64,NTARM

[RtkBtUart.CopyList]
RtkUartMp.sys

;;[Rtk8723BS.CopyList]
;;rtl8723b_mp_bt40_fw_asic_rom_patch.bin
;;rtl8723b_config.bin


;*****************************************
; Serial bus driver install Section
;*****************************************

[RealtekMsWin.NTx86]
%RtkBtSoc.DeviceDesc%=Rtk8723BS, ACPI\VEN_OBDA&DEV_8723

[RealtekMsWin.NTamd64]
%RtkBtSoc.DeviceDesc%=Rtk8723BS, ACPI\VEN_OBDA&DEV_8723

[RealtekMsWin.NTARM]
%RtkBtSoc.DeviceDesc%=Rtk8723BS, ACPI\VEN_OBDA&DEV_8723

;*****************************************
; 8723BS Section
;*****************************************

[Rtk8723BS.NT]
CopyFiles=RtkBtUart.CopyList


[Rtk8723BS.NT.HW]
AddReg=Rtk8723BS.NT.AddReg

[Rtk8723BS.NT.AddReg]
; Reference: http://msdn.microsoft.com/en-us/library/ff546320.aspx
HKR,,DeviceCharacteristics,0x10001,0x0100      ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"   ; Allow generic-all access to Built-in administrators and Local system 
HKR, ,"RemoteWakeEnabled",0x00010001,1
HKR, ,"DeviceRemoteWakeSupported",0x00010001,1
HKLM, SYSTEM\CurrentControlSet\services\BTHPORT\Parameters, "SystemRemoteWakeSupported", 0x00010001,1
HKLM, SYSTEM\CurrentControlSet\services\RtkUartMp\Parameters, "RtkToolMode", 0x00010001,1
HKLM, SYSTEM\CurrentControlSet\services\RtkUartMp\Parameters, "UseRomCode", 0x00010001,1

[Rtk8723BS.NT.Services]
AddService = RtkUartMp,%SPSVCINST_ASSOCSERVICE%, Bus_Service_Inst

;*****************************************
; public section
;*****************************************
[Bus_Service_Inst]
DisplayName    = %RtkBtUart.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\RtkUartMp.sys
LoadOrderGroup = Extended Base

[Strings]
;Non-Localizable
SPSVCINST_ASSOCSERVICE= 0x00000002

;Localizable
REALTEK= "Realtek Semiconductor Corp"
DiskId1 = "Realtek Bluetooth UART MP Driver Installation Disk #1"
RtkBtSoc.DeviceDesc = "Realtek Bluetooth UART MP Driver"
RtkBtUart.SVCDESC = "Realtek Bluetooth UART MP Driver"
