;
; Copyright (c) Microsoft Corporation.  All rights reserved.
;
;
; Use of this source code is subject to the terms of the Microsoft end-user
; license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
; If you did not accept the terms of the EULA, you are not authorized to use
; this source code. For a copy of the EULA, please see the LICENSE.RTF on your
; install media.
;

; Our variables
#define BUILTIN_ROOT HKEY_LOCAL_MACHINE\Drivers\BuiltIn
#define DRIVERS_DIR $(_PUBLICROOT)\common\oak\drivers

;============================================================================================================

;-------------------------------------------------------------------------
; @CESYSGEN IF WCESHELLFE_MODULES_CTLPNL
; This registry setting controls the checkboxes displayed in the Sounds CPL
; under "enable clicks & taps". Set bit0 if you have a keyboard, set bit1 if
; you have a touch screen. Set bit2 if you have HW buttons (NOTE: for now
; HW buttons are mutually exclusive with the keyboard)
[HKEY_LOCAL_MACHINE\ControlPanel]
;	"InputConfig"=dword:1		; 1 => keybd only
	"InputConfig"=dword:2		; 2 => touch screen only
;	"InputConfig"=dword:3		; 3 => keybd and touch screen
; @CESYSGEN ENDIF WCESHELLFE_MODULES_CTLPNL
;-------------------------------------------------------------------------

;-------------------------------------------------------------------------
; @CESYSGEN IF WCESHELLFE_MODULES_EXPLORER
; @CESYSGEN ENDIF WCESHELLFE_MODULES_EXPLORER
;-------------------------------------------------------------------------

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Timeouts]
    "ACUserIdle"=dword:0               ; in seconds
    "ACSystemIdle"=dword:0    ; in seconds
    "ACSuspend"=dword:0                 ; in seconds
    "BattUserIdle"=dword:0             ; in seconds
    "BattSystemIdle"=dword:0   ; in seconds
    "BattSuspend"=dword:0             ; in seconds


;------------ Display Driver -------------------------------------------------
; @CESYSGEN IF CE_MODULES_DISPLAY
IF BSP_NODISPLAY !

IF BSP_DEEPIDLE_TEST
 ;For testing deep idle, force to screen off in case of useridle
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\UserIdle]
    "Default"=dword:2           ; D2
    "Flags"=dword:1100000       ; POWER_STATE_USERIDLE
    "bkl1:"=dword:4             ; backlight off

; The default behaviour for display drivers is to go to D4 in user idle.
; OEMS who support D2/D3 can override this in the platform
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\UserIdle\{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}]
    "Default"=dword:4           ; D4    ; display off
ENDIF

[HKEY_LOCAL_MACHINE\Drivers\Display\S5PV210\Config]
	"DisplayDll"="display.dll"
	"MemBase"=dword:F8000000
	"MemLen"=dword:2B0
;	"VidMemBase"=dword:47700000		;
;	"VidMemLen"=dword:800000		; 8MBytes
	"PrimaryWin"=dword:1					; 0 - Window0, 1 - window1, ..., 0~4, Window number for Background UI
	"DDOverlayWin"=dword:0			; 0~4 Only 0~2 can use LocalPath, that matched to CAM1~3
									; and must not be overlapped with UIWin.
	"UseAsPost"="CAM1:"			; Camera 1~3, This will be used in VDE driver
									; When using DDrawOverlay with LocalPath this must be matched to DDOverlayWin

[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
	"Display"="display.dll"
	"DisplayPowerClass"="{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}"

; Settings to rotate the screen by 0 degrees clockwise upon download
[HKEY_LOCAL_MACHINE\System\GDI\Rotation]
	"Angle"=dword:0

; GWES will pass this value to the Display driver; the driver will open the
; key to which it points to read its configuration.
[HKEY_LOCAL_MACHINE\System\GDI\DisplayCandidates]
	"Candidate10"="Drivers\\Display\\S5PV210\\Config"

; Let GWES save/restore video memory during suspend/resume
[HKEY_LOCAL_MACHINE\SYSTEM\GWE]
;	"PORepaint"=dword:0 - the display driver handles everything
;	"PORepaint"=dword:1 - gwe should save and restore the bits
;	"PORepaint"=dword:2 - gwe should invalidate and repaint
;	"PORepaint"=dword:3 - gwe and driver need to save video memory
	"PORepaint"=dword:0

; Mediaplayer Video Rendering Method
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Preferences]
;	"RenderMethod"=dword:0 - default (GAPI)
;	"RenderMethod"=dword:1 - use Render GDI key (default GDI)
;	"RenderMethod"=dword:2 - use Direct Draw
	"RenderMethod"=dword:2

ENDIF BSP_NODISPLAY !
; @CESYSGEN ENDIF CE_MODULES_DISPLAY
;-------------------------------------------------------------------------

;------------ Direct3D Mobile -----------------------------------------------
; @CESYSGEN IF DIRECTX_MODULES_D3DM
IF BSP_NOD3DM !
[HKEY_LOCAL_MACHINE\System\D3DM\Drivers]
	"LocalHook"="d3dm_sedrv.dll"
ENDIF BSP_NOD3DM !
; @CESYSGEN ENDIF DIRECTX_MODULES_D3DM
;-------------------------------------------------------------------------


