summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-03-15 20:46:12 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-03-15 20:46:12 +0000
commitd4e65d4da893e9dbb2ada52f0bc0e9b8eea3b076 (patch)
tree95f14e993c70c3c94d1a1f3d91042f7a58307f17 /sys/arch
parentc85bfe6423194599b5a80e73feaf4b9a024ba74f (diff)
Add lpt device entry point
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/conf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index d77476892f0..16133e3f147 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.28 2002/01/31 22:36:14 jason Exp $ */
+/* $OpenBSD: conf.c,v 1.29 2002/03/15 20:46:11 jason Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -55,6 +55,12 @@
#include <machine/conf.h>
+/* open, close, write, ioctl */
+#define cdev_lpt_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
+ 0, seltrue, (dev_type_mmap((*))) enodev }
+
#include "pty.h"
#include "bpfilter.h"
#include "tun.h"
@@ -77,6 +83,7 @@
#include "sab.h"
#include "pcons.h"
#include "com.h"
+#include "lpt.h"
#ifdef notyet
#include "bpp.h"
#else
@@ -195,7 +202,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 34 */
cdev_notdef(), /* 35 */
cdev_tty_init(NCOM,com), /* 36: NS16x50 compatible ports */
- cdev_notdef(), /* 37 */
+ cdev_lpt_init(NLPT,lpt), /* 37: parallel printer */
cdev_notdef(), /* 38 */
cdev_notdef(), /* 39 */
cdev_notdef(), /* 40 */