summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/include/conf.h')
-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);