;------------ Touch Driver -------------------------------------------------
; @CESYSGEN IF CE_MODULES_POINTER
IF BSP_NOTOUCH !
	[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
  "DriverName"="touch.dll"
	"MaxCalError"=dword:7
	;x210_7'qunchuang
	"CalibrationData"="1936,2060 3356,3574 593,3582 598,539 3227,522 "
ENDIF BSP_NOTOUCH !
; @CESYSGEN ENDIF CE_MODULES_POINTER
;---------------------------------------------------------------------------

;--------------Key Board Driver---------------------------------------------
; @CESYSGEN IF CE_MODULES_KEYBD
IF BSP_NOKEYBD !
; Hardware keypad/keyboard support
#include "$(_TARGETPLATROOT)\Src\drivers\keybd\keybd.reg"
#include "$(_TARGETPLATROOT)\Src\drivers\keybd\LayMgr.reg"
ELSE
; NOP keyboard support for RDP and HID
#define DEFINE_KEYBOARD_TYPE
#include "$(_PUBLICROOT)\common\oak\drivers\keybd\keybd.reg"
#include "$(_PUBLICROOT)\common\oak\drivers\keybd\LayMgr.reg"
ENDIF ; BSP_NOKEYBD !
; @CESYSGEN ENDIF CE_MODULES_KEYBD
;------------------------------------------------------------------------------

;-------------------------------------------------------------------------
; HIVE BOOT SECTION

[HKEY_LOCAL_MACHINE\Drivers\Resources\IRQ]
	"Identifier"=dword:1
	"Minimum"=dword:1
	"Space"=dword:20
	"Ranges"="1-0x20"

[HKEY_LOCAL_MACHINE\Drivers\Resources\IO]
	"Identifier"=dword:2
	"Minimum"=dword:0
	"Space"=dword:10000
	"Ranges"="0-0xFFFF"

IF IMGHIVEREG
[HKEY_LOCAL_MACHINE\Init\BootVars]
	"Flags"=dword:3
	"RegistryFlags"=dword:1
ENDIF IMGHIVEREG

; END HIVE BOOT SECTION
;-------------------------------------------------------------------------

;-- Notification LED driver----------------------------------------------------------------------------
IF BSP_NONLED !

; HIVE BOOT SECTION

[HKEY_LOCAL_MACHINE\System\Events]
    "SYSTEM/NLedAPIsReady"="Notification LED APIs"

; END HIVE BOOT SECTION

; These registry entries load the NLed driver.  The IClass value must match
; the NLED_DRIVER_CLASS definition in nled.h -- this is how the system
; knows which device is the battery driver.  Note that we are using
; DEVFLAGS_NAKEDENTRIES with this driver.  This tells the device manager
; to instantiate the device with the prefix named in the registry but to look
; for DLL entry points without the prefix.  For example, it will look for Init
; instead of NLD_Init.  This allows the prefix to be changed in the registry (if
; desired) without editing the driver code.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NLed]
   "Prefix"="NLD"
   "Dll"="nleddrvr.dll"
   "Flags"=dword:8                      ; DEVFLAGS_NAKEDENTRIES
   "Order"=dword:0
   "IClass"="{CBB4F234-F35F-485b-A490-ADC7804A4EF3}"
ENDIF BSP_NONLED !
;------------------------------------------------------------------------------

;-- backlight driver ----------------------------------------------------------------
IF BSP_NOBACKLIGHT !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Backlight]
	"Index"=dword:1
	"Prefix"="BKL"
	"Dll"="backlight.dll"
	"Flags"=dword:00010000
	"Index"=dword:1
	"Order"=dword:40
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"

[HKEY_CURRENT_USER\ControlPanel\Backlight]
	"BatteryTimeout"=dword:3c   ;For battery, unit is sec, 	0x3c == 60(dec) - It means that backlight will be turned off after 60 seconds,
	"BacklightOnTap"=dword:1
	"ACTimeout"=dword:258		;For AC Power, unit is sec, 	0x258 == 600(dec),
	"ACBacklightOnTap"=dword:1

[HKEY_CURRENT_USER\ControlPanel\Backlight]
	"OnOff"=dword:00000001
	"Brightness"=dword:00000032			;the brightness of backlight while OS use Battery Power
	"ACBrightness"=dword:00000050			;the brightness of backlight while OS use AC power.
	"ACTimeoutUnchecked"=dword:00000000		;temporary store ACTimeout
	"ACBacklightOnTap"=dword:00000001
	"BatteryTimeoutUnchecked"=dword:00000000	;temporary store BatteryTimeout
	"ExtOnOff"=dword:00000001
ENDIF BSP_NOBACKLIGHT !
;-------------------------------------------------------------------------


; HIVE BOOT SECTION

;-------------- NAND Flash Block Device Driver ----------------------------------
IF BSP_NONANDFS !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NANDFLASH]
	"Prefix"="DSK"
	"Dll"="nandflash.dll"
	"Index"=dword:1
	"Order"=dword:0
	"Profile"="NANDFLASH"
	"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
IF IMGHIVEREG
	"Flags"=dword:1000
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\NANDFLASH]
	"DriverPath"="Drivers\\BuiltIn\\NANDFLASH"
	"LoadFlags"=dword:1			; load synchronously
	"BootPhase"=dword:0
IF IMGHIVEREG
	"MountAsBootable"=dword:1		; for Hive-based registry
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH]
	"DefaultFileSystem"="BINFS"
	"PartitionDriver"="mspart.dll"
	"Name"="Microsoft Flash Disk"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH\BINFS]
	"MountHidden"=dword:1
	"MountAsROM"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH\FATFS]
	"FormatExfat"=dword:1
	"Flags"=dword:14				; deprecated in CE6.0 (0x4 : FATFS_DISABLE_AUTOSCAN, 0x10 : FATFS_ENABLE_BACKUP_FAT)
	"DisableAutoScan"=dword:1
	"CheckForFormat"=dword:1
	"EnableWriteBack"=dword:1
	"Folder"="NandFlash"
	"MountAsRoot"=dword:1		; for ROM-only file system
IF IMGHIVEREG
	"MountAsBootable"=dword:1		; for Hive-based registry
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\NANDFLASH\Filters\CacheFilt]
	"Dll"="cachefilt.dll"
	"LockIOBuffers"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NANDFLASH\FATFS\Filters\CacheFilt]
	"Dll"="cachefilt.dll"
	"LockIOBuffers"=dword:1

ENDIF BSP_NONANDFS !
; END HIVE BOOT SECTION
;-------------------------------------------------------------------------

IF BSP_POCKETSTORE
IF BSP_POCKETFS
#include "$(_TARGETPLATROOT)\SRC\DRIVERS\POCKETFS\Registry\$(POCKETSTORE_DIR)_with_WCE6_PFS.reg"
ELSE
#include "$(_TARGETPLATROOT)\SRC\PocketStoreIII\BlockDeviceDriver\PocketStoreIII_WCE6_exFAT.reg"
ENDIF BSP_POCKETFS
ENDIF BSP_POCKETSTORE

;-------------- iROM SDMMC Drivers ----------------------------------
; @CESYSGEN IF CE_MODULES_FSDMGR
; HIVE BOOT SECTION

IF BSP_NOSDMMC_BOOT !

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\SDBOOT]
	"DriverPath"="Drivers\\BlockDevice\\SDBOOT"
	"LoadFlags"=dword:1
	"BootPhase"=dword:0
	"MountFlags"=dword:11
