DISPLAY
ddgpe 

所属分类:Windows CE
开发工具:Others
文件大小:1382KB
下载次数:24
上传日期:2008-09-01 08:54:29
上 传 者yangkun917306
说明:  此代码为WCE5.0下显示器的源代码,读者可以修改此代码,做成符合自己需要的代码
(Under this code for WCE5.0 display the source code, the reader can modify this code, made in line with their needs code)

文件列表:
DISPLAY\AABLT\aablt.cpp (16242, 2004-07-01)
DISPLAY\AABLT\makefile (664, 2004-07-01)
DISPLAY\AABLT\sources (1068, 2004-07-01)
DISPLAY\DDGPE\ddgpe.cpp (22018, 2004-07-01)
DISPLAY\DDGPE\ddgpepriv.h (4688, 2004-07-01)
DISPLAY\DDGPE\ddgpesurf.cpp (6013, 2004-07-01)
DISPLAY\DDGPE\ddhdd.cpp (4671, 2004-07-01)
DISPLAY\DDGPE\ddhinit.cpp (2080, 2004-07-01)
DISPLAY\DDGPE\ddhpalette.cpp (3788, 2004-07-01)
DISPLAY\DDGPE\ddhsurf.cpp (47114, 2004-07-01)
DISPLAY\DDGPE\ddhutil.cpp (2770, 2004-07-01)
DISPLAY\DDGPE\makefile (661, 2004-07-01)
DISPLAY\DDGPE\precomp.h (693, 2004-07-01)
DISPLAY\DDGPE\sources (1027, 2004-07-01)
DISPLAY\DDGPE\surfheap.cpp (4055, 2004-07-01)
DISPLAY\dirs (692, 2004-07-01)
DISPLAY\DISPPERF\dispperf.cpp (8149, 2004-07-01)
DISPLAY\DISPPERF\makefile (650, 2004-07-01)
DISPLAY\DISPPERF\sources (631, 2004-07-01)
DISPLAY\EMUL\eb08lvl3.cpp (4401, 2004-07-01)
DISPLAY\EMUL\ebalph02.cpp (4655, 2004-07-01)
DISPLAY\EMUL\ebalph08.cpp (1307, 2004-07-01)
DISPLAY\EMUL\ebalph16.cpp (6980, 2004-07-01)
DISPLAY\EMUL\ebb808.cpp (2819, 2004-07-01)
DISPLAY\EMUL\ebb816.cpp (2849, 2004-07-01)
DISPLAY\EMUL\ebbltsel.cpp (6764, 2004-07-01)
DISPLAY\EMUL\ebcopy02.cpp (996, 2004-07-01)
DISPLAY\EMUL\ebcopy02.h (8078, 2004-07-01)
DISPLAY\EMUL\ebcopy08.cpp (927, 2004-07-01)
DISPLAY\EMUL\ebcopy08.h (3020, 2004-07-01)
DISPLAY\EMUL\ebcopy16.cpp (923, 2004-07-01)
DISPLAY\EMUL\ebcopy16.h (3090, 2004-07-01)
DISPLAY\EMUL\ebcp0108.cpp (4393, 2004-07-01)
DISPLAY\EMUL\ebcp0116.cpp (4406, 2004-07-01)
DISPLAY\EMUL\ebcp0408.cpp (2764, 2004-07-01)
DISPLAY\EMUL\ebcp0416.cpp (2799, 2004-07-01)
DISPLAY\EMUL\ebdinv02.cpp (972, 2004-07-01)
DISPLAY\EMUL\ebdinv08.cpp (955, 2004-07-01)
DISPLAY\EMUL\ebdinv16.cpp (1778, 2004-07-01)
... ...

