📄 platform.reg
字号:
;
; 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:3 ; 3 => keybd and touch screen
; @CESYSGEN ENDIF WCESHELLFE_MODULES_CTLPNL
; @CESYSGEN IF WCESHELLFE_MODULES_EXPLORER
; This registry setting controls display of the Explorer's suspend menu button
[HKEY_LOCAL_MACHINE\Explorer]
"Suspend"=dword:1
; Disable Suspend
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"BattPowerOff"=dword:0
"ExtPowerOff"=dword:0
"WakeupPowerOff"=dword:0
"ScreenPowerOff"=dword:0
; @CESYSGEN ENDIF WCESHELLFE_MODULES_EXPLORER
; @CESYSGEN IF CE_MODULES_DEVICE
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\Drivers\Resources\IRQ]
"Identifier"=dword:1
"Minimum"=dword:1
"Space"=dword:20
"Ranges"="1-0x20"
; "Shared"=""
[HKEY_LOCAL_MACHINE\Drivers\Resources\IO]
"Identifier"=dword:2
"Minimum"=dword:0
"Space"=dword:10000
"Ranges"="0-0xFFFF"
; END HIVE BOOT SECTION
; @CESYSGEN IF CE_MODULES_BATTDRVR
#include "$(DRIVERS_DIR)\battdrvr\battdrvr.reg"
; @CESYSGEN ENDIF CE_MODULES_BATTDRVR
; @CESYSGEN IF CE_MODULES_NLEDDRVR
#include "$(DRIVERS_DIR)\nleddrvr\nleddrvr.reg"
; @CESYSGEN ENDIF CE_MODULES_NLEDDRVR
; @CESYSGEN IF CE_MODULES_POINTER
IF BSP_NOTOUCH !
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
"MaxCalError"=dword:7
; portrait
"CalibrationData"="466,623 149,163 145,1101 798,1097 792,160 "
; "CalibrationData"="500,512 762,268 758,760 244,758 241,266 "
; Landscape
; "CalibrationData"="515,503 763,748 258,749 269,255 764,255 "
ENDIF BSP_NOTOUCH !
; @CESYSGEN ENDIF CE_MODULES_POINTER
; @CESYSGEN IF CE_MODULES_SERIAL
IF BSP_NOSERIAL !
IF BSP_NOUART0 !
IF BSP_KITL != SERIAL_UART0
;=============== UART0 (physical COM1 connector P1) (Serial) ===============
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
"DeviceArrayIndex"=dword:0
"Irq"=dword:1c
"MemBase"=dword:50000000
"MemLen"=dword:2C
"InterruptBitsShift"=dword:0 ; UART 0 Interrupt Sub Register shift bit.
"ISTTimeouts"=dword:200 ; every 512 ticks checking Modem status.
"Prefix"="COM"
"Index"=dword:1
"Dll"="serial_smdk2440.dll"
"Order"=dword:0
"Priority"=dword:0
"Port"="COM1:"
"DeviceType"=dword:0
"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
IF BSP_NOIRDA !
; S2440 IrDA(UART2)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IRDA2440]
"DeviceArrayIndex"=dword:1
"Irq"=dword:f
"MemBase"=dword:50008000
"MemLen"=dword:2C
"InterruptBitsShift"=dword:6 ; UART 2 Interrupt Sub Register shift bit.
;"ISTTimeouts"=dword:200 ; every 512 ticks checking Modem status.
"Prefix"="COM"
"Index"=dword:4
"Dll"="serial_smdk2440.Dll"
"Order"=dword:0
"Priority"=dword:0
"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
[HKEY_LOCAL_MACHINE\Comm\Irsir1\Parms]
"Port"=dword:4
; 0 = Use external dongle, 1 = Use internal IR
"IntIR"=dword:1
; 0 - internal transceiver, 1 - Extended Systems JetEye dongle.
"TransceiverType"=dword:0
ENDIF BSP_NOSERIAL !
;=========== End of UART(Serial) ===============
; @CESYSGEN ENDIF CE_MODULES_SERIAL
; @CESYSGEN IF CE_MODULES_KEYBD
; Keybd driver is the same.
IF BSP_NOKEYBD !
#include "$(DRIVERS_DIR)\keybd\keybd.reg"
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD]
"DriverName"="kbdmouse.dll"
"Irq"=dword:1
"IOBase"=dword:B1600000
"SSPBase"=dword:B1900000
#include "$(DRIVERS_DIR)\keybd\LayMgr.reg"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\$(input_locale)]
"Matrix"="kbdmouse.dll"
; @CESYSGEN IF CE_MODULES_KBDA1
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00000401]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDA1
; @CESYSGEN IF CE_MODULES_KBDHEB
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\0000040D]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDHEB
; @CESYSGEN IF CE_MODULES_KBDTH0
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\0000041E]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDTH0
; @CESYSGEN IF CE_MODULES_KBDINHIN
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00010439]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINHIN
; @CESYSGEN IF CE_MODULES_KBDINMAR
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\0000044E]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINMAR
; @CESYSGEN IF CE_MODULES_KBDINPUN
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00000446]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINPUN
; @CESYSGEN IF CE_MODULES_KBDINTEL
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\0000044A]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINTEL
; @CESYSGEN IF CE_MODULES_KBDINGUJ
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00000447]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINGUJ
; @CESYSGEN IF CE_MODULES_KBDINKAN
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\0000044B]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINKAN
; @CESYSGEN IF CE_MODULES_KBDINTAM
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00000449]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDINTAM
; @CESYSGEN IF CE_MODULES_KBDDV
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Layouts\00010409]
"Matrix"="kbdmouse.dll"
; @CESYSGEN ENDIF CE_MODULES_KBDDV
ENDIF BSP_NOKEYBD !
; @CESYSGEN ENDIF CE_MODULES_KEYBD
; @CESYSGEN IF CE_MODULES_PCCARD
IF BSP_NOPCCARD !
#include "$(_TARGETPLATROOT)\src\drivers\pccard\pcc_smdk2440.reg"
#include "$(DRIVERS_DIR)\pccard\mdd\pcc_serv.reg"
[HKEY_LOCAL_MACHINE\Drivers\PCCARD\PCMCIA\TEMPLATE\PCMCIA]
"Dll"="pcmcia.dll"
"NoConfig"=dword:1
"NoISR"=dword:1 ; Do not load any ISR.
"IClass"=multi_sz:"{6BEAB08A-8914-42fd-B33F-61968B9AAB32}=PCMCIA Card Services"
ENDIF BSP_NOPCCARD !
; @CESYSGEN ENDIF CE_MODULES_PCCARD
; @CESYSGEN IF CE_MODULES_SDBUS
IF BSP_SDHC_SC2440
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDHC_SMDK2440]
"Order"=dword:21
"Dll"="sdhc_sc2440.dll"
"Prefix"="SDH"
"DMAChannel"=dword:0 ; DMA channel to use. Set to 0xffffffff to disable DMA
"DMAIrq"=dword:11
"DMA_IST_Priority"=dword:96
"SDIOIrq"=dword:15
"SDIO_IST_Priority"=dword:97
"PollingTimeout"=dword:100 ; 100 ms
"CardDetect_Thread_Priority"=dword:98
"CardDetectGPIO"="G" ; card detect on GPG8
"CardDetectMask"=dword:100
"CardDetectFlag"=dword:0
"CardDetectControlMask"=dword:fffcffff
"CardDetectControlFlag"=dword:0
"CardDetectPullupMask"=dword:fffffeff
"CardDetectPullupFlag"=dword:100
"CardReadWriteGPIO"="H" ; card R/W on GPH8
"CardReadWriteMask"=dword:100
"CardReadWriteFlag"=dword:100
"CardReadWriteControlMask"=dword:fffcffff
"CardReadWriteControlFlag"=dword:0
"CardReadWritePullupMask"=dword:fffffeff
"CardReadWritePullupFlag"=dword:100
"HandleBusyFinishOnCommand38"=dword:1
"DmaTransferTimeoutFactor"=dword:8
"DmaTransferTimeoutConstant"=dword:3000
ENDIF BSP_SDHC_SC2440
; @CESYSGEN ENDIF CE_MODULES_SDBUS
IF BSP_NOPWRBTN !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PBUT2440]
"Dll"="pwrbtn2440.dll"
"Prefix"="DSK"
"Index"=dword:2
"Order"=dword:2
"Ioctl"=dword:4
"FSD"= "fatfs.dll"
ENDIF BSP_NOPWRBTN !
IF BSP_NOAUDIO !
; @CESYSGEN IF CE_MODULES_WAVEAPI
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Audio]
"Prefix"="WAV"
"Dll"="s3c2440a_wavedev.dll"
"Index"=dword:1
"Order"=dword:0
; @CESYSGEN ENDIF CE_MODULES_WAVEAPI
ENDIF BSP_NOAUDIO !
;================= USB =================
; @CESYSGEN IF CE_MODULES_USBD
IF BSP_NOUSB !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\OHCI]
"InterfaceType"=dword:0 ; Internal
"Prefix"="HCD"
"Dll"="ohci2.dll"
"Index"=dword:1
"Order"=dword:1
"Irq"=dword:1a ; 26
"SysIntr"=dword:11 ; (SYSINTR_FIRMWARE+1)
"MemBase"=dword:49000000
"MemLen"=dword:1000
"UseExistingSettings"=dword:0
ENDIF
;============= End of USB =================
; @CESYSGEN ENDIF CE_MODULES_USBD
; @CESYSGEN IF CE_MODULES_USBFN
IF BSP_NOUSBFN !
IF BSP_KITL != USBSERIAL
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SC2440USBFN]
"Dll"="sc2440usbfn.dll"
"Prefix"="UFN"
"Priority256"=dword:64
"IoBase"=dword:B1200000
"IoLen"=dword:1000 ; Use one page
"Irq"=dword:19
"BusIoctl"=dword:2a0048
"IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
"DefaultClientDriver"="Serial_Class"
[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
"Index"=dword:5
[HKEY_CURRENT_USER\ControlPanel\Comm]
"Cnct"="`USB"
ENDIF
ENDIF BSP_NOUSBFN !
; @CESYSGEN ENDIF CE_MODULES_USBFN
IF BSP_NOCS8900 !
IF BSP_KITL != ETHERNET
[HKEY_LOCAL_MACHINE\Drivers\CS8900]
"Dll"="ndis.dll"
"Prefix"="NDS"
"Miniport"="CS8900"
[HKEY_LOCAL_MACHINE\Comm\CS8900]
"DisplayName"="CS8900"
"Group"="NDIS"
"ImagePath"="CS8900.dll"
[HKEY_LOCAL_MACHINE\Comm\CS8900\Linkage]
"Route"=multi_sz:"CS89001"
[HKEY_LOCAL_MACHINE\Comm\CS89001]
"DisplayName"="CS8900"
"Group"="NDIS"
"ImagePath"="CS8900.dll"
[HKEY_LOCAL_MACHINE\Comm\CS89001\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"InterruptNumber"=dword:25
"IoBaseAddress"=dword:A7000300
"Transceiver"=dword:3
"CardType"=dword:1
[HKEY_LOCAL_MACHINE\Comm\CS89001\Parms\TcpIp]
"EnableDHCP"=dword:1
"DefaultGateway"="0.0.0.0"
"LLInterface"=""
"UseZeroBroadcast"=dword:0
"IpAddress"="0.0.0.0"
"Subnetmask"="0.0.0.0"
"DNS"="0.0.0.0"
[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
"Bind"="CS89001"
ENDIF
ENDIF ; BSP_CS8900
IF BSP_NOBACKLIGHT !
; backlight driver
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BAK]
"Index"=dword:1
"Prefix"="BAK"
"Dll"="backlight.dll"
"Order"=dword:1
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}" ; Power-manageable generic
[HKEY_CURRENT_USER\ControlPanel\Backlight]
"ACTimeout"=dword:3c
"BatteryTimeout"=dword:1e
"BacklightOnTap"=dword:1
"ACBacklightOnTap"=dword:1
[HKEY_CURRENT_USER\ControlPanel\BackLight]
"AdvancedCPL" = "AdvBacklight"
ENDIF ; BSP_NOBACKLIGHT
; @CESYSGEN ENDIF CE_MODULES_DEVICE
; HIVE BOOT SECTION
IF BSP_NONANDFS !
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
"DefaultFileSystem"="BINFS"
"PartitionDriver"="mspart.dll"
"MountAsROM"=dword:1
"MountAsHidden"=dword:1
"Folder"="Flash Disk"
"Name"="FLASH Disk Block Device"
; Keep FATFS from trying to shadow \Windows
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
"MountAsROM"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
"Profile"="FlashDisk"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Order"=dword:0
"FriendlyName"="MSFLASH Driver"
"Dll"="smflash.dll"
"Prefix"="DSK"
;;;[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
;;; "Flags"=dword:00600064 ;FATFS_TFAT_ALWAYS|FATFS_FORCE_TFAT
;;;[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
;;; "DriverPath"="Drivers\\BuiltIn\\MSFlash"
;;; ; LoadFlags 0x01 == load synchronously
;;; "LoadFlags"=dword:1
;;; "BootPhase"=dword:0
;;; "Order"=dword:0
ENDIF ; BSP_NONANDFS
; END HIVE BOOT SECTION
; @CESYSGEN IF CE_MODULES_DISPLAY
IF BSP_NODISPLAY !
[HKEY_LOCAL_MACHINE\Drivers\Display\S3C2440\CONFIG]
"DisplayDll"="s3c2440a_lcd.dll"
"LCDVirtualFrameBase"=dword:ac100000
"LCDPhysicalFrameBase"=dword:30100000
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"Display"="s3c2440a_lcd.dll"
; 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 LCD driver; the driver will open the
; key to which it points to read its configuration.
[HKEY_LOCAL_MACHINE\System\GDI\DisplayCandidates]
"Candidate10"="Drivers\\Display\\S3C2440\\CONFIG"
ENDIF BSP_NODISPLAY !
; @CESYSGEN ENDIF CE_MODULES_DISPLAY
; ----------------------------------------------------------------------------
; Select a Direct3D Mobile Driver
; @CESYSGEN IF DIRECTX_MODULES_D3DM
IF BSP_D3DM_NULL
IF BSP_D3DM_NULL_REMOTE
[HKEY_LOCAL_MACHINE\System\D3DM\Drivers]
"RemoteHook"="d3dm_nulldrv.dll"
ELSE
[HKEY_LOCAL_MACHINE\System\D3DM\Drivers]
"LocalHook"="d3dm_nulldrv.dll"
ENDIF BSP_D3DM_NULL_REMOTE
ENDIF BSP_D3DM_NULL
; @CESYSGEN ENDIF DIRECTX_MODULES_D3DM
#include "$(_TARGETPLATROOT)\Files\rasbook.reg"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -