Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys bktr driver added



details:   https://anonhg.NetBSD.org/src/rev/a0cf061513d6
branches:  trunk
changeset: 485835:a0cf061513d6
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun May 07 00:31:42 2000 +0000

description:
bktr driver added

diffstat:

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

diffs (23 lines):

diff -r f6a667cf34fc -r a0cf061513d6 sys/sys/conf.h
--- a/sys/sys/conf.h    Sun May 07 00:29:19 2000 +0000
+++ b/sys/sys/conf.h    Sun May 07 00:31:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.h,v 1.73 2000/03/16 14:52:22 ad Exp $     */
+/*     $NetBSD: conf.h,v 1.74 2000/05/07 00:31:42 wiz Exp $    */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -369,6 +369,13 @@
        dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
        0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, 0 }
 
+/* open, close, read, ioctl, mmap */
+#define cdev_bktr_init(c,n) { \
+       dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
+       (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
+       (dev_type_stop((*))) enodev, 0, seltrue, \
+       (dev_init(c,n,mmap)) }
+
 /* symbolic sleep message strings */
 extern const char devopn[], devio[], devwait[], devin[], devout[];
 extern const char devioc[], devcls[];



Home | Main Index | Thread Index | Old Index