- Add a structure needed for access to CRTC registers.

- Add definitions for misc output register.
- Add defintions for the number of registers.
This commit is contained in:
junyoung 2001-12-29 17:44:35 +00:00
parent dde1e51a31
commit 0d2905f4fc
1 changed files with 23 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vgareg.h,v 1.2 1998/05/28 16:48:41 drochner Exp $ */
/* $NetBSD: vgareg.h,v 1.3 2001/12/29 17:44:35 junyoung Exp $ */
/*
* Copyright (c) 1998
@ -37,6 +37,7 @@ struct reg_vgaattr { /* indexed via port 0x3c0 */
char mode, overscan, colplen, horpixpan;
char colreset, misc;
};
#define VGA_ATC_NREGS 21
#define VGA_ATC_INDEX 0
#define VGA_ATC_DATAW 0
#define VGA_ATC_DATAR 1
@ -44,6 +45,7 @@ struct reg_vgaattr { /* indexed via port 0x3c0 */
struct reg_vgats { /* indexed via port 0x3c4 */
char syncreset, mode, wrplmask, fontsel, memmode;
};
#define VGA_TS_NREGS 5
#define VGA_TS_INDEX 4
#define VGA_TS_DATA 5
@ -52,5 +54,18 @@ struct reg_vgagdc { /* indexed via port 0x3ce */
char rdplanesel, mode, misc, colorcare;
char bitmask;
};
#define VGA_GDC_NREGS 9
#define VGA_GDC_INDEX 0xe
#define VGA_GDC_DATA 0xf
struct reg_vgacrtc { /* indexed via port 0x3d4 */
char index[25];
};
#define VGA_CRTC_NREGS 25
#define VGA_CRTC_INDEX 0x14
#define VGA_CRTC_DATA 0x15
/* misc output register */
#define VGA_MISC_INDEX 2
#define VGA_MISC_DATAR 0xc
#define VGA_MISC_DATAW 2