Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add cdev_ir_init() macro.
details: https://anonhg.NetBSD.org/src/rev/b2781d8d22e0
branches: trunk
changeset: 518594:b2781d8d22e0
user: augustss <augustss%NetBSD.org@localhost>
date: Sun Dec 02 10:36:33 2001 +0000
description:
Add cdev_ir_init() macro.
diffstat:
sys/sys/conf.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 4581adb6fb6f -r b2781d8d22e0 sys/sys/conf.h
--- a/sys/sys/conf.h Sun Dec 02 10:10:37 2001 +0000
+++ b/sys/sys/conf.h Sun Dec 02 10:36:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.92 2001/09/18 19:55:06 ad Exp $ */
+/* $NetBSD: conf.h,v 1.93 2001/12/02 10:36:33 augustss Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -379,6 +379,12 @@
#define cdev_ugen_init(c,n) cdev__ocrwip_init(c,n)
#define cdev_midi_init(c,n) cdev__ocrwip_init(c,n)
+/* open, close, read, write, ioctl, poll */
+#define cdev_ir_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
+ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev,\
+ 0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
+
/* open, close, ioctl, poll, mmap */
#define cdev_fb_init(c,n) cdev__ocipm_init(c,n)
Home |
Main Index |
Thread Index |
Old Index