IF IMGHIVEREG
	"MountAsBootable"=dword:1
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\Drivers\BlockDevice\SDBOOT]
	"Prefix"="DSK"
	"Dll"="BIBDrv.dll"
	"Order"=dword:0
	"Ioctl"=dword:4
	"Profile"="SDBOOT"
	"FriendlyName"="Samsung Flash Driver"
	"MountFlags"=dword:11
	"BootPhase"=dword:0
IF IMGHIVEREG
	"Flags"=dword:1000
ENDIF IMGHIVEREG


; Bind BINFS to the block driver
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDBOOT]
	"DefaultFileSystem"="BINFS"
	"PartitionDriver"="mspart.dll"
	"AutoMount"=dword:1
	"AutoPart"=dword:1
	"Folder"="Flash Disk"
	"Name"="Samsung SDMMCBOOT"


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDBOOT\BINFS]
    "MountHidden"=dword:1
    "MountAsROM"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDBOOT\FATFS]
	"FormatExfat"=dword:1
	"Flags"=dword:14				; deprecated in CE6.0 (0x4 : FATFS_DISABLE_AUTOSCAN, 0x10 : FATFS_ENABLE_BACKUP_FAT)
	"DisableAutoScan"=dword:1
	"CheckForFormat"=dword:1
	"EnableWriteBack"=dword:1
	"Folder"="SDBOOTDisk"
	"MountAsRoot"=dword:1		; for ROM-only file system
IF IMGHIVEREG
	"MountAsBootable"=dword:1		; for Hive-based registry
ENDIF IMGHIVEREG    

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\SDBOOT\Filters\CacheFilt]
    "Dll"="cachefilt.dll"
    "LockIOBuffers"=dword:1


[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HSMMC]
    "Prefix"="DSK"
    "Dll"="HSMMC.dll"
    "Order"=dword:1
    "Profile"="HSMMC"
    "IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
IF IMGHIVEREG
   "Flags"=dword:1000
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HSMMC]
    "DefaultFileSystem"="FATFS"
    "PartitionDriver"="mspart.dll"
    "Name"="SDMMC"
    "Folder"="SDMMCDisk"
    "AutoMount"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HSMMC\FATFS]
    "FormatExfat"=dword:1
    "Flags"=dword:14                ; deprecated in CE6.0 (0x4 : FATFS_DISABLE_AUTOSCAN, 0x10 : FATFS_ENABLE_BACKUP_FAT)
    "CheckForFormat"=dword:1
    "EnableWriteBack"=dword:1
    "MountAsRoot"=dword:1       ; for ROM-only file system
    "DisableAutoScan"=dword:1
IF IMGHIVEREG
    "MountAsBootable"=dword:1       ; for Hive-based registry
ENDIF IMGHIVEREG

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\HSMMC\Filters\CacheFilt]
    "Dll"="cachefilt.dll"
    "LockIOBuffers"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HSMMC\FATFS\Filters\CacheFilt]
    "Dll"="cachefilt.dll"
    "LockIOBuffers"=dword:1

ENDIF BSP_NOSDMMC_BOOT !

; END HIVE BOOT SECTION
; @CESYSGEN ENDIF CE_MODULES_FSDMGR
;----------------------------------------------------------------------------



IF BSP_NOSDMMC_CH0 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDMMC_CH0]
	"InterfaceType"=dword:0                 ; Internal
	"Order"=dword:21
	"Dll"="sdmmc_ch0.dll"
	"Prefix"="HSC"
	"ObjectCreationProc"="CreateSDMMCHCCh0Object"
	"MemBase"=dword:EB000000
	"MemLen"=dword:100
	"Irq"=dword:5E			                ; SDMMC0 Virtual IRQ = 94 (0x5E), Physical IRQ = 58
	;"BaseClockFrequency"=dword:B71B000      ; 2AEA540->45MHz(EPLL)
	;"TimeoutClockFrequency"=dword:B71B000   ; 2AEA540->45MHz(EPLL)
	"BaseClockFrequency"=dword:5B8D800      ; 2AEA540->45MHz(EPLL)
	"TimeoutClockFrequency"=dword:5B8D800   ; 2AEA540->45MHz(EPLL)
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic	
ENDIF BSP_NOSDMMC_CH0 !

;IF BSP_NOSDMMC_CH0
IF BSP_NOSDMMC_CH1 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDMMC_CH1]
	"InterfaceType"=dword:0                 ; Internal
	"Order"=dword:21
	"Dll"="sdmmc_ch1.dll"
	"Prefix"="HSC"
	"ObjectCreationProc"="CreateSDMMCHCCh1Object"
	"MemBase"=dword:EB100000
	"MemLen"=dword:100
	"Irq"=dword:5F                          ; SDMMC1 Virtual IRQ = 95 (0x5F), Physical IRQ = 59
	;"BaseClockFrequency"=dword:B71B000      ; 2AEA540->45MHz(EPLL)
	;"TimeoutClockFrequency"=dword:B71B000   ; 2AEA540->45MHz(EPLL)
		"BaseClockFrequency"=dword:5B8D800      ; 2AEA540->45MHz(EPLL)
	"TimeoutClockFrequency"=dword:5B8D800   ; 2AEA540->45MHz(EPLL)
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
ENDIF BSP_NOSDMMC_CH1 !
;ENDIF BSP_NOSDMMC_CH0

IF BSP_NOSDMMC_CH2 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDMMC_CH2]
	"InterfaceType"=dword:0                 ; Internal
	"Order"=dword:21
	"Dll"="sdmmc_CH2.dll"
	"Prefix"="HSC"
	"ObjectCreationProc"="CreateSDMMCHCCh2Object"
	"MemBase"=dword:EB200000
	"MemLen"=dword:100
	"Irq"=dword:60			                ; SDMMC0 Virtual IRQ = 94 (0x5E), Physical IRQ = 58
	"BaseClockFrequency"=dword:B71B000      ; 2AEA540->45MHz(EPLL)
	"TimeoutClockFrequency"=dword:B71B000   ; 2AEA540->45MHz(EPLL)
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
ENDIF BSP_NOSDMMC_CH2 !

