diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-04 20:31:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-04 20:31:22 +0000 |
commit | 462e36b9706f787e9602e4fe07cacea43bc84fe1 (patch) | |
tree | ac3c71a082e50613b1c432891ca1dbbfd7944459 | |
parent | 9410882c401298bf5614ac10b02997dd642f7dea (diff) |
do consdev
-rw-r--r-- | sys/lib/libsa/cons.c | 6 | ||||
-rw-r--r-- | sys/lib/libsa/stand.h | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/lib/libsa/cons.c b/sys/lib/libsa/cons.c index 9bfa91e5a63..ea127eac162 100644 --- a/sys/lib/libsa/cons.c +++ b/sys/lib/libsa/cons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cons.c,v 1.5 1997/07/17 23:26:07 mickey Exp $ */ +/* $OpenBSD: cons.c,v 1.6 1997/08/04 20:31:21 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -32,14 +32,18 @@ * */ +#include <sys/types.h> +#include <dev/cons.h> #include "stand.h" static const struct consw *console = &consw[0]; +int consdev; int cons_probe() { int i, f = 0; + consdev = CN_NORMAL; for (i = 0; i < ncons; i++) { if ((consw[i].cn_probe)() != 0) { if (f == 0) diff --git a/sys/lib/libsa/stand.h b/sys/lib/libsa/stand.h index 6f7903ad73e..e9512c71583 100644 --- a/sys/lib/libsa/stand.h +++ b/sys/lib/libsa/stand.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stand.h,v 1.26 1997/07/17 23:07:22 mickey Exp $ */ +/* $OpenBSD: stand.h,v 1.27 1997/08/04 20:31:21 mickey Exp $ */ /* $NetBSD: stand.h,v 1.18 1996/11/30 04:35:51 gwr Exp $ */ /*- @@ -107,6 +107,7 @@ struct consw { extern const struct consw consw[]; extern const int ncons; +extern int consdev; struct open_file { int f_flags; /* see F_* below */ |