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__ocm_init() helper.



details:   https://anonhg.NetBSD.org/src/rev/194f89069566
branches:  trunk
changeset: 515190:194f89069566
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Sep 18 19:55:06 2001 +0000

description:
Add cdev__ocm_init() helper.

diffstat:

 sys/sys/conf.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 939fffc39ea5 -r 194f89069566 sys/sys/conf.h
--- a/sys/sys/conf.h    Tue Sep 18 19:54:10 2001 +0000
+++ b/sys/sys/conf.h    Tue Sep 18 19:55:06 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.h,v 1.91 2001/09/16 07:21:08 manu Exp $   */
+/*     $NetBSD: conf.h,v 1.92 2001/09/18 19:55:06 ad Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -183,6 +183,13 @@
        dev_noimpl(write,enodev), dev_init(c,n,ioctl), \
        dev_noimpl(stop,enodev), 0, seltrue, dev_noimpl(mmap,enodev), 0 }
 
+/*  open, close, mmap */
+#define cdev__ocm_init(c,n) { \
+        dev_init(c,n,open), dev_init(c,n,close), dev_noimpl(read,enodev), \
+        dev_noimpl(write,enodev), dev_noimpl(ioctl,enodev), \
+        dev_noimpl(stop,enodev), 0, dev_noimpl(poll,enodev), \
+        dev_init(c,n,mmap), 0 }
+
 /*  open, close, ioctl, poll */
 #define cdev__ocip_init(c,n) { \
         dev_init(c,n,open), dev_init(c,n,close), dev_noimpl(read,enodev), \



Home | Main Index | Thread Index | Old Index