Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic - Use u_int8_t instead of char for register struc...
details: https://anonhg.NetBSD.org/src/rev/2b983d657bb9
branches: trunk
changeset: 542375:2b983d657bb9
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Jan 27 14:53:33 2003 +0000
description:
- Use u_int8_t instead of char for register structure.
- Define MC6845_NREGS like vgareg.h.
diffstat:
sys/dev/ic/mc6845reg.h | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diffs (34 lines):
diff -r a758640279f3 -r 2b983d657bb9 sys/dev/ic/mc6845reg.h
--- a/sys/dev/ic/mc6845reg.h Mon Jan 27 14:53:08 2003 +0000
+++ b/sys/dev/ic/mc6845reg.h Mon Jan 27 14:53:33 2003 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index