IF BSP_USE_SDMMC_CH2_8BIT !
IF BSP_NOSDMMC_CH3 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDMMC_CH3]
	"InterfaceType"=dword:0                 ; Internal
	"Order"=dword:21
	"Dll"="sdmmc_CH3.dll"
	"Prefix"="HSC"
	"ObjectCreationProc"="CreateSDMMCHCCh3Object"
	"MemBase"=dword:EB300000
	"MemLen"=dword:100
	"Irq"=dword:86			                ; SDMMC0 Virtual IRQ = 94 (0x5E), Physical IRQ = 58
	"BaseClockFrequency"=dword:B71B000      ; 2AEA540->45MHz(EPLL)
	"TimeoutClockFrequency"=dword:B71B000   ; 2AEA540->45MHz(EPLL)
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
ENDIF BSP_NOSDMMC_CH3 !
ENDIF BSP_USE_SDMMC_CH2_8BIT !

; @CESYSGEN IF CE_MODULES_SDMEMORY

IF BSP_NOSDMMC_CH0 ! || BSP_NOSDMMC_CH1 !
; SD Memory Storage class driver
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class]
   "Dll"="SDMemory.dll"
   "Prefix"="DSK"
   "BlockTransferSize"=dword:40             ; send no more than 64 blocks of data per bus transfer
   ;"SingleBlockWrites"=dword:1             ; alternatively force the driver to use single block access
   ;"IdleTimeout"=dword:7D0                 ; 2000 milliseconds
   ;"IdlePowerState"=dword:2                ; 0 == D0, 1 == D1, etc.
   ;"DisablePowerManagement"=""             ; if value present, then disable (remove value to enable)

   "Profile"="SDMemory"
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
                     "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"

; SD Memory Storage class driver to support high capacity sd memory cards.
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class\High_Capacity]
   "Dll"="SDMemory.dll"
   "Prefix"="DSK"
   "BlockTransferSize"=dword:40             ; send no more than 64 blocks of data per bus transfer
   ;"SingleBlockWrites"=dword:1             ; alternatively force the driver to use single block access
   ;"IdleTimeout"=dword:7D0                 ; 2000 milliseconds
   ;"IdlePowerState"=dword:2                ; 0 == D0, 1 == D1, etc.
   ;"DisablePowerManagement"=""             ; if value present, then disable (remove value to enable)

   "Profile"="SDMemory"
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
                     "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"

; MMC Storage Class Driver
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class]
   "Dll"="SDMemory.dll"
   "Prefix"="DSK"
   "BlockTransferSize"=dword:40             ; send no more than 64 blocks of data per bus transfer
   ;"SingleBlockWrites"=dword:1             ; alternatively force the driver to use single block access
   ;"IdleTimeout"=dword:7D0                 ; milliseconds
   ;"IdlePowerState"=dword:2                ; 0 == D0, 1 == D1, etc.
   ;"DisablePowerManagement"=""             ; if value present, then disable (remove value to enable)
   "Profile"="MMC"
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
                     "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"

; SD Memory Storage class driver to be manageable by Power Manager
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDMemory]
   "Dll"="SDMemory.dll"
   "Prefix"="DSK"
   "Profile"="SDMemory"
   "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}",
   					 "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"

ENDIF BSP_NOSDMMC_CH0 ! || BSP_NOSDMMC_CH1 !
; @CESYSGEN ENDIF CE_MODULES_SDMEMORY

;------------ Power Control Driver -------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PowerControl]
	"Dll"="PwrCon.dll"
	"Prefix"="PWC"
	"Order"=dword:0
	"Index"=dword:0
	"FriendlyName"="S5PV210 Power Control Driver"
;-------------------------------------------------------------------------

; HIVE BOOT SECTION
;------------ DrvLib Driver -------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Drvlib]
	"Dll"="drvlib.dll"
	"Order"=dword:0
	"Index"=dword:0
	"FriendlyName"="Device Dynamic Link Library"
;-------------------------------------------------------------------------
; END HIVE BOOT SECTION

;------------ Video Engine Driver -------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\VideoEngine]
	"Dll"="Video.dll"
	"Prefix"="VDE"
	"Order"=dword:4
	"Index"=dword:0
	"FriendlyName"="S5PV210 Video Engine Driver"
;-------------------------------------------------------------------------

;------------ Power Button Driver -------------------------------------------
IF BSP_NOPWRBTN !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PowerButton]
	"Dll"="PwrBtn.dll"
	"Prefix"="PWR"
	"Order"=dword:0
	"FriendlyName"="S5PV210 Power Button Driver"
;	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"	; Power-manageable generic
ENDIF BSP_NOPWRBTN !
;-------------------------------------------------------------------------

; This driver is required for Display Driver. Always must be loaded
;------------ RAW Camera Control Driver ------------------------------------
IF BSP_NODISPLAY !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RawCamera0]
	"DeviceArrayIndex"=dword:0
	"Irq"=dword:69				; FIMC0 Virtual IRQ = 105 (0x69), Physical IRQ = 69
	"MemBase"=dword:FB200000	; FIMC0 SFR Physical Address
	"MemLen"=dword:1A0			; Hexdecimal
	"Prefix"="CAM"
	"Index"=dword:1
	"Dll"="CAMDriver.dll"
	"Order"=dword:3
	"Port"="CAM1:"
	"FriendlyName"=LOC_DISPLAYNAME_CAM1

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RawCamera1]
	"DeviceArrayIndex"=dword:1
	"Irq"=dword:6A				; FIMC1 Virtual IRQ = 106 (0x6A), Physical IRQ = 70
	"MemBase"=dword:FB300000	; FIMC1 SFR Physical Address
	"MemLen"=dword:1A0
	"Prefix"="CAM"
	"Index"=dword:2
	"Dll"="CAMDriver.dll"
	"Order"=dword:3
	"Port"="CAM2:"
	"FriendlyName"=LOC_DISPLAYNAME_CAM2

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RawCamera2]
	"DeviceArrayIndex"=dword:2
	"Irq"=dword:6B				; FIMC2 Virtual IRQ = 107 (0x6B), Physical IRQ = 71
	"MemBase"=dword:FB400000	; FIMC2 SFR Physical Address
	"MemLen"=dword:1A0
	"Prefix"="CAM"
	"Index"=dword:3
	"Dll"="CAMDriver.dll"
	"Order"=dword:3
	"Port"="CAM3:"
	"FriendlyName"=LOC_DISPLAYNAME_CAM3

ENDIF BSP_NODISPLAY !
;-------------------------------------------------------------------------

