Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add extra initializer macro.
details: https://anonhg.NetBSD.org/src/rev/dbac5dcd9e6e
branches: trunk
changeset: 514759:dbac5dcd9e6e
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Sep 10 10:09:13 2001 +0000
description:
Add extra initializer macro.
diffstat:
sys/sys/conf.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 5c8a4518a6d7 -r dbac5dcd9e6e sys/sys/conf.h
--- a/sys/sys/conf.h Mon Sep 10 10:08:40 2001 +0000
+++ b/sys/sys/conf.h Mon Sep 10 10:09:13 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.88 2001/05/02 10:32:08 scw Exp $ */
+/* $NetBSD: conf.h,v 1.89 2001/09/10 10:09:13 fvdl Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -248,6 +248,13 @@
dev_init(c,n,ioctl), dev_noimpl(stop,enodev), 0, \
dev_init(c,n,poll), dev_init(c,n,mmap), 0 }
+/* open, close, ioctl, mmap */
+#define cdev__ocim_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), \
+ dev_noimpl(read,enodev), dev_noimpl(write,enodev), \
+ dev_init(c,n,ioctl), dev_noimpl(stop,enodev), 0, \
+ dev_noimpl(poll,enodev), dev_init(c,n,mmap), 0 }
+
/* open, close, read, write, ioctl, stop, poll */
#define cdev__ocrwisp_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
Home |
Main Index |
Thread Index |
Old Index