summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-02-28 18:48:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-02-28 18:48:36 +0000
commita0ce354e234749f869a267fe01249d949cd6804a (patch)
tree912cdd382018af23c17c6a6d757021e6a566bc4e /sys/arch/sparc64/include
parentdd1fcdbcbb034dcabbf48f0f3fd5a2a0dc5cece3 (diff)
SBus parallel port driver, from NetBSD but untested (no printer or cables);
this should hopefully stop people from asking me about it (-:
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/conf.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/conf.h b/sys/arch/sparc64/include/conf.h
index bdea4f9a9e9..9ec41269d8c 100644
--- a/sys/arch/sparc64/include/conf.h
+++ b/sys/arch/sparc64/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.14 2003/09/23 16:51:11 millert Exp $ */
+/* $OpenBSD: conf.h,v 1.15 2007/02/28 18:48:35 miod Exp $ */
/* $NetBSD: conf.h,v 1.9 2001/03/26 12:33:26 lukem Exp $ */
/*-
@@ -112,3 +112,11 @@ cdev_decl(mtty);
cdev_decl(mbpp);
cdev_decl(stty);
cdev_decl(sbpp);
+
+/* open, close, write, ioctl */
+#define cdev_bpp_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((*))) nullop, \
+ 0, seltrue, (dev_type_mmap((*))) enodev }
+
+cdev_decl(bpp);