;------------ Camera Capture Filter Driver ------------------------------------
IF BSP_NOCAMERA !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\CameraDriver]
	"Prefix"="CAM"
	"Dll"="camera_filter.dll"
	"Order"=dword:30
	"Index"=dword:4
	"StillPoolBase"=dword:24100000
    "StillPoolSize"=dword:1000000
	"PreviewPoolBase"=dword:27900000
    "PreviewPoolSize"=dword:300000
	"FriendlyName"=LOC_DISPLAYNAME_CAM4
   "IClass"=multi_sz:"{CB998A05-122C-4166-846A-933E4D7E3C86}","{A32942B7-920C-486b-B0E6-92A702A99B35}"

[HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX\DirectShow\Capture]
   "Prefix"="PIN"
	"Dll"="camera_filter.dll"
   "IClass"="{C9D092D6-827A-45E2-8144-DE1982BFC3A8}"

[HKEY_LOCAL_MACHINE\Drivers\Capture\Camera]
   "MemoryModel"=dword:2
   "PinCount"=dword:3

ENDIF BSP_NOCAMERA!
;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

;------------ TVout Driver -------------------------------------------
IF BSP_NOTVOUT !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\TVout]
    "Dll"="tvout.dll"
    "Prefix"="TVD"
    "Order"=dword:30
    "Index"=dword:0
    "FriendlyName"="S5PV210 TV OUT Driver"
    "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
;-------------------------------------------------------------------------
ENDIF BSP_NOTVOUT !

;------------ CEC Driver -------------------------------------------
IF BSP_NOCEC !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\CEC]
    "Dll"="cecdrv.dll"
    "Prefix"="CEC"
    "Order"=dword:4
    
ENDIF BSP_NOCEC !
;-------------------------------------------------------------------------

;------------ I2C Driver ------------------------------------------------------------------------------------
IF BSP_NOI2C !
;; I2C Bus Driver
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\I2C0]
        "Prefix"="I2C"
        "Dll"="i2c.dll"
	"Order"=dword:0
	"Index"=dword:0
	"Priority256"=dword:90
	"Mode"=dword:1				; Mode: 0 = POLLING, 1 = INTERRUPT
        "SlaveAddress"=dword:C0     ; Bus Driver's Slave Address
        "Channel"=dword:0
        "FriendlyName"="IIC Bus Driver"
        "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
        
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\I2C1]
        "Prefix"="I2C"
        "Dll"="i2c.dll"
        "Order"=dword:0
        "Index"=dword:1
        "Priority256"=dword:90
        "Mode"=dword:1              ; Mode: 0 = POLLING, 1 = INTERRUPT
        "SlaveAddress"=dword:C2     ; Bus Driver's Slave Address
        "Channel"=dword:1       
        "FriendlyName"="IIC Bus Driver"
        "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
        
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\I2C2]
        "Prefix"="I2C"
        "Dll"="i2c.dll"
        "Order"=dword:0
        "Index"=dword:2
        "Priority256"=dword:90
        "Mode"=dword:1                          ; Mode: 0 = POLLING, 1 = INTERRUPT
        "SlaveAddress"=dword:C4     ; Bus Driver's Slave Address
        "Channel"=dword:2       
        "FriendlyName"="IIC Bus Driver"
        "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
        
 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\I2C3]
        "Prefix"="I2C"
        "Dll"="i2c.dll"
        "Order"=dword:0
        "Index"=dword:3
        "Priority256"=dword:90
        "Mode"=dword:1              ; Mode: 0 = POLLING, 1 = INTERRUPT
        "SlaveAddress"=dword:C6     ; Bus Driver's Slave Address
        "Channel"=dword:3       
	"FriendlyName"="IIC Bus Driver"
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"   ; Power-manageable generic
ENDIF BSP_NOI2C !
;-------------------------------------------------------------------------------------------------------------

;------------------------------------------------------------------------------

; @CESYSGEN IF CE_MODULES_WAVEAPI
IF BSP_NOAUDIO !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
	"Prefix"="WAV"
	"Dll"="wavedev.dll"
	"Priority256"=dword:5F
	"Flags"=dword:00010000
	"Index"=dword:1
	"Order"=dword:3
	"EnableCodecMaster"=dword:1
	"EnableLowPower"=dword:0
	"IClass"=multi_sz:"{37168569-61C4-45fd-BD54-9442C7DBA46F}","{A32942B7-920C-486b-B0E6-92A702A99B35}"

; publish mixer & power manager interfaces
	"IClass"=multi_sz:"{37168569-61C4-45fd-BD54-9442C7DBA46F}","{A32942B7-920C-486b-B0E6-92A702A99B35}"

; Uncomment this to make wave driver pageable: Flags==2 is DEVFLAGS_LOADLIBRARY
;	"Flags"=dword:2

IF IMGTPC
	"StreamAttenMax"=dword:2c     ; -44 dB, for Smartphone
ENDIF IMGTPC

; Disable the software mixer by selecting a sample rate the driver
; doesn't support
[HKEY_LOCAL_MACHINE\Audio\SoftwareMixer]
	"SampleRate"=dword:10000000
	"Priority256"=dword:96
; power manager values
;	"InactivityTimeout"=dword:ffffffff ; in ms, disabled if set to INFINITE
;	"MaxActivityTimeout"=dword:ffffffff ; in ms, disabled if set to INFINITE

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WAPIMAN]
	"Priority256"=dword:97

ENDIF BSP_NOAUDIO !
; @CESYSGEN ENDIF CE_MODULES_WAVEAPI

;------------------------------------------------------------------------------


;================= USB =================
; @CESYSGEN IF CE_MODULES_USBD

IF BSP_NOUSB !

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class]
    "PacketsPerTransfer"=dword:80; change transfer size to 64KB from 8KB

IF BSP_NOUSBHCD !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\EHCI]
    "InterfaceType"=dword:0; Internal
    "Prefix"="HCD"
    "Dll"="ehci.dll"
    "Index"=dword:1
    "Order"=dword:1
    "Irq"=dword:90       ; USB EHCI Host Virtual IRQ = 144 (0x90), Physical IRQ = 55 (0x37)
