|
|
| version 1.2, 2003/10/23 06:26:16 | version 1.3, 2003/12/08 00:55:32 |
|---|---|
| Line 5 typedef struct { | Line 5 typedef struct { |
| BYTE para[256]; | BYTE para[256]; |
| UINT16 fifo[GDCCMD_MAX]; | UINT16 fifo[GDCCMD_MAX]; |
| UINT16 cnt; | UINT16 cnt; |
| BYTE ptr; | UINT8 ptr; |
| BYTE rcv; | UINT8 rcv; |
| BYTE snd; | UINT8 snd; |
| BYTE cmd; | UINT8 cmd; |
| BYTE paracb; | UINT8 paracb; |
| BYTE reserved; | UINT8 reserved; |
| } _GDCDATA, *GDCDATA; | } _GDCDATA, *GDCDATA; |
| typedef struct { | typedef struct { |
| _GDCDATA m; | _GDCDATA m; |
| _GDCDATA s; | _GDCDATA s; |
| BYTE mode1; | UINT8 mode1; |
| BYTE mode2; | UINT8 mode2; |
| BYTE vsync; | UINT8 vsync; |
| BYTE vsyncint; | UINT8 vsyncint; |
| int analog; | int analog; |
| int palnum; | int palnum; |
| BYTE degpal[4]; | UINT8 degpal[4]; |
| RGB32 anapal[16]; | RGB32 anapal[16]; |
| BYTE clock; | UINT8 clock; |
| BYTE display; | UINT8 display; |
| BYTE bitac; | UINT8 bitac; |
| BYTE m_drawing; | UINT8 m_drawing; |
| BYTE s_drawing; | UINT8 s_drawing; |
| BYTE reserved[3]; | UINT8 reserved[3]; |
| } _GDC, *GDC; | } _GDC, *GDC; |
| typedef struct { | typedef struct { |
| BYTE access; | UINT8 access; |
| BYTE disp; | UINT8 disp; |
| BYTE textdisp; | UINT8 textdisp; |
| BYTE msw_accessable; | UINT8 msw_accessable; |
| BYTE grphdisp; | UINT8 grphdisp; |
| BYTE palchange; | UINT8 palchange; |
| BYTE mode2; | UINT8 mode2; |
| } _GDCS, *GDCS; | } _GDCS, *GDCS; |
| enum { | enum { |
| Line 72 void gdc_work(int id); | Line 72 void gdc_work(int id); |
| void gdc_forceready(GDCDATA item); | void gdc_forceready(GDCDATA item); |
| void gdc_paletteinit(void); | void gdc_paletteinit(void); |
| void gdc_setdegitalpal(int color, BYTE value); | void gdc_setdegitalpal(int color, REG8 value); |
| void gdc_setanalogpal(int color, int rgb, BYTE value); | void gdc_setanalogpal(int color, int rgb, REG8 value); |
| void gdc_setdegpalpack(int color, BYTE value); | void gdc_setdegpalpack(int color, REG8 value); |
| void gdc_restorekacmode(void); | void gdc_restorekacmode(void); |