diff options
-rw-r--r-- | sys/arch/sparc64/sparc64/conf.c | 11 |
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 */ |