Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Move the ite_default_* variables to ite.c...
details: https://anonhg.NetBSD.org/src/rev/ac5cb2639830
branches: trunk
changeset: 482001:ac5cb2639830
user: leo <leo%NetBSD.org@localhost>
date: Fri Feb 11 21:42:52 2000 +0000
description:
Move the ite_default_* variables to ite.c. They are generic ite.
diffstat:
sys/arch/atari/dev/ite.c | 14 +++++++++++---
sys/arch/atari/dev/ite_cc.c | 11 +----------
sys/arch/atari/dev/ite_et.c | 11 ++---------
3 files changed, 14 insertions(+), 22 deletions(-)
diffs (92 lines):
diff -r 352fbcc47516 -r ac5cb2639830 sys/arch/atari/dev/ite.c
--- a/sys/arch/atari/dev/ite.c Fri Feb 11 21:36:38 2000 +0000
+++ b/sys/arch/atari/dev/ite.c Fri Feb 11 21:42:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.27 2000/01/19 13:23:14 leo Exp $ */
+/* $NetBSD: ite.c,v 1.28 2000/02/11 21:42:52 leo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -90,7 +90,15 @@
int start_repeat_timeo = 30; /* first repeat after x s/100 */
int next_repeat_timeo = 10; /* next repeat after x s/100 */
-int ite_default_wrap = 1; /* you want vtxxx-nam, binpatch */
+/*
+ * Patchable
+ */
+int ite_default_x = 0; /* def leftedge offset */
+int ite_default_y = 0; /* def topedge offset */
+int ite_default_width = 640; /* def width */
+int ite_default_depth = 1; /* def depth */
+int ite_default_height = 400; /* def height */
+int ite_default_wrap = 1; /* if you want vtxxx-nam -> binpatch */
struct ite_softc con_itesoftc;
u_char cons_tabs[MAX_TABS];
@@ -691,7 +699,7 @@
ip->flags &= ~ITE_ACTIVE;
}
-void
+static void
ite_switch(unit)
int unit;
{
diff -r 352fbcc47516 -r ac5cb2639830 sys/arch/atari/dev/ite_cc.c
--- a/sys/arch/atari/dev/ite_cc.c Fri Feb 11 21:36:38 2000 +0000
+++ b/sys/arch/atari/dev/ite_cc.c Fri Feb 11 21:42:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite_cc.c,v 1.14 1998/01/12 18:04:08 thorpej Exp $ */
+/* $NetBSD: ite_cc.c,v 1.15 2000/02/11 21:42:52 leo Exp $ */
/*
* Copyright (c) 1996 Leo Weppelman
@@ -100,15 +100,6 @@
short, short));
/*
- * Patchable
- */
-int ite_default_x = 0; /* def leftedge offset */
-int ite_default_y = 0; /* def topedge offset */
-int ite_default_width = 640; /* def width */
-int ite_default_depth = 1; /* def depth */
-int ite_default_height = 400; /* def height */
-
-/*
* grfcc config stuff
*/
void grfccattach __P((struct device *, struct device *, void *));
diff -r 352fbcc47516 -r ac5cb2639830 sys/arch/atari/dev/ite_et.c
--- a/sys/arch/atari/dev/ite_et.c Fri Feb 11 21:36:38 2000 +0000
+++ b/sys/arch/atari/dev/ite_et.c Fri Feb 11 21:42:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite_et.c,v 1.8 1998/01/12 18:04:09 thorpej Exp $ */
+/* $NetBSD: ite_et.c,v 1.9 2000/02/11 21:42:52 leo Exp $ */
/*
* Copyright (c) 1996 Leo Weppelman.
@@ -88,13 +88,6 @@
void et_scroll __P((struct ite_softc *ip, int sy, int sx, int count,
int dir));
-/* XXX: move to ite.c */
-extern int ite_default_x;
-extern int ite_default_y;
-extern int ite_default_width;
-extern int ite_default_depth;
-extern int ite_default_height;
-
/*
* grfet config stuff
*/
@@ -517,7 +510,7 @@
int h;
int w;
{
- /* cl_clear and cl_scroll both rely on ite passing arguments
+ /* et_clear and et_scroll both rely on ite passing arguments
* which describe continuous regions. For a VT200 terminal,
* this is safe behavior.
*/
Home |
Main Index |
Thread Index |
Old Index