summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_cons.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-08-20 20:25:00 +0000
committerjulian <julian@FreeBSD.org>1999-08-20 20:25:00 +0000
commit96374c14c32cf0dd12eb4024cf1519b41b798402 (patch)
treea4781d645d0e90d47bdc8a804ab1ea251d5f8f20 /sys/kern/tty_cons.c
parente9ceff94f296890ef2ef7a2f056f5364bcae8777 (diff)
downloadFreeBSD-src-96374c14c32cf0dd12eb4024cf1519b41b798402.zip
FreeBSD-src-96374c14c32cf0dd12eb4024cf1519b41b798402.tar.gz
First small steps at merging DEVFS and PHK's Dev_t stuff.
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r--sys/kern/tty_cons.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 4310e4d..397b56b 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
- * $Id: tty_cons.c,v 1.72 1999/08/09 11:02:43 phk Exp $
+ * $Id: tty_cons.c,v 1.73 1999/08/13 10:52:22 phk Exp $
*/
#include <sys/param.h>
@@ -99,8 +99,9 @@ static int openmode, openflag; /* how /dev/console was openned */
static u_char cn_phys_is_open; /* nonzero if physical device is open */
static d_close_t *cn_phys_close; /* physical device close function */
static d_open_t *cn_phys_open; /* physical device open function */
-struct consdev *cn_tab; /* physical console device info */
+struct consdev *cn_tab; /* physical console device info */
static struct tty *cn_tp; /* physical console tty struct */
+static dev_t condev_t; /* represents the device private info */
CONS_DRIVER(cons, NULL, NULL, NULL, NULL, NULL, NULL);
@@ -432,7 +433,8 @@ cn_drvinit(void *unused)
{
cdevsw_add(&cn_cdevsw);
- make_dev (&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console");
+ condev_t = make_dev (&cn_cdevsw, 0,
+ UID_ROOT, GID_WHEEL, 0600, "console");
}
SYSINIT(cndev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,cn_drvinit,NULL)
OpenPOWER on IntegriCloud