summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt/pcvt_hdr.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-04-01 20:16:15 +0000
committerjoerg <joerg@FreeBSD.org>1995-04-01 20:16:15 +0000
commit96f56f5d20df2ab860a0b7a61352a08df84eb514 (patch)
tree8a207c38282d206e54ec1a82194d972c743ba4e6 /sys/i386/isa/pcvt/pcvt_hdr.h
parent23411ef52ee7dcff7a9a290530675b19287ac8ae (diff)
downloadFreeBSD-src-96f56f5d20df2ab860a0b7a61352a08df84eb514.zip
FreeBSD-src-96f56f5d20df2ab860a0b7a61352a08df84eb514.tar.gz
Correct a few minor things in pcvt:
o the includes are now properly done by <sys/foo.h> instead of "foo.h" o a bunch of undeclared functions has been resolved o pcvt finally supports devconfig
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_hdr.h')
-rw-r--r--sys/i386/isa/pcvt/pcvt_hdr.h56
1 files changed, 54 insertions, 2 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_hdr.h b/sys/i386/isa/pcvt/pcvt_hdr.h
index 6a9cf7b..5e05036 100644
--- a/sys/i386/isa/pcvt/pcvt_hdr.h
+++ b/sys/i386/isa/pcvt/pcvt_hdr.h
@@ -65,6 +65,21 @@
#define PCVT_REL "3.20-b23" /* driver attach announcement */
/* see also: pcvt_ioctl.h */
+#if PCVT_FREEBSD >= 200
+#include <sys/param.h>
+#include <sys/conf.h>
+#include <sys/ioctl.h>
+#include <sys/proc.h>
+#include <sys/user.h>
+#include <sys/tty.h>
+#include <sys/uio.h>
+#include <sys/callout.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <sys/syslog.h>
+#include <sys/malloc.h>
+#include <sys/time.h>
+#else /* ! PCVT_FREEBSD >= 200 */
#include "param.h"
#include "conf.h"
#include "ioctl.h"
@@ -78,6 +93,7 @@
#include "syslog.h"
#include "malloc.h"
#include "time.h"
+#endif /* PCVT_FREEBSD >= 200 */
#include "pcvt_conf.h"
@@ -88,40 +104,73 @@
#if PCVT_NETBSD > 9
#include "i386/isa/isavar.h"
#include "i386/cpufunc.h"
-#else
+#elif PCVT_FREEBSD >= 200
+#include <i386/isa/isa_device.h>
+#else
#include "i386/isa/isa_device.h"
#endif
+#if PCVT_FREEBSD >= 200
+#include <i386/isa/icu.h>
+#else
#include "i386/isa/icu.h"
+#endif
#if PCVT_NETBSD > 100
#include "i386/isa/isareg.h"
+#elif PCVT_FREEBSD >= 200
+#include <i386/isa/isa.h>
#else
#include "i386/isa/isa.h"
#endif
#if PCVT_NETBSD > 9
#include "dev/cons.h"
+#elif PCVT_FREEBSD >= 200
+#include <i386/i386/cons.h>
#else
#include "i386/i386/cons.h"
#endif
#if PCVT_NETBSD <= 9
+#if PCVT_FREEBSD >= 200
+#include <machine/psl.h>
+#include <machine/frame.h>
+#else /* ! PCVT_FREEBSD >= 200 */
#include "machine/psl.h"
#include "machine/frame.h"
-#endif
+#endif /* PCVT_FREEBSD >= 200 */
+#endif /* PCVT_NETBSD <= 9 */
+#if PCVT_FREEBSD >= 200
+#include <machine/stdarg.h>
+#else
#include "machine/stdarg.h"
+#endif
#if PCVT_NETBSD > 9
#include "i386/isa/pcvt/pcvt_ioctl.h"
+#elif PCVT_FREEBSD >= 200
+#include <machine/pcvt_ioctl.h>
#else
#include "machine/pcvt_ioctl.h"
#endif
+#if PCVT_FREEBSD >= 200
+#include <machine/pc/display.h>
+#include <machine/clock.h>
+#include <machine/md_var.h>
+
+#include <vm/vm_kern.h>
+#else
#include "machine/pc/display.h"
#include "vm/vm_kern.h"
+#endif
+
+#if PCVT_FREEBSD > 205
+#include <sys/devconf.h>
+#endif
/* setup irq disable function to use */
@@ -942,6 +991,7 @@ int vt_switch_pending = 0; /* if > 0, a vt switch is */
u_int addr_6845 = MONO_BASE; /* crtc base addr */
u_char do_initialization = 1; /* we have to init ourselves */
+u_char pcvt_is_console = 0; /* until we know it */
u_char shift_down = 0; /* shift key down flag */
u_char ctrl_down = 0; /* ctrl key down flag */
u_char meta_down = 0; /* alt key down flag */
@@ -1078,6 +1128,7 @@ extern u_int addr_6845;
extern u_short *Crtat;
extern struct isa_driver vtdriver;
extern u_char do_initialization;
+extern u_char pcvt_is_console;
extern u_char bgansitopc[];
extern u_char fgansitopc[];
extern u_char shift_down;
@@ -1314,6 +1365,7 @@ void vt_str ( struct video_state *svsp );
void vt_su ( struct video_state *svsp );
void vt_tst ( struct video_state *svsp );
void vt_udk ( struct video_state *svsp );
+void toggl_24l ( struct video_state *svsp );
#ifdef PCVT_INCLUDE_VT_SELATTR
OpenPOWER on IntegriCloud