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