;    "SysIntr"=dword:12       ; (SYSINTR_FIRMWARE+1)
    "MemBase"=dword:EC200000    ;Physical Address
    "MemLen"=dword:1000
    "UseExistingSettings"=dword:0
    "HcdCapability"=dword:4      ; HCD_SUSPEND_ON_REQUEST
    "IntThreshCtrl"=dword:1      ; to check interrupt signal faster

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\OHCI]
    "InterfaceType"=dword:0; Internal
    "Prefix"="HCD"
    "Dll"="Ohci2.dll"
    "Index"=dword:2
    "Order"=dword:1
    "Irq"=dword:91        ; USB OHCI Host Virtual IRQ = 145 (0x91), Physical IRQ = 55 (0x37)
 ;ksh_host   "Irq"=dword:5b       ; USB OHCI Host Virtual IRQ = 91 (0x5B), Physical IRQ = 55 (0x37)
 ;ksh_host   "SysIntr"=dword:11       ; (SYSINTR_FIRMWARE+1)
    "MemBase"=dword:EC300000    ;Physical Address
    "MemLen"=dword:1000
    "UseExistingSettings"=dword:0
    "HcdCapability"=dword:4      ; HCD_SUSPEND_ON_REQUEST
ENDIF BSP_NOUSBHCD !

IF BSP_NOUSBFN !
IF BSP_KITL != USBSERIAL
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USBFN]
    "Dll"="usbfn.dll"
    "Prefix"="UFN"
    "Order"=dword:40
    "Priority256"=dword:78
    ;"IoBase"=dword:B1800000
    ;"IoLen"=dword:11000        ; chandolp 1000 --> 10000
    "Irq"=dword:5C               ; USB OTG Virtual IRQ = 92 (0x5C), Physical IRQ = 56 (0x38)
    "BusIoctl"=dword:2a0048
    "IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"

[HKEY_LOCAL_MACHINE\init]
    "Launch110"="bootcompleteapp.exe"

[HKEY_LOCAL_MACHINE\System\Events]
    "OEM/BootCompleteEvent"="Notification for Boot Complete"

IF BSP_USBFN_RNDIS
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
    "DefaultClientDriver"=- ; erase previous default
    "DefaultClientDriver"="RNDIS"
ENDIF

IF BSP_USBFN_SERIAL
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
    "DefaultClientDriver"=- ; erase previous default
    "DefaultClientDriver"="Serial_Class"
ENDIF

IF BSP_USBFN_MSF
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
    "DefaultClientDriver"=- ; erase previous default
    "DefaultClientDriver"="Mass_Storage_Class"

[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class]
    "Index"=dword:3

[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class\High_Capacity]
    "Index"=dword:3

[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class]
    "Index"=dword:3
ENDIF

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
    "Dll"="usbmsfn.dll"
    "InterfaceSubClass"=dword:06
    "InterfaceProtocol"=dword:50
    "FriendlyName"="Mass Storage"
    "idVendor"=dword:045E
    "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
    "idProduct"=dword:FFFF
    "Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
    "bcdDevice"=dword:0
; for SDMMC 
    "DeviceName"="DSK3:" ; SDMMC DSK index
    "Removable"=dword:1  ; Removable option
    "Type"=dword:1 ;0-nand, 1-sdmmc
    "SDSlot0"="HSC1:"      ; SD Slot 

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
    "idVendor"=dword:0547
    "Manufacturer"=LOC_USBFN_RNDIS_MANUFACTURER
    "idProduct"=dword:2c2d
    "Product"=LOC_USBFN_RNDIS_PRODUCT


[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
    "FriendlyName"=LOC_USBFN_SERIAL_NAME
    "idVendor"=dword:0547
    "Manufacturer"=LOC_USBFN_SERIAL_MANUFACTURER
    "idProduct"=dword:2720
    "Product"=LOC_USBFN_SERIAL_PRODUCT

[HKEY_CURRENT_USER\ControlPanel\Comm]
    "Cnct"="`USB"

[HKEY_LOCAL_MACHINE\DebugZones]
    "USBFN"=dword:ffff
    "Serial"=dword:ffff
    "PM"=dword:ffff
ENDIF
ENDIF BSP_NOUSBFN !

ENDIF BSP_NOUSB !

; @CESYSGEN ENDIF CE_MODULES_USBD
;============= End of USB =================

;------------ SPI Driver -------------------------------------------------------------------------------------
IF BSP_NOSPI !
IF BSP_NOSPI0 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\spi0]
	"DeviceArrayIndex"=dword:0
	"Irq"=dword:53	; SPI0 Virtual IRQ = 83 (0x53), Physical IRQ = 47
	"MemBase"=dword:E1300000
	"Prefix"="SPI"
	"Dll"="spi.dll"
	"Index"=dword:0
	"Order"=dword:30
	"Port"="SPI0:"
ENDIF

IF BSP_NOSPI1 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\spi1]
	"DeviceArrayIndex"=dword:1
	"Irq"=dword:54	; SPI0 Virtual IRQ = 84 (0x54), Physical IRQ = 48
	"MemBase"=dword:E1400000
    "Prefix"="SPI"
    "Dll"="spi.dll"
    "Index"=dword:1
	"Order"=dword:30
	"Port"="SPI1:"
ENDIF

IF BSP_NOSPI2 !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\spi2]
	"DeviceArrayIndex"=dword:2
	"Irq"=dword:55	; SPI0 Virtual IRQ = 85 (0x55), Physical IRQ = 49
	"MemBase"=dword:E1500000
	"Prefix"="SPI"
	"Dll"="spi.dll"
	"Index"=dword:2
	"Order"=dword:30
	"Port"="SPI2:"
ENDIF

ENDIF BSP_NOSPI !
;-------------------------------------------------------------------------------------------------------------

;--------------- Serial / IrDA Driver -----------------------------------------
; @CESYSGEN IF CE_MODULES_SERIAL
IF BSP_NOSERIAL !

IF BSP_NOUART0 !
IF BSP_KITL != SERIAL_UART0
IF BSP_DEBUGPORT != SERIAL_UART0
;--------------- UART0 (Physical COM1 Port) ----------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]
	"DeviceArrayIndex"=dword:0
	"Irq"=dword:4E				; UART0 Virtual IRQ = 78 (0x4E), Physical IRQ = 42
	"MemBase"=dword:E2900000
	"MemLen"=dword:40
;	"ISTTimeouts"=dword:200		; every 512 ticks checking Modem status.
	"Prefix"="COM"
	"Index"=dword:1
	"Dll"="SMDKV210_serial.dll"
	"Order"=dword:20
	"Port"="COM1:"
	"DeviceType"=dword:0
	"TXDMAEnable"=dword:1
	"AFCEnable"=dword:1
	"FriendlyName"=LOC_DISPLAYNAME_COM1
	"Tsp"="unimodem.dll"
	"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
	"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;--------------------------------------------------------------------------
