summaryrefslogtreecommitdiff
path: root/sys/dev/ic/comvar.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-08 15:42:49 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-08 15:42:49 +0000
commit5e5d66af434518337c3737e1d9dd29b5b0c17719 (patch)
treea2021658f49a1db82c88dbaa19fa79cc14e7878b /sys/dev/ic/comvar.h
parenta4e0c469bb1a4b5e82cf475f675c8b1ed7cbe69d (diff)
Add comcnattach that does the basic steps needed to attach
a com as a serial console. (idea from NetBSD). If cn_tab->cn_dev == NODEV, try to find comopen in cdevsw and set cn_dev to the right device.
Diffstat (limited to 'sys/dev/ic/comvar.h')
-rw-r--r--sys/dev/ic/comvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h
index c1d4a4c06bc..141b8f9fb9f 100644
--- a/sys/dev/ic/comvar.h
+++ b/sys/dev/ic/comvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: comvar.h,v 1.16 2000/02/04 06:11:58 angelos Exp $ */
+/* $OpenBSD: comvar.h,v 1.17 2000/11/08 15:42:48 art Exp $ */
/* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */
/*
@@ -156,6 +156,8 @@ int comcngetc __P((dev_t));
void comcnputc __P((dev_t, int));
void comcnpollc __P((dev_t, int));
+int comcnattach __P((bus_space_tag_t, int, int, int, tcflag_t));
+
extern int comdefaultrate;
extern int comconsaddr;
extern int comconsinit;