Windows CE Cougar3DR driver information ======================================= Introduction ------------ Silicon Motion, Inc. Cougar3DR Driver is architected from the beginning to support variety of features and extension of Windows CE, such as DirectDraw feature, Dynamic Rotation feature, Multimon feature, SMI Multimon Emulation feature (using single Cougar3DR chip to drive two independent displays), WCEfA (Windows CE for Automotive) feature, and more. Setup ----- Cougar3DR driver initial setup information for Windows CE * Copy source codes or binary dll file to "$(_WINCEROOT)\public\common\oak\DRIVERS\DISPLAY\SMI3DR\" Where $(_WINCEROOT) is the installation location of the Windows CE, usually defaulted to C:\WINCE400 * Import Cougar3DR driver feature to Catalog, as follows: - Click on File\Manage Catalog Features. - Remove any older smi3dr.cec file from the list, if any. - Click Import and get the smi3dr.cec from the directory above. - Click Refresh, if necessary. * Include Cougar3DR driver to the platform, as follows: - Find any Display driver instances on the FeatureView of Platform builder (including older Cougar3DR instances) and remove all of them. - Drag Catalog\Device Driver\SMI Cougar3DR feature to the FeatureView * Change the build settings of Cougar3DR driver, ie. Rotation driver, Non Direct Draw driver, etc., as follows: - Right click on Cougar3DR driver, and select Settings - Select "Custom Build" tab, in Build Step "Feature Build", Change any necessary environment settings (See Environment Settings section for more info). * Change the Cougar3DR Windows CE registry settings - The registry is used to specify the special modes and panels - Click on "Parameters" tab, edit common.reg (or any .reg files, as preferred) - Add the following lines, and specify the registry options (See Registry Settings section): IF BSP_DISPLAY_SMI3DR [HKEY_LOCAL_MACHINE\System\GDI\Drivers] "Display"="ddi_3dr.dll" [HKEY_LOCAL_MACHINE\Drivers\Display\SMI3DR] ; Specify Cougar3DR registry options below here ENDIF * No need to add ddi_3dr.dll module info to .BIB files, it is already included by smi3dr.cec * Build the Cougar3DR driver - To build the whole platform, click Build\Build Platform or Build\Rebuild Platform - To rebuild the driver separately, right click on Cougar3DR and select "Build Selected Features" and then click Build\MakeImg * Build the Cougar3DR driver with 3D support 1. Get all source code from "\WinCE3DR". 2. Get all source code from "\WinCE3DR\3DR_3D" into same directory as No. 1 above. 3. Set SMI_D3D=1 and build driver. Enviroment Settings ------------------- The enviroment settings should be set before building the driver (See Setup section on how to specify them), thus the binary-dll driver is not affected by this settings. If no enviroment settings are set, the DirectDraw-based driver will be built Where options are: * SMI_NOLIB: Turn this flag to 1, if you get "gpe_lib.lib not found" error messages. * SMI_NODD: When this option is set to 1, the compiler will disable the DirectDraw feature. * SMI_D3D: When this option is set to 1, the compiler will enable the Direct3D feature. * SMI_WCEFA: When this option is set to 1, the compiler will enable the WCEfA (Windows CE for Automotive) API feature. * SMI_ROTATION: When this option is set to 1, the compiler will enable the special Dynamic Rotation feature. This option automatically set SMI_NODD to 1. * SMI_MMEMU: When this option is set to 1, the compiler will enable the special SMI MultiMon Emulation using single chip to power two different screens in any resolutions specified in the registry. * DO_DISPPERF: When this option is set to 1, the compiler will enable the profiling information for the driver. Registry Settings ----------------- Registry Settings determine the mode sets by the driver when it first loads up (See Setup section on how to specify them). * The default registry format is as follows: [HKEY_LOCAL_MACHINE\SYSTEM\GDI\MONITORS] ; For Multimon support "TOTAL MONITORS" = dword:{number of monitors} [HKEY_LOCAL_MACHINE\Drivers\Display\SMI3DR] ; For Screen Size, Panel Size, and Bpp "CxPanel" = dword:{any value in hex, as supported by driver} "CyPanel" = dword:{any value in hex, as supported by driver} "CxScreen" = dword:{any value in hex, as supported by driver} "CyScreen" = dword:{any value in hex, as supported by driver} "Bpp" = dword:{8, 10, 20} ; For SMI Special Modes ; For Rotation Feature "Angle" = dword:{0,5A,B4,10E} * The definitions are: - CxPanel, CyPanel: Panel width and height. If not specified, CxPanel and CyPanel will be based on the dipswitch settings of the board [4:1] or the MA lines [11:8], as follows: 0000 = ***0 x 480 TFT 0001 = 800 x 600 TFT 0010 = 1024 x 768 TFT 0011 = 1280 x 1024 TFT - CxScreen, CyScreen: Screen width and height (Display mode resolution). If not specified, CxScreen and CyScreen will be the same as on CxPanel and CyPanel. NOTE1: The difference between Panel and Screen is that CxPanel and CyPanel determine the physical dimension of the panel while CxScreen and CyScreen determine the dimension of the screen desktop. NOTE2: CxScreen & CyScreen smaller than CxPanel & CyPanel are not supported. - Bpp: Number of bits of colors for one pixel. If not specified, Bpp is defaulted to 16-bpp mode. - Angle: Angle of rotation 0(0), 90(0x5A), 180(0xB4), and 270(0x10E), only if Rotation feature is enabled. If not specified, Angle is defaulted to 0. Troubleshooting --------------- * Many embedded platforms cannot provide the default Cougar3DR PCI memory space requirement of ***MB, as specified by register CSR10 of PCI Configuration Space. Therefore it is necessary to adjust the Cougar3DR PCI memory space requirement by changing the MD Lines [36:35] and MD Line [33], to fit the memore space provided by the embedded systems. For more information, please check out the data book. MD Lines [36:35] - Size of Base Memory selection 00 - 4 MB 01 - 8 MB 10 - 16 MB 11 - 32 MB MD Line [33] - Number of Endian 0 - Only One Endian 1 - Both Endian * Problem: Windows CE image shows black background and some icons. Solution: Loadcepc /L option are not supported by Cougar3DR driver. Please do not set any resolution option while using Loadcepc. VESA Set Mode corrupts the default Cougar3DR video registers, resulting in black background.

近期下载者

相关文件


收藏者