ENDIF
ENDIF
ENDIF

IF BSP_NOUART1 !
IF BSP_KITL != SERIAL_UART1
IF BSP_DEBUGPORT != SERIAL_UART1
;--------------- UART1 (Physical COM2 Port) ----------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
	"DeviceArrayIndex"=dword:1
	"Irq"=dword:4F				; UART1 Virtual IRQ = 79 (0x4F), Physical IRQ = 43
	"MemBase"=dword:E2900400
	"MemLen"=dword:40
;	"ISTTimeouts"=dword:200		; every 512 ticks checking Modem status.
	"Prefix"="COM"
	"Index"=dword:2
	"Dll"="SMDKV210_serial.dll"
	"Order"=dword:20
	"Port"="COM2:"
	"DeviceType"=dword:0
	"TXDMAEnable"=dword:1
	"AFCEnable"=dword:1
	"FriendlyName"=LOC_DISPLAYNAME_COM2
	"Tsp"="unimodem.dll"
	"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
	"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;--------------------------------------------------------------------------
ENDIF
ENDIF
ENDIF

IF BSP_NOUART2 !
IF BSP_KITL != SERIAL_UART2
;--------------- UART2 (Physical COM2 Port) ----------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]
	"DeviceArrayIndex"=dword:2
	"Irq"=dword:50				; UART2 Virtual IRQ = 80 (0x50), Physical IRQ = 44
	"MemBase"=dword:E2900800
	"MemLen"=dword:40
;	"ISTTimeouts"=dword:200		; every 512 ticks checking Modem status.
	"Prefix"="COM"
	"Index"=dword:3
	"Dll"="SMDKV210_serial.dll"
	"Order"=dword:20
	"Port"="COM3:"
   	"DeviceType"=dword:0
	"TXDMAEnable"=dword:1
   	"FriendlyName"=LOC_DISPLAYNAME_COM3
   	"Tsp"="unimodem.dll"
   	"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
   	"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;--------------------------------------------------------------------------
ENDIF
ENDIF

IF BSP_NOUART3 !
IF BSP_KITL != SERIAL_UART3
IF BSP_NOIRDA3
;--------------- UART3 (Physical COM2 Port) ----------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial3]
	"DeviceArrayIndex"=dword:3
	"Irq"=dword:51				; UART3 Virtual IRQ = 81 (0x51), Physical IRQ = 45
	"MemBase"=dword:E2900C00
	"MemLen"=dword:40
;	"ISTTimeouts"=dword:200		; every 512 ticks checking Modem status.
	"Prefix"="COM"
	"Index"=dword:4
	"Dll"="SMDKV210_serial.dll"
	"Order"=dword:20
	"Port"="COM4:"
	"DeviceType"=dword:0
	"TXDMAEnable"=dword:1
	"FriendlyName"=LOC_DISPLAYNAME_COM4
	"Tsp"="unimodem.dll"
	"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
	"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;--------------------------------------------------------------------------
ENDIF
ENDIF
ENDIF

IF BSP_NOIRDA3 !
IF BSP_KITL != SERIAL_UART3
IF BSP_NOUART3
;--------------- UART3 (IrDA)----------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IRDA3]
	"DeviceArrayIndex"=dword:3
	"Irq"=dword:51				; UART3 Virtual IRQ = 81 (0x51), Physical IRQ = 45
	"MemBase"=dword:E2900C00
	"MemLen"=dword:40
	;"ISTTimeouts"=dword:200		; every 512 ticks checking Modem status.
	"Prefix"="COM"
	"Index"=dword:4
	"Dll"="SMDKV210_serial.dll"
	"Order"=dword:20
	"Port"="COM4:"
	"DeviceType"=dword:0  ; IRDA modem, 0 -> null modem
	"FriendlyName"=LOC_DISPLAYNAME_RAWIR
	"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
	"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;--------------------------------------------------------------------------
ENDIF
ENDIF
ENDIF

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IrCOMM]
	"Prefix"="COM"
	"Order"=dword:3
	"Index"=dword:6

[HKEY_LOCAL_MACHINE\Comm\IrDA\Linkage]
	"Bind"=multi_sz:"Irsir1", "Irsir2"

[HKEY_LOCAL_MACHINE\Comm\Irsir\Linkage]
	"Route"=multi_sz:"Irsir1", "Irsir2"

[HKEY_LOCAL_MACHINE\Comm\Irsir1\Parms]
	"Port"=-

[HKEY_LOCAL_MACHINE\Comm\Irsir1\Parms]
; 0 = Use external dongle
; 1 = Use internal IR
	"IntIR"=dword:1
; 0 - Internal transceiver
; 1 - Extended Systems JetEye dongle.
	"TransceiverType"=dword:0
IF BSP_NOIRDA2 !
[HKEY_LOCAL_MACHINE\Comm\Irsir1\Parms]
	"Port"=dword:3
ENDIF

[HKEY_LOCAL_MACHINE\Comm\Irsir2\Parms]
	"BusNumber"=dword:0
	"BusType"=dword:0
; 0 = Use external dongle
; 1 = Use internal IR
	"IntIR"=dword:1
; 0 - Internal transceiver
; 1 - Extended Systems JetEye dongle.
	"TransceiverType"=dword:0
	"DisablePowerManagement"=dword:1
	; For power savings, have NDIS run the CheckForHangHandler every hour instead of every 2 seconds
	"CheckForHangTimeInSeconds"=dword:e10
IF BSP_NOIRDA3 !
[HKEY_LOCAL_MACHINE\Comm\Irsir2\Parms]
	"Port"=dword:4
ENDIF

ENDIF BSP_NOSERIAL !
; @CESYSGEN ENDIF CE_MODULES_SERIAL
;--------------------------------------------------------------------------

;------------ MFC Driver ------------------------------------------------------------------------------------
IF BSP_NOMFC !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MFC]
	"Dll"="mfc.dll"
	"Prefix"="MFC"
	"Index"=dword:1
	"Order"=dword:30
	"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"	; Power-manageable generic
ENDIF BSP_NOMFC !
;-------------------------------------------------------------------------------------------------------------

