diff options
Diffstat (limited to 'src/rdc_extension.h')
-rw-r--r-- | src/rdc_extension.h | 69 |
1 files changed, 35 insertions, 34 deletions
diff --git a/src/rdc_extension.h b/src/rdc_extension.h index 81144ee..5549b02 100644 --- a/src/rdc_extension.h +++ b/src/rdc_extension.h @@ -18,11 +18,12 @@ * <jason.lin@rdc.com.tw> */ -/******************************************************************************/ -/* */ -/* Escape function definite */ -/* */ -/******************************************************************************/ + + + + + + // user defined type. typedef unsigned short WORD; @@ -65,7 +66,7 @@ typedef unsigned long DWORD; #define UT_GET_USERMODE_DIRECTACCESS 0x2200 -/* For display Xextension */ + #define RDC_GFX_UT_EXTENSION_NAME "RDCGFX_API" #define RDCGFX_PARM_NUM 256 @@ -74,7 +75,7 @@ typedef unsigned long DWORD; #define X_RDCGFXCommand 1 typedef struct { - BYTE type; /* X_Reply */ + BYTE type; BOOL pad1; CARD16 sequenceNumber B16; CARD32 length B32; @@ -100,26 +101,26 @@ typedef struct { CARD32 pad; } xRDCGFXCommandReq; -/*============ Request and Reply Structures Definition==================*/ + typedef union { - struct - { - WORD LCD ; - WORD DVI ; - WORD CRT ; - WORD HDMI ; - WORD HDTV ; - WORD TV ; - WORD LCD2 ; - WORD DVI2 ; - WORD CRT2 ; - WORD HDMI2 ; - WORD HDTV2 ; - WORD TV2 ; - WORD RESERVE ; - } TABLE ; - WORD MERGE ; + struct + { + WORD LCD; + WORD DVI; + WORD CRT; + WORD HDMI; + WORD HDTV; + WORD TV; + WORD LCD2; + WORD DVI2; + WORD CRT2; + WORD HDMI2; + WORD HDTV2; + WORD TV2; + WORD RESERVE; + } TABLE; + WORD MERGE; } UTDEVICELIST; typedef struct _UTHWINFO @@ -132,7 +133,7 @@ typedef struct _UTHWINFO }UTHWINFO; typedef struct _UTBIOSDATA - { +{ ULONG wData1; ULONG wData2; ULONG wData3; @@ -141,8 +142,8 @@ typedef struct _UTBIOSDATA typedef struct _CLKINFO { - ULONG MemCLK; /*(The unit is MHz)*/ - ULONG EngCLK; /*(The unit is MHz)*/ + ULONG MemCLK; + ULONG EngCLK; }CLKINFO; typedef struct _VIDEO_CLUTDATA @@ -155,10 +156,10 @@ typedef struct _VIDEO_CLUTDATA typedef struct { - USHORT NumEntries ; // total 256 entries - USHORT FirstEntry ; // start from 0 + USHORT NumEntries ; + USHORT FirstEntry ; union - { + { VIDEO_CLUTDATA RgbArray ; ULONG RgbLong ; } LookupTable[1] ; @@ -166,9 +167,9 @@ typedef struct typedef struct { - DWORD device ; // the device - DWORD dwSize; // the size of gamma tbl - PVIDEO_CLUT table ; // the table + DWORD device ; + DWORD dwSize; + PVIDEO_CLUT table ; } GammaTbl, *pGammaTbl ; // LCD info structure. |