diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-12 21:28:40 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-12 21:28:40 +0000 |
commit | 084e3f66981ce7370c130880353703d2afb3321f (patch) | |
tree | 11fd7b502be19e6c727671ef524e6f19943ed210 /sys/lib/libsa/stand.h | |
parent | 6391788c28acf82a117d4e5474b6e02519db20be (diff) |
new, like dev/cninit.c+cons.c
Diffstat (limited to 'sys/lib/libsa/stand.h')
-rw-r--r-- | sys/lib/libsa/stand.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/sys/lib/libsa/stand.h b/sys/lib/libsa/stand.h index e9512c71583..0fa92e53b7c 100644 --- a/sys/lib/libsa/stand.h +++ b/sys/lib/libsa/stand.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stand.h,v 1.27 1997/08/04 20:31:21 mickey Exp $ */ +/* $OpenBSD: stand.h,v 1.28 1997/08/12 21:28:39 mickey Exp $ */ /* $NetBSD: stand.h,v 1.18 1996/11/30 04:35:51 gwr Exp $ */ /*- @@ -97,17 +97,8 @@ struct devsw { extern struct devsw devsw[]; /* device array */ extern int ndevs; /* number of elements in devsw[] */ -struct consw { - char *name; /* console driver name */ - int (*cn_probe) __P((void)); /* probe device for presence */ - void (*cn_putc) __P((int c)); /* print char */ - int (*cn_getc) __P((void)); /* read char */ - int (*cn_ischar) __P((void)); /* check input */ -}; - -extern const struct consw consw[]; -extern const int ncons; -extern int consdev; +extern struct consdev constab[]; +extern struct consdev *cn_tab; struct open_file { int f_flags; /* see F_* below */ @@ -190,9 +181,10 @@ int null_stat __P((struct open_file *f, struct stat *sb)); int null_readdir __P((struct open_file *f, char *name)); int cons_probe __P((void)); char *ttyname __P((int)); /* match userland decl, but ignore !0 */ -void putc __P((int)); -int getc __P((void)); -int ischar __P((void)); +void cninit __P((void)); +void cnputc __P((int)); +int cngetc __P((void)); +int cnischar __P((void)); u_int sleep __P((u_int)); void usleep __P((u_int)); |