;--------------Jpeg Driver---------------------------------------------
IF BSP_NOJPEG !
[HKEY_LOCAL_MACHINE\Drivers\Builtin\JPG]
	"Dll"="jpg.dll"
	"Prefix"="JPG"
	"Index"=dword:1
	"Order"=dword:30
ENDIF BSP_NOJPEG !
;------------------------------------------------------------------------------


;-------------- CMM Driver -----------------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\Builtin\CMM]
	"Dll"="cmm_driver.dll"
	"Prefix"="CMM"
	"Index"=dword:1
	"Order"=dword:0
;------------------------------------------------------------------------------

;--------------OpenGLES2.0 Driver---------------------------------------------
IF BSP_NOOES !

; PowerVR entries begin --------------------------------

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PVR3rdParty]
    "FriendlyName"="PowerVR S3C_LCD"
    "Dll"="s3c_lcd.dll"
    "Prefix"="DCH"
    "Order"=dword:1 
	"Index"=dword:1

[HKEY_LOCAL_MACHINE\PowerVR\PVRKernel]
   "Prefix"="PKM"
   "Dll"="srvkm.dll"
   "Keep"=dword:1
   ; Indicate KSrv is a generic power manageable interface
   "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"

[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
    "Display"="ddi_powervr.dll"
    	
[HKEY_LOCAL_MACHINE\PowerVR\PVRDebug]
   "Prefix"="DBD"
   "Dll"="dbgdrv.dll"
   "Keep"=dword:1

[HKEY_LOCAL_MACHINE\PowerVR\Environment]
	"WINDIR"="\\windows"

[HKEY_LOCAL_MACHINE\PowerVR\IniFile\default]
	"UseDebugVxd"=dword:1

[HKEY_LOCAL_MACHINE\PowerVR\IniFile\DEBUG]
	"GlobalLevel"=dword:4

; PowerVR entries end ----------------------------------



ENDIF BSP_NOOES !
;------------------------------------------------------------------------------



;-- BLUETOOTH driver -----------------------------------------------------------
; @CESYSGEN IF CE_MODULES_BTHCSR
IF BSP_NOBLUETOOTH !
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\HCI]
     "driver"="bthcsr.dll"
   "flags"=dword:1
    "name"="COM1:"
    "baud"=dword:1c200
ENDIF ;BSP_NOBLUETOOTH !
; @CESYSGEN ENDIF CE_MODULES_BTHCSR

IF BSP_NOBLUETOOTH !
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Transports\BuiltIn\2]
    "driver"="bthcsr.dll"
;    "flags"=dword:4		; only for BTH_UART
    "flags"=dword:1
    "name"="COM1:"
    "baud"=dword:1c200
;    "resetdelay"=dword:1388		; only for BTH_UART
ENDIF BSP_NOBLUETOOTH !
;-----------------------------------------------------------------------------

IF SAMPLES_DSHOWFILTERS
#include "$(_TARGETPLATROOT)\FILES\mfc_filter.reg"
ENDIF SAMPLES_DSHOWFILTERS

;------------------------------------------------------------------------------
; @CESYSGEN IF CE_MODULES_BATTDRVR
	#include "$(DRIVERS_DIR)\battdrvr\battdrvr.reg"

IF BSP_NOBATTERY !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Battery]
	"PollInterval"=dword:1388		; GetSystemPowerStatusEx2 calling interval, in milliseconds (5000msec)
	                                ; refer to the battery driver MDD
ENDIF BSP_NOBATTERY !

; @CESYSGEN ENDIF CE_MODULES_BATTDRVR
;------------------------------------------------------------------------------

;------------------------------------------------------------------------------
#include "$(_TARGETPLATROOT)\Files\rasbook.reg"
;------------------------------------------------------------------------------


;--------------------- DM9000A driver------------------------------------
; DM9000A driver
[HKEY_LOCAL_MACHINE\Comm\DM9CE]
    "DisplayName"="DM9000A ISA Fast Ethernet Adapter"
    "Group"="NDIS"
    "ImagePath"="dm9isa.dll"

[HKEY_LOCAL_MACHINE\Comm\DM9CE\Linkage]
    "Route"=multi_sz:"DM9CE1"

[HKEY_LOCAL_MACHINE\Comm\DM9CE1]
    "DisplayName"="DM9000A ISA Fast Ethernet Adapter"
    "Group"="NDIS"
    "ImagePath"="dm9isa.dll"

[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
    "Bind"="DM9CE1"

[HKEY_LOCAL_MACHINE\Comm\DM9CE1\Parms]
    "BusNumber"=dword:0
	"BusType"=dword:1
    "XmitBuffer"=dword:20
    "RecvBuffer"=dword:20
    "IrqNumber"=dword:23
    "SysIntr"=dword:23
	"IoAddress"=dword:88000000
	"NetworkAddress"="e0aac8de6352"
  "9tripodMac"=dword:00800001


[HKEY_LOCAL_MACHINE\Comm\DM9CE1\Parms\TcpIp]
    "EnableDHCP"=dword:1
    "UseZeroBroadcast"=dword:0
;    "DefaultGateway"="192.168.1.1"
;    "IpAddress"="192.168.1.8"
;    "Subnetmask"="255.255.255.0"
;    "DNS"="202.96.128.166"
;    "WINS"="0.0.0.0"

;----------------------------DM9000 DRIVER END---------------------------

;=================net setting===========
 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
    "Start Page"="http://www.9tripod.com"
    "Search Page"="http://www.google.com"
    
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
		"Template"="Same as Windows XP"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
    "EnableAutodial"=dword:0


IF BSP_USBWIIF_RT2870
	#include "$(_FLATRELEASEDIR)\RT2870.reg"
ENDIF ;BSP_USBWIIF_RT2870

IF BSP_USBWIIF_8188
	#include "$(_FLATRELEASEDIR)\RTL8192CU.REG"
ENDIF ;BSP_USBWIIF_8188	


;support ftp
 
[HKEY_LOCAL_MACHINE\Comm\TELNETD]
"IsEnabled"=dword:1
"UseAuthentication"=dword:0

[HKEY_LOCAL_MACHINE\Comm\FTPD]
"IsEnabled"=dword:1
"UseAuthentication"=dword:0
"AllowAnonymous"=dword:1
"AllowAnonymousUpload"=dword:1
"AllowAnonymousVroots"=dword:1
"DefaultDir"="\\"