summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 07:49:39 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-07-15 07:49:39 +0000
commit8d9f3eeb9f26221e0bcfeb14ebece2ba66a9214e (patch)
tree99b3dc6ff4fc1c3abb7f778a1a16c6ebf14cd43f /sys
parent8ef7b0b3444a1c2cf624b82bae1946cf5e15f4a0 (diff)
add uk device macro.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/conf.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 3feeede8959..aa3e5449e27 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.10 1996/06/10 19:52:48 niklas Exp $ */
+/* $OpenBSD: conf.h,v 1.11 1996/07/15 07:49:38 mickey Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
@@ -285,6 +285,13 @@ extern struct cdevsw cdevsw[];
(dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \
(dev_type_mmap((*))) enodev }
+/* open, close, ioctl */
+#define cdev_uk_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
+ (dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \
+ (dev_type_mmap((*))) enodev }
+
/* open, close, ioctl, mmap */
#define cdev_fb_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \