xref: /netbsd-src/sys/arch/amiga/dev/grfabs_ccreg.h (revision a1f606d3fd920f2ba34cf18138175513a9930c1f)
1*a1f606d3Slukem /*	$NetBSD: grfabs_ccreg.h,v 1.9 2006/03/08 23:46:22 lukem Exp $	*/
2ec77f0b3Scgd 
37bb75ba6Schopps /*
47bb75ba6Schopps  * Copyright (c) 1994 Christian E. Hopps
57bb75ba6Schopps  * All rights reserved.
67bb75ba6Schopps  *
77bb75ba6Schopps  * Redistribution and use in source and binary forms, with or without
87bb75ba6Schopps  * modification, are permitted provided that the following conditions
97bb75ba6Schopps  * are met:
107bb75ba6Schopps  * 1. Redistributions of source code must retain the above copyright
117bb75ba6Schopps  *    notice, this list of conditions and the following disclaimer.
127bb75ba6Schopps  * 2. Redistributions in binary form must reproduce the above copyright
137bb75ba6Schopps  *    notice, this list of conditions and the following disclaimer in the
147bb75ba6Schopps  *    documentation and/or other materials provided with the distribution.
157bb75ba6Schopps  * 3. All advertising materials mentioning features or use of this software
167bb75ba6Schopps  *    must display the following acknowledgement:
177bb75ba6Schopps  *      This product includes software developed by Christian E. Hopps.
187bb75ba6Schopps  * 4. The name of the author may not be used to endorse or promote products
197bb75ba6Schopps  *    derived from this software without specific prior written permission
207bb75ba6Schopps  *
217bb75ba6Schopps  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
227bb75ba6Schopps  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
237bb75ba6Schopps  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
247bb75ba6Schopps  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
257bb75ba6Schopps  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
267bb75ba6Schopps  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
277bb75ba6Schopps  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
287bb75ba6Schopps  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
297bb75ba6Schopps  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
307bb75ba6Schopps  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
317bb75ba6Schopps  */
327bb75ba6Schopps 
337bb75ba6Schopps #if ! defined (_GRFABS_CCREG_H)
347bb75ba6Schopps #define _GRFABS_CCREG_H
357bb75ba6Schopps 
367bb75ba6Schopps typedef colormap_t *alloc_colormap_func (int);
377bb75ba6Schopps 
387bb75ba6Schopps typedef struct monitor_data {
39e9dc4428Schopps     LIST_HEAD(modelist, display_mode) modes; /* a list of supported modes. */
407bb75ba6Schopps     dmode_t *current_mode;
417bb75ba6Schopps     u_long    flags;		  /* monitor flags. */
427bb75ba6Schopps } mdata_t;
437bb75ba6Schopps 
447bb75ba6Schopps typedef struct display_mode_data {
457bb75ba6Schopps     monitor_t  * monitor;	/* the monitor that owns this mode. */
467bb75ba6Schopps     view_t * current_view;	/* current view to be displayed. */
477bb75ba6Schopps     cop_t  **frames;
487bb75ba6Schopps     u_short    hedley_current;	/* current hedley quadrent. */
497bb75ba6Schopps     u_short    bplcon0;		/* bplcon0 data. */
507bb75ba6Schopps     u_short    std_start_x;
517bb75ba6Schopps     u_short    std_start_y;
525dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA)
537bb75ba6Schopps     /* ECS registers. */
547bb75ba6Schopps     u_short   beamcon0;
557bb75ba6Schopps     u_short   hbstart;		/* no modes use the rest of these */
567bb75ba6Schopps     u_short   hbstop;		/* ECS registers. */
577bb75ba6Schopps     u_short   hsstart;
587bb75ba6Schopps     u_short   hsstop;
597bb75ba6Schopps     u_short   vbstart;
607bb75ba6Schopps     u_short   vbstop;
617bb75ba6Schopps     u_short   vsstart;
627bb75ba6Schopps     u_short   vsstop;
637bb75ba6Schopps #endif
647bb75ba6Schopps     /* some limit stuff. */
657bb75ba6Schopps     dimen_t   max_size;		/* largest fit. */
667bb75ba6Schopps     dimen_t   min_size;		/* smallest fit. */
677bb75ba6Schopps     u_short   min_depth;
687bb75ba6Schopps     u_short   max_depth;
697bb75ba6Schopps     u_long   flags;		/* mode specific flags. */
707bb75ba6Schopps     use_colormap_func *use_colormap;
717bb75ba6Schopps     get_colormap_func *get_colormap;
727bb75ba6Schopps     alloc_colormap_func *alloc_colormap;
737bb75ba6Schopps     display_view_func  *display_view;
747bb75ba6Schopps     vbl_handler_func   *vbl_handler;	/* gets called every vertical blank. */
757bb75ba6Schopps 					/* when this is the current mode.*/
767bb75ba6Schopps } dmdata_t;
777bb75ba6Schopps 
787bb75ba6Schopps enum dmode_flag_bits {
797bb75ba6Schopps     DMB_INTERLACE,
807bb75ba6Schopps     DMB_HEDLEY_EXP
817bb75ba6Schopps };
827bb75ba6Schopps 
837bb75ba6Schopps enum dmode_flags {
847bb75ba6Schopps     DMF_INTERLACE = 1 << DMB_INTERLACE,
857bb75ba6Schopps     DMF_HEDLEY_EXP = 1 << DMB_HEDLEY_EXP
867bb75ba6Schopps };
877bb75ba6Schopps 
887bb75ba6Schopps typedef struct view_data {
897bb75ba6Schopps     dmode_t *mode;		/* the mode for this view */
907bb75ba6Schopps     colormap_t *colormap;
917bb75ba6Schopps     u_long    flags;		/* view specific flags. */
927bb75ba6Schopps } vdata_t;
937bb75ba6Schopps 
947bb75ba6Schopps enum view_flag_bits {
957bb75ba6Schopps     VB_DISPLAY,
967bb75ba6Schopps };
977bb75ba6Schopps 
987bb75ba6Schopps enum view_flags {
997bb75ba6Schopps     VF_DISPLAY = 1 << VB_DISPLAY,  /* set if view is being displayed */
1007bb75ba6Schopps };
1017bb75ba6Schopps 
1027bb75ba6Schopps /*
1037bb75ba6Schopps  *  This that are in grfabs_ccglb.c
1047bb75ba6Schopps  */
1057bb75ba6Schopps #if defined (GRF_A2024)
1067bb75ba6Schopps #  if defined (GRF_PAL)
1077bb75ba6Schopps extern cop_t std_pal_a2024_copper_list[];
1087bb75ba6Schopps extern int std_pal_a2024_copper_list_len;
1097bb75ba6Schopps extern int std_pal_a2024_copper_list_size;
1107bb75ba6Schopps #  endif
1117bb75ba6Schopps #  if defined (GRF_NTSC)
1127bb75ba6Schopps extern cop_t std_a2024_copper_list[];
1137bb75ba6Schopps extern int std_a2024_copper_list_len;
1147bb75ba6Schopps extern int std_a2024_copper_list_size;
1157bb75ba6Schopps #  endif
1167bb75ba6Schopps extern cop_t std_dlace_copper_list[];
1177bb75ba6Schopps extern int std_dlace_copper_list_len;
1187bb75ba6Schopps extern int std_dlace_copper_list_size;
1197bb75ba6Schopps 
1207bb75ba6Schopps extern u_short a2024_color_value_line0[4];
1217bb75ba6Schopps extern u_short a2024_color_value_line1[4];
1227bb75ba6Schopps #endif /* GRF_A2024 */
1237bb75ba6Schopps 
124d64a1b73Schopps #if defined(GRF_AGA)
125d64a1b73Schopps extern cop_t aga_copper_list[];
126d64a1b73Schopps extern int aga_copper_list_len;
127d64a1b73Schopps extern int aga_copper_list_size;
128d64a1b73Schopps #endif
129d64a1b73Schopps 
1307bb75ba6Schopps extern cop_t std_copper_list[];
1317bb75ba6Schopps extern int std_copper_list_len;
1327bb75ba6Schopps extern int std_copper_list_size;
1337bb75ba6Schopps extern monitor_t *cc_monitor;
1347bb75ba6Schopps extern u_short cc_default_colors[32];
1357bb75ba6Schopps extern u_short cc_a2024_default_colors[4];
1367bb75ba6Schopps 
1377bb75ba6Schopps /*
1387bb75ba6Schopps  * Misc macros, defines and enums.
1397bb75ba6Schopps  */
1407bb75ba6Schopps 
1417bb75ba6Schopps #define MDATA(m) ((mdata_t *)(m->data))
1427bb75ba6Schopps #define DMDATA(d) ((dmdata_t *)(d->data))
1437bb75ba6Schopps #define VDATA(v) ((vdata_t *)(v->data))
1447bb75ba6Schopps #define RWDATA(r) ((rwdata_t *)(r->data))
1457bb75ba6Schopps 
1465dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA)
1477bb75ba6Schopps #define CALC_DIWHIGH(hs, vs, he, ve) \
1487bb75ba6Schopps         ((u_short)((he&0x100)<<5)|(ve&0x700)|((hs&0x100)>>3)|((vs&0x700)>>8))
1497bb75ba6Schopps #define USE_CON3 0x0001
1507bb75ba6Schopps #else
1517bb75ba6Schopps #define USE_CON3 0x0
1527bb75ba6Schopps #endif
1537bb75ba6Schopps 
1547bb75ba6Schopps enum lace_frame_numbers {
1557bb75ba6Schopps     F_LACE_LONG,
1567bb75ba6Schopps     F_LACE_SHORT,
1577bb75ba6Schopps     F_LACE_STORE_LONG,
1587bb75ba6Schopps     F_LACE_STORE_SHORT,
1597bb75ba6Schopps     F_LACE_TOTAL
1607bb75ba6Schopps };
1617bb75ba6Schopps 
1627bb75ba6Schopps enum frame_numbers {
1637bb75ba6Schopps     F_LONG,
1647bb75ba6Schopps     F_STORE_LONG,
1657bb75ba6Schopps     F_TOTAL
1667bb75ba6Schopps };
1677bb75ba6Schopps 
1687bb75ba6Schopps #if defined (GRF_A2024)
1697bb75ba6Schopps 
1707bb75ba6Schopps /*
1717bb75ba6Schopps  * Defines macros and enums for A2024 hedley expansion
1727bb75ba6Schopps  */
1737bb75ba6Schopps 
1747bb75ba6Schopps enum quad_frame_numbers {
1757bb75ba6Schopps     F_QD_QUAD0, F_QD_QUAD1, F_QD_QUAD2, F_QD_QUAD3,
1767bb75ba6Schopps     F_QD_STORE_QUAD0, F_QD_STORE_QUAD1, F_QD_STORE_QUAD2, F_QD_STORE_QUAD3,
1777bb75ba6Schopps     F_QD_TOTAL
1787bb75ba6Schopps };
1797bb75ba6Schopps 
1807bb75ba6Schopps /* -------
1817bb75ba6Schopps  * |0 |1 |
1827bb75ba6Schopps  * |------
1837bb75ba6Schopps  * |2 |3 |
1847bb75ba6Schopps  * -------
1857bb75ba6Schopps  */
1867bb75ba6Schopps 
1877bb75ba6Schopps #define QUAD0_ID 0x0001
1887bb75ba6Schopps #define QUAD1_ID 0x00f1
1897bb75ba6Schopps #define QUAD2_ID 0x0f01
1907bb75ba6Schopps #define QUAD3_ID 0x0ff1
1917bb75ba6Schopps 
1927bb75ba6Schopps #define HALF_2024_LINE (512>>3)
1937bb75ba6Schopps #define DIGITAL_RED 0x0800
1947bb75ba6Schopps #define DIGITAL_GREEN 0x0080
1957bb75ba6Schopps #define DIGITAL_BLUE 0x0008
1967bb75ba6Schopps #define DIGITAL_INTENSE 0x0001
1977bb75ba6Schopps 
1987bb75ba6Schopps #define A2024_L0_BLACK  (0)
1997bb75ba6Schopps #define A2024_L0_DGREY  (DIGITAL_BLUE)
2007bb75ba6Schopps #define A2024_L0_LGREY  (DIGITAL_RED)
2017bb75ba6Schopps #define A2024_L0_WHITE  (DIGITAL_RED|DIGITAL_BLUE)
2027bb75ba6Schopps 
2037bb75ba6Schopps #define A2024_L1_BLACK  (0)
2047bb75ba6Schopps #define A2024_L1_DGREY  (DIGITAL_INTENSE)
2057bb75ba6Schopps #define A2024_L1_LGREY  (DIGITAL_GREEN)
2067bb75ba6Schopps #define A2024_L1_WHITE  (DIGITAL_GREEN|DIGITAL_INTENSE)
2077bb75ba6Schopps 
2087bb75ba6Schopps #define A2024_L0_INDEX(color_reg) (((0x4&color_reg)>>1)|(0x1&color_reg))
2097bb75ba6Schopps #define A2024_L1_INDEX(color_reg) (((0x8&color_reg)>>2)|((0x2&color_reg)>>1))
2107bb75ba6Schopps #define A2024_CM_TO_CR(cm,rn) \
2117bb75ba6Schopps 	(a2024_color_value_line0[0x3 & (cm)->entry[A2024_L0_INDEX(rn)]] |\
2127bb75ba6Schopps 	 a2024_color_value_line1[0x3 & (cm)->entry[A2024_L1_INDEX(rn)]])
2137bb75ba6Schopps #endif /* GRF_A2024 */
2147bb75ba6Schopps 
2157bb75ba6Schopps /*
2167bb75ba6Schopps  *  Misc defined values for custom chips.
2177bb75ba6Schopps  */
2187bb75ba6Schopps 
2197bb75ba6Schopps /* ECS stuff */
2207bb75ba6Schopps #define VARVBLANK	0x1000	/* Variable vertical blank enable */
2217bb75ba6Schopps #define LOLDIS		0x0800	/* long line disable */
2227bb75ba6Schopps #define CSCBLANKEN	0x0400	/* redirect composite sync */
2237bb75ba6Schopps #define VARVSYNC	0x0200	/* Variable vertical sync enable */
2247bb75ba6Schopps #define VARHSYNC	0x0100	/* Variable horizontal sync enable */
2257bb75ba6Schopps #define VARBEAM	0x0080	/* variable beam counter enable */
2267bb75ba6Schopps #define DISPLAYDUAL	0x0040	/* use UHRES pointer and standard pointers */
2277bb75ba6Schopps #define DISPLAYPAL	0x0020	/* set decodes to generate PAL display */
2287bb75ba6Schopps #define VARCSYNC	0x0010	/* Variable composite sync enable */
2297bb75ba6Schopps #define CSBLANK	0x0008	/* Composite blank out to CSY* pin */
2307bb75ba6Schopps #define CSYNCTRUE	0x0004	/* composite sync true signal */
2317bb75ba6Schopps #define VSYNCTRUE	0x0002	/* vertical sync true */
2327bb75ba6Schopps #define HSYNCTRUE	0x0001	/* horizontal sync true */
2337bb75ba6Schopps 
2347bb75ba6Schopps /* new defines for bplcon0 */
2357bb75ba6Schopps #define USE_BPLCON3	1
2367bb75ba6Schopps 
2377bb75ba6Schopps /* new defines for bplcon2 */
2387bb75ba6Schopps #define BPLCON2_ZDCTEN		(1<<10) /* colormapped genlock bit */
2397bb75ba6Schopps #define BPLCON2_ZDBPEN		(1<<11) /* use bitplane as genlock bits */
2407bb75ba6Schopps #define BPLCON2_ZDBPSEL0	(1<<12) /* three bits to select one */
2417bb75ba6Schopps #define BPLCON2_ZDBPSEL1	(1<<13) /* of 8 bitplanes in */
2427bb75ba6Schopps #define BPLCON2_ZDBPSEL2	(1<<14) /* ZDBPEN genlock mode */
2437bb75ba6Schopps 
2447bb75ba6Schopps /* defines for bplcon3 register */
2457bb75ba6Schopps #define BPLCON3_EXTBLNKEN	(1<<0)	/* external blank enable */
2467bb75ba6Schopps #define BPLCON3_EXTBLKZD	(1<<1)	/* external blank ored into trnsprncy */
247*a1f606d3Slukem #define BPLCON3_ZDCLKEN	(1<<2)	/* zd pin outputs a 14 MHz clock*/
2487bb75ba6Schopps #define BPLCON3_BRDNTRAN	(1<<4)	/* border is opaque */
2497bb75ba6Schopps #define BPLCON3_BRDNBLNK	(1<<5)	/* border is opaque */
2507bb75ba6Schopps 
2517bb75ba6Schopps /* mixture of stuff. */
2527bb75ba6Schopps #define	STANDARD_NTSC_ROWS	262
2537bb75ba6Schopps #define	STANDARD_PAL_ROWS	312
2547bb75ba6Schopps #define	STANDARD_COLORCLOCKS	226
2557bb75ba6Schopps #define	STANDARD_DENISE_MAX	455
2567bb75ba6Schopps #define	STANDARD_DENISE_MIN	93
2577bb75ba6Schopps #define	STANDARD_NTSC_BEAMCON	( 0x0000 )
2587bb75ba6Schopps #define	STANDARD_PAL_BEAMCON	( DISPLAYPAL )
2597bb75ba6Schopps #define	SPECIAL_BEAMCON	( VARVBLANK | LOLDIS | VARVSYNC | VARHSYNC | VARBEAM | CSBLANK | VSYNCTRUE)
2607bb75ba6Schopps 
2617bb75ba6Schopps #define	MIN_NTSC_ROW	21
2627bb75ba6Schopps #define	MIN_PAL_ROW	29
2637bb75ba6Schopps #define	STANDARD_VIEW_X	0x81
2647bb75ba6Schopps #define	STANDARD_VIEW_Y	0x2C
2657bb75ba6Schopps #define	STANDARD_HBSTRT	0x06
2667bb75ba6Schopps #define	STANDARD_HSSTRT	0x0B
2677bb75ba6Schopps #define	STANDARD_HSSTOP	0x1C
2687bb75ba6Schopps #define	STANDARD_HBSTOP	0x2C
2697bb75ba6Schopps #define	STANDARD_VBSTRT	0x0122
2707bb75ba6Schopps #define	STANDARD_VSSTRT	0x02A6
2717bb75ba6Schopps #define	STANDARD_VSSTOP	0x03AA
2727bb75ba6Schopps #define	STANDARD_VBSTOP	0x1066
2737bb75ba6Schopps 
2747bb75ba6Schopps /*
2757bb75ba6Schopps  * Prototypes
2767bb75ba6Schopps  */
2777bb75ba6Schopps 
2787bb75ba6Schopps #if defined (__STDC__)
2797bb75ba6Schopps /* monitor functions */
2807bb75ba6Schopps monitor_t *cc_init_monitor(void);
2817bb75ba6Schopps void monitor_vbl_handler(monitor_t * m);
2827bb75ba6Schopps dmode_t *get_current_mode(void);
2837bb75ba6Schopps dmode_t *get_next_mode(dmode_t * d);
2847bb75ba6Schopps dmode_t *get_best_mode(dimen_t * size, u_char depth);
2857bb75ba6Schopps bmap_t *alloc_bitmap(u_short width, u_short height, u_short depth, u_short flags);
2867bb75ba6Schopps void free_bitmap(bmap_t * bm);
2877bb75ba6Schopps void cc_load_mode(dmode_t * d);
2887bb75ba6Schopps int cc_init_modes(void);
2897bb75ba6Schopps /* mode functions */
2907bb75ba6Schopps monitor_t *cc_get_monitor(dmode_t * d);
2917bb75ba6Schopps view_t *cc_get_current_view(dmode_t * d);
2927bb75ba6Schopps view_t *cc_alloc_view(dmode_t * mode, dimen_t * dim, u_char depth);
2937bb75ba6Schopps colormap_t *cc_alloc_colormap(int depth);
2947bb75ba6Schopps int cc_colormap_checkvals(colormap_t * vcm, colormap_t * cm, int use);
2957bb75ba6Schopps int cc_get_colormap(view_t * v, colormap_t * cm);
2967bb75ba6Schopps int cc_use_colormap(view_t * v, colormap_t * cm);
2977bb75ba6Schopps 
2987bb75ba6Schopps #  if defined (GRF_A2024)
2997bb75ba6Schopps colormap_t *cc_a2024_alloc_colormap(int depth);
3007bb75ba6Schopps int cc_a2024_get_colormap(view_t * v, colormap_t * cm);
3017bb75ba6Schopps int cc_a2024_use_colormap(view_t * v, colormap_t * cm);
3027bb75ba6Schopps #  endif /* GRF_2024 */
3037bb75ba6Schopps 
3047bb75ba6Schopps void cc_mode_vbl_handler(dmode_t * d);
3057bb75ba6Schopps void cc_lace_mode_vbl_handler(dmode_t * d);
3067bb75ba6Schopps /* view functions */
3077bb75ba6Schopps void cc_init_view(view_t * v, bmap_t * bm, dmode_t * mode, box_t * dbox);
3087bb75ba6Schopps void cc_free_view(view_t * v);
3097bb75ba6Schopps void cc_remove_view(view_t * v);
3107bb75ba6Schopps dmode_t * cc_get_display_mode(view_t * v);
3117bb75ba6Schopps 
312a07bb333Smhitch #if defined (GRF_SUPER72)
313a07bb333Smhitch dmode_t *cc_init_super72(void);
314a07bb333Smhitch void display_super72_view(view_t * v);
315a07bb333Smhitch #endif /* SUPER72 */
316a07bb333Smhitch 
3177bb75ba6Schopps #  if defined (GRF_NTSC)
3187bb75ba6Schopps dmode_t *cc_init_ntsc_hires(void);
3197bb75ba6Schopps void display_hires_view(view_t * v);
3207bb75ba6Schopps dmode_t *cc_init_ntsc_hires_lace(void);
3217bb75ba6Schopps void display_hires_lace_view(view_t * v);
3227bb75ba6Schopps 
3237bb75ba6Schopps #    if defined (GRF_A2024)
3247bb75ba6Schopps dmode_t *cc_init_ntsc_hires_dlace(void);
3257bb75ba6Schopps void display_hires_dlace_view(view_t * v);
3267bb75ba6Schopps dmode_t *cc_init_ntsc_a2024(void);
3277bb75ba6Schopps void display_a2024_view(view_t * v);
3287bb75ba6Schopps void a2024_mode_vbl_handler(dmode_t * d);
3297bb75ba6Schopps #    endif /* GRF_A2024 */
330d64a1b73Schopps 
331d64a1b73Schopps #    if defined (GRF_AGA)
332d64a1b73Schopps dmode_t *cc_init_ntsc_aga(void);
333d64a1b73Schopps void display_aga_view(view_t * v);
334d64a1b73Schopps #    endif /* GRF_AGA */
3357bb75ba6Schopps #  endif /* GRF_NTSC */
3367bb75ba6Schopps 
3377bb75ba6Schopps #  if defined (GRF_PAL)
3387bb75ba6Schopps dmode_t *cc_init_pal_hires(void);
3397bb75ba6Schopps void display_pal_hires_view(view_t * v);
3407bb75ba6Schopps dmode_t *cc_init_pal_hires_lace(void);
3417bb75ba6Schopps void display_pal_hires_lace_view(view_t * v);
3427bb75ba6Schopps 
3437bb75ba6Schopps #    if defined (GRF_A2024)
3447bb75ba6Schopps dmode_t *cc_init_pal_hires_dlace(void);
3457bb75ba6Schopps void display_pal_hires_dlace_view(view_t * v);
3467bb75ba6Schopps 
3477bb75ba6Schopps dmode_t *cc_init_pal_a2024(void);
3487bb75ba6Schopps void display_pal_a2024_view(view_t * v);
3497bb75ba6Schopps void pal_a2024_mode_vbl_handler(dmode_t * d);
3507bb75ba6Schopps #    endif /* GRF_A2024 */
3514726ce28Schopps 
3524726ce28Schopps #    if defined (GRF_AGA)
3534726ce28Schopps dmode_t *cc_init_pal_aga(void);
3544726ce28Schopps void display_pal_aga_view(view_t * v);
3554726ce28Schopps #    endif /* GRF_AGA */
3567bb75ba6Schopps #  endif /* GRF_PAL */
3577bb75ba6Schopps #endif /* __STDC__ */
3587bb75ba6Schopps 
3597bb75ba6Schopps 
3607bb75ba6Schopps #endif /* _GRFABS_CCABS_H */
361