1 /* 2 * Driver for custom chips display. 3 * 4 * $Id: grf_ccreg.h,v 1.2 1993/08/02 18:33:33 mycroft Exp $ 5 */ 6 7 /* this is a mere collection of data, the registers itself are in the 8 custom chip area */ 9 10 struct ccfb { 11 int disp_width; 12 int disp_height; 13 int disp_x, disp_y; /* this defines the dimension and 14 relative position of the display. */ 15 int disp_z; /* display depth */ 16 17 u_char *fb; /* frame buffer, ie. block in chipmem 18 containing bitplane(s) */ 19 int fb_width; 20 int fb_height; /* dimension of the framebuffer. Can 21 be larger than the display! */ 22 int fb_x, fb_y; /* offset of the framebuffer relative 23 to the display (disp_*) values */ 24 int fb_z; /* frame buffer depth */ 25 26 u_short col[16]; /* color palette */ 27 28 u_short bplstart_off; /* offset in copperlist where the bitplane 29 start is set. This is used for smooth 30 scrolling of oversized framebuffers */ 31 u_short *cop1, *cop2; /* both copperlists */ 32 }; 33 34 35 /* these are the initial values for changeable parameters: */ 36 #define DEF_DISP_WIDTH 640 37 #define DEF_DISP_HEIGHT 400 38 #define DEF_DISP_X 258 /* "" */ 39 #define DEF_DISP_Y 88 /* hardware preferred values.. */ 40 #define DEF_FB_X 0 41 #define DEF_FB_Y 0 42 #define DEF_COL0 0x123 43 #define DEF_COL1 0xccc 44 45 /* these are currently not changeable easily (would require reallocation 46 of display memory and rebuild of copperlists. Do this later perhaps) */ 47 #define DEF_FB_WIDTH 1024 48 #define DEF_FB_HEIGHT 1024 49 #define DEF_FB_Z 1 50 #define DEF_DISP_Z 1 51