/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1987,1988
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:vgaio.h 12.0$ */
/* $ACIS:vgaio.h 12.0$ */
/* $Source: /ibm/acis/usr/sys/cacons/RCS/vgaio.h,v $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsidvgaio = "$Header:vgaio.h 12.0$";
#endif


/*
 * VGA MODES:
 * mode	type  resolution   chars  color	  addr
 * 00-1	A/N	320x200	   40x25  16/256k b8000
 * 00-2	A/N	320x350	   40x25  16/256k b8000
 * 00-3	A/N	360x400	   40x25  16/256k b8000
 * 01-1	A/N	320x200	   40x25  16/256k b8000
 * 01-2	A/N	320x350	   40x25  16/256k b8000
 * 01-3	A/N	360x400	   40x25  16/256k b8000
 * 02-1	A/N	640x200	   80x25  16/256k b8000
 * 02-2	A/N	640x350	   80x25  16/256k b8000
 * 02-3	A/N	720x400	   80x25  16/256k b8000
 * 03-3	A/N	640x200	   80x25  16/256k b8000
 * 03-2	A/N	640x350	   80x25  16/256k b8000
 * 03-9	A/N	720x400	   80x25  16/256k b8000
 * 04-1	APA	320x200	   40x25   4/256k b8000
 * 05-1	APA	320x200	   40x25   4/256k b8000
 * 06-1	APA	640x200	   80x25   2/256k b8000
 * 07-2	A/N	720x350	   80x25   mono   b0000
 * 07-3	A/N	720x400	   80x25   mono   b0000
 * 0d-1	APA	320x200	   40x25  16/256k a0000
 * 0e-1	APA	640x200	   80x25  16/256k a0000
 * 0f-2	APA	640x200	   80x25   mono   a0000
 * 10-2	APA	640x350	   80x25  16/256k a0000
 * 11-4	APA	640x480	   80x30   2/256k a0000
 * 12-4	APA	640x480	   80x30  16/256k a0000
 * 13-1	APA	320x200	   40x25 256/256k a0000
 */
#define	MODE_001	0
#define	MODE_002	1
#define	MODE_003	2
#define	MODE_011	3
#define	MODE_012	4
#define	MODE_013	5
#define	MODE_021	6
#define	MODE_022	7
#define	MODE_023	8
#define	MODE_033	9
#define	MODE_032	10
#define	MODE_039	11
#define	MODE_041	12
#define	MODE_051	13
#define	MODE_061	14
#define	MODE_072	15
#define	MODE_073	16
#define	MODE_0D1	17
#define	MODE_0E1	18
#define	MODE_0F2	19
#define	MODE_102	20
#define	MODE_114	21
#define	MODE_124	22
#define	MODE_131	23


#define VGA_MAX_LINES	  30		   /* max num of rows on display      */
#define VGA_MAX_WIDTH	  80		   /* max num of columns on display   */
#define VGA_MAX_VBITS	  480		   /* max num of vert pels on display */
#define VGA_MAX_HBITS	  720		   /* max num of horz pels on display */
#define VGA_MAX_COLORS	  256		   /* max num of display colors       */
#define VGA_MODE_DEFAULT  MODE_039
#define VGA_SCREEN_MIN	  0xa0000	   /* min address of the screen buffer*/
#define VGA_SCREEN_MAX	  0xbffff	   /* max address of the screen buffer*/
#define VGA_MAX_MODE	  24
