--- np2/io/gdc.h 2004/03/14 23:45:44 1.11 +++ np2/io/gdc.h 2007/11/03 00:00:20 1.16 @@ -2,7 +2,7 @@ #define GDCCMD_MAX 32 typedef struct { - BYTE para[256]; + UINT8 para[256]; UINT16 fifo[GDCCMD_MAX]; UINT16 cnt; UINT8 ptr; @@ -26,7 +26,8 @@ typedef struct { UINT8 vsyncint; UINT8 display; UINT8 bitac; - UINT8 reserved[2]; + UINT8 ff2; + UINT8 reserved; int analog; int palnum; UINT8 degpal[4]; @@ -36,6 +37,9 @@ typedef struct { UINT32 rasterclock; UINT32 hsyncclock; + UINT32 hclock; + UINT32 vclock; + #if defined(SUPPORT_PC9821) UINT8 anareg[16*3 + 256*4]; #endif @@ -83,7 +87,7 @@ enum { extern "C" { #endif -void gdc_reset(void); +void gdc_reset(const NP2CFG *pConfig); void gdc_bind(void); void gdc_vectreset(GDCDATA item); @@ -92,8 +96,9 @@ void gdc_forceready(int id); void gdc_paletteinit(void); void gdc_setdegitalpal(int color, REG8 value); -void gdc_setanalogpal(int color, int rgb, REG8 value); void gdc_setdegpalpack(int color, REG8 value); +void gdc_setanalogpal(int color, int rgb, REG8 value); +void gdc_setanalogpalall(const UINT16 *paltbl); #if defined(SUPPORT_PC9821) void gdc_analogext(BOOL extend);