diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2003-01-27 14:53:33 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2003-01-27 14:53:33 +0000 |
| commit | 862013bb5189d442add2eef2d349a39d61fcbcb9 (patch) | |
| tree | 4b2ce69d427a692e235120f404bb370be1eeb8b2 /sys/dev/ic | |
| parent | 25d624c8439a219eaa7ce19b947138d03fb85230 (diff) | |
- Use u_int8_t instead of char for register structure.
- Define MC6845_NREGS like vgareg.h.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/mc6845reg.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/dev/ic/mc6845reg.h b/sys/dev/ic/mc6845reg.h index 57918ee76e3..c96c0066c8b 100644 --- a/sys/dev/ic/mc6845reg.h +++ b/sys/dev/ic/mc6845reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: mc6845reg.h,v 1.1 1998/05/28 16:48:40 drochner Exp $ */ +/* $NetBSD: mc6845reg.h,v 1.2 2003/01/27 14:53:33 tsutsui Exp $ */ /* * Copyright (c) 1998 @@ -33,13 +33,15 @@ */ struct reg_mc6845 { /* indexed via port 0x3d4 (mono 0x3b4) */ - char htotal, hdisple, hblanks, hblanke; - char hsyncs, hsynce, vtotal, overfll; - char irowaddr, maxrow, curstart, curend; - char startadrh, startadrl, cursorh, cursorl; - char vsyncs, vsynce, vde, offset; - char uloc, vbstart, vbend, mode; - char splitl; + u_int8_t htotal, hdisple, hblanks, hblanke; + u_int8_t hsyncs, hsynce, vtotal, overfll; + u_int8_t irowaddr, maxrow, curstart, curend; + u_int8_t startadrh, startadrl, cursorh, cursorl; + u_int8_t vsyncs, vsynce, vde, offset; + u_int8_t uloc, vbstart, vbend, mode; + u_int8_t splitl; }; -#define MC6845_INDEX 4 -#define MC6845_DATA 5 + +#define MC6845_NREGS 25 +#define MC6845_INDEX 0x4 +#define MC6845_DATA 0x5 |
