mqstruc.h
来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 244 行
H
244 行
/* $Header: /Windows CE/BigSur/SDBTEST/MediaQ/mqstruc.h 1 6/20/00 5:30p Mrastogi $
*
* Copyright (c) 1998 by MediaQ, Incorporated.
* All Rights Reserved.
*
* Confidential and Proprietary to MediaQ, Incorporated.
*
* MQSTRUC.H : Data structure and defines used by the driver
*
* $Log: /Windows CE/BigSur/SDBTEST/MediaQ/mqstruc.h $
*
* 1 6/20/00 5:30p Mrastogi
* Base Version received from HCL Noida on June 07, 2000.
//
// 2 9/15/99 11:30a Ngupta
// Checked in to Move from 2.11 to 2.12
//
// 1 9/15/99 10:34a Ngupta
*
* Rev 1.8 Sep 10 1999 19:19:24 hoang
* Remove OEM_FP_INFO_TAG struct
*
* Rev 1.7 Aug 25 1999 15:29:54 hoang
* Panels Customization
*
* Rev 1.6 Jul 19 1999 17:46:28 chijen
* remove ulPWMControl from panel control
*
* Rev 1.5 May 27 1999 19:42:12 chijen
* add SWAP_PMW01
*
* Rev 1.4 May 26 1999 14:01:30 chijen
* add FULL_SETMODE
*
* Rev 1.3 May 25 1999 15:51:04 chijen
* add DRV_COMM_STRUCT
*
* Rev 1.2 May 14 1999 19:02:54 chijen
* remove unused equates
*
* Rev 1.1 May 14 1999 17:57:24 chijen
* add CursorData struc
*
* Rev 1.0 Feb 20 1999 21:32:34 yuhuan
* Initial revision.
*/
#ifndef __MQSTRUC_H__
#define __MQSTRUC_H__
#ifdef SDBTESTS
enum EGPEFormat
{
gpe1Bpp,
gpe2Bpp,
gpe4Bpp,
gpe8Bpp,
gpe16Bpp,
gpe24Bpp,
gpe32Bpp,
gpe16YCrCb,
gpeDeviceCompatible,
gpeUndefined
};
typedef struct GPEModeTag {
int modeId;
int width;
int height;
int Bpp;
int frequency;
EGPEFormat format;
} GPEMode;
#endif SDBTESTS
//Data Structure for timing parameter of each resolution
//
typedef struct MQTimingParam
{
USHORT usResoX; //X resolution
USHORT usResoY; //Y resolution
USHORT usFreq; //Frequency
ULONG ulHD; //Horz display 1 control
ULONG ulVD; //Vert display 1 control
ULONG ulHS; //Horz sync 1 control
ULONG ulVS; //Vert sync 1 control
float fPLLFreq; //Clock Frequency
} MQ_TIMING_PARAM, *PMQ_TIMING_PARAM;
//Data Structure for PLL data
//
typedef struct PLLParam
{
float fFreq; //Clock Frequency
ULONG ulPLLData; //PLLx control
} MQ_PLL_PARAM, *PMQ_PLL_PARAM;
//Data structure for OEM-dependent information
//
typedef struct OEMInfo
{
USHORT usX; //Desktop X resolution
USHORT usY; //Desktop Y resolution
USHORT usVX; //Viewport X resolution - LCD
USHORT usVY; //Viewport Y resolution - LCD
USHORT usVXCrt; //Viewport X resolution - CRT
USHORT usVYCrt; //Viewport Y resolution - CRT
USHORT usFreq; //LCD refresh rate
USHORT usFreqCrt; //CRT refresh rate
USHORT usBPP; //Color depth
USHORT usAWX; //Alt Horz Window control
USHORT usAWY; //Alt Vert Window control
USHORT usAWBPP; //Alt Window color depth
USHORT usCursorColor; //Cursor color
USHORT usContrast; //Initial contrast
USHORT usBright; //Initial brightness
ULONG ulPWMControl; //Contrast control
ULONG ulOEMFlag; //OEM/run-time flag
ULONG ulFPGPO; //FP GPO control
ULONG ulFPGPIO; //FP GPIO control
ULONG ulD1State; //D1 state control
ULONG ulD2State; //D2 state control
ULONG ulPLL2; //PLL2 Programming
ULONG ulPLL3; //PLL3 Programming
} OEM_INFO, *POEM_INFO;
//Data structure for MQ video mode
//- expand gpeMode to support QView
//- if usFreq2 == 0 then use GC1 only
//
typedef struct MQVideoMode
{
GPEMode gpeMode; //Mode structure defined by GPE
USHORT usFreq2; //GC2 (LCD) frequency- 60Hz if 0
} MQ_VIDEO_MODE, *PMQ_VIDEO_MODE;
//Data structure for flat panel interface
//
#define FRC_PATTERN_CNT 32
#define FRC_WEIGHT_CNT 8
typedef struct FRCControl
{
ULONG ulFRCPattern[FRC_PATTERN_CNT]; //FRC pattern control
ULONG ulFRCWeight[FRC_WEIGHT_CNT]; //FRC weight control
} FRC_CONTROL_STRUC, *PFRC_CONTROL_STRUC;
typedef struct FPControl
{
USHORT usHoriSize; //Flat panel hori size
USHORT usVertSize; //Flat panel vert size
ULONG ulHD; //Horz display control
ULONG ulVD; //Vert display control
ULONG ulHS; //Horz sync control
ULONG ulVS; //Vert sync control
float fPLLFreq; //PLLx Frequency
ULONG ulFPControl; //Flat panel control
ULONG ulFPPinControl; //Flat panel pin control
ULONG ulSTNControl; //STN panel control
//ULONG ulPWMControl; //Contrast control
// moved to registry
} FP_CONTROL_STRUC, *PFP_CONTROL_STRUC;
typedef struct CURSOR_DATA
{
ULONG ulFlag; // Copy of m_nMQFlag but contain run-time
// info for cursor
int usGC1VPL; // Left
int usGC1VPT; // Top
int usGC1VPR; // Right
int usGC1VPB; // Bottom
int usGC2VPL; // Left
int usGC2VPT; // Top
int usGC2VPR; // Right
int usGC2VPB; // Bottom
int usGC1VPL2; // Left
int usGC1VPT2; // Top
int usGC1VPR2; // Right
int usGC1VPB2; // Bottom
int usGC2VPL2; // Left
int usGC2VPT2; // Top
int usGC2VPR2; // Right
int usGC2VPB2; // Bottom
int us1GCWidth; //1/2 desktop for LargeDesktop
int us1GCHeight; //1/2 desktop for LargeDesktop
USHORT usCursorOn; //Cursor controlled by GC1 or/and 2
USHORT usCursorEnable; //Cursor controlled by GC1 or/and 2
USHORT usStatus; //Cursor status
} CURSOR_DATA_STRUC, *PCURSOR_DATA_STRUC;
//Data Structure for DDI and DDIDUMP communication
//
typedef struct DRV_COMM
{
ULONG ulFunction;
ULONG ulCommFlag; // Communication flag
} DRV_COMM_STRUCT, *PDRV_COMM_STRUCT;
//Flag definition
#define PANEL_TYPE_MASK 0x000000ff //Panel type mask
#define PROCESSOR_MASK 0x00003f00 //Mask of processor type (Outdated)
#define IS_SH3 0x00000000
#define IS_SH4 0x00000100
#define IS_NEC 0x00000200
#define IS_SARM 0x00000300
#define IS_TOSHIBA 0x00000400
#define IS_PCI 0x00000500
#define LCD_ON 0x00010000 //LCD mode
#define CRT_ON 0x00020000 //CRT mode
#define LARGE_DESKTOP 0x00040000 //Large desktop mode is on
#define INDEP_DISPLAY 0x00080000 //Independent display
#define SAME_IMAGE 0x00100000 //Use 2 GC but same image
#define USE_2GCs 0x001C0000 //2 GCs are used
#define USE_2GCs_MASK 0x001C0000 //mask for 2 GCs
#define LAYOUT_MODE_MASK 0x00600000 //Layout mode mask
#define NON_LAYOUT_MODE 0x00000000 //Non layout mode
#define LAYOUT_MODE_EVEN 0x00200000 //Layout mode even
#define LAYOUT_MODE_ODD 0x00400000 //Layout mode odd
#define LAYOUT_MODE_SCROLL 0x00600000 //Layout mode scroll
#define GAMMA_ENABLED 0x02000000 //Gamma (LCD or/and CRT) enabled
#define VERTICAL_LAYOUT 0x04000000 //Vertical layout for LargeDesktop
#define SWAP_PWM01 0x08000000 //PWM0:backlite,PWM1:contrast if set
#define HORI_LCD_CRT 0x00000000 //QView hori arrangement
#define HORI_CRT_LCD 0x10000000 //QView hori arrangement
#define VERT_CRT_LCD 0x20000000 //QView vert arrangement
#define VERT_LCD_CRT 0x30000000 //QView vert arrangement
#define POSITION_MASK 0x30000000 //Mask for LCD/CRT layout
#define FULL_SETMODE 0x40000000 // Reboot for full set mode
#define GHOST_MODE_ACTIVE 0x80000000 // In ghost mode (PowerPoint)
//Cursor location
#define AT_00_BY_GC1 1
#define AT_00_BY_GC2 2
#define ENABLE_GC1_CURSOR 1
#define ENABLE_GC2_CURSOR 2
#define HOT_AT_GC1 1
#define HOT_AT_GC2 2
#endif __MQSTRUC_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?