summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-09 00:23:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-09 00:23:18 +0000
commit4d822c6aeee5f5ad85e2d8ca739514e0a2c137d8 (patch)
treec30e75d4883404060fb28a651983cbd2c29a35d6
parentb6d83e0302186562476de36c36fad3a2ad6e5289 (diff)
Add vcons(4).
-rw-r--r--sys/arch/sparc64/include/conf.h3
-rw-r--r--sys/arch/sparc64/sparc64/conf.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/conf.h b/sys/arch/sparc64/include/conf.h
index 9ec41269d8c..11374bdc972 100644
--- a/sys/arch/sparc64/include/conf.h
+++ b/sys/arch/sparc64/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.15 2007/02/28 18:48:35 miod Exp $ */
+/* $OpenBSD: conf.h,v 1.16 2008/03/09 00:23:17 kettenis Exp $ */
/* $NetBSD: conf.h,v 1.9 2001/03/26 12:33:26 lukem Exp $ */
/*-
@@ -105,6 +105,7 @@ cdev_decl(wd);
cdev_decl(sabtty);
cdev_decl(pcons);
+cdev_decl(vcons);
cdev_decl(com);
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index cb3d860b4f6..ccbaf4b0cbb 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.44 2007/05/28 22:26:03 todd Exp $ */
+/* $OpenBSD: conf.c,v 1.45 2008/03/09 00:23:17 kettenis Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -73,6 +73,7 @@
#include "zstty.h"
#include "sab.h"
#include "pcons.h"
+#include "vcons.h"
#include "com.h"
#include "lpt.h"
#include "bpp.h"
@@ -282,6 +283,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NPCONS,pcons), /* 122: PROM console */
cdev_ptm_init(NPTY,ptm), /* 123: pseudo-tty ptm device */
cdev_hotplug_init(NHOTPLUG,hotplug), /* 124: devices hot plugging */
+ cdev_tty_init(NVCONS,vcons) /* 125: virtual console */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);