1 /* 2 * clockchip.h 3 */ 4 5 /* ClockChipMethods type. */ 6 7 typedef struct { 8 /* 9 * The following function initializes the ClockChip; it is usually 10 * called once after detection. 11 */ 12 void (*initialize) (CardSpecs * cardspecs, DacMethods * DAC); 13 /* 14 * ClockChip functions that override DAC methods. 15 */ 16 void (*saveState) (unsigned char *regs); 17 void (*restoreState) (const unsigned char *regs); 18 void (*initializeState) (unsigned char *regs, int bpp, int colormode, 19 int pixelclock); 20 /* 21 * Original DAC save and restore functions, 22 * to be called before clock manipulation. 23 */ 24 void (*DAC_saveState) (unsigned char *regs); 25 void (*DAC_restoreState) (const unsigned char *regs); 26 void (*DAC_initializeState) (unsigned char *regs, int bpp, int colormode, 27 int pixelclock); 28 long TextFrequency; 29 int DAC_stateSize; 30 } ClockChipMethods; 31 32 extern ClockChipMethods __svgalib_I2061A_clockchip_methods; 33