summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorcth <none@none>2005-07-29 08:45:16 -0700
committercth <none@none>2005-07-29 08:45:16 -0700
commita913d5545ddac4bfc32870e40d358fefd494cd41 (patch)
tree7f21aac3007e493bdfa1ff27e2a4a00bf5933674 /usr/src
parent92d2039665b766dae1ecf257b1e853eeecb52c93 (diff)
downloadillumos-gate-a913d5545ddac4bfc32870e40d358fefd494cd41.tar.gz
4907042 Some drivers should use ddi_prop_op for cb_prop_op implementation
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/bofi.c25
-rw-r--r--usr/src/uts/common/io/devpoll.c9
2 files changed, 20 insertions, 14 deletions
diff --git a/usr/src/uts/common/io/bofi.c b/usr/src/uts/common/io/bofi.c
index 58e637d2b9..91b2f4186c 100644
--- a/usr/src/uts/common/io/bofi.c
+++ b/usr/src/uts/common/io/bofi.c
@@ -227,21 +227,24 @@ static struct bus_ops bofi_bus_ops = {
};
static struct cb_ops bofi_cb_ops = {
- bofi_open,
- bofi_close,
- nodev,
- nodev,
+ bofi_open, /* open */
+ bofi_close, /* close */
+ nodev, /* strategy */
+ nodev, /* print */
nodev, /* dump */
- nodev,
- nodev,
- bofi_ioctl,
+ nodev, /* read */
+ nodev, /* write */
+ bofi_ioctl, /* ioctl */
nodev, /* devmap */
- nodev,
+ nodev, /* mmap */
nodev, /* segmap */
- nochpoll,
- nodev,
+ nochpoll, /* chpoll */
+ ddi_prop_op, /* prop_op */
NULL, /* for STREAMS drivers */
- D_NEW | D_MP /* driver compatibility flag */
+ D_MP, /* driver compatibility flag */
+ CB_REV, /* cb_ops revision */
+ nodev, /* aread */
+ nodev /* awrite */
};
static struct dev_ops bofi_ops = {
diff --git a/usr/src/uts/common/io/devpoll.c b/usr/src/uts/common/io/devpoll.c
index b394f3de8f..ec7abf195e 100644
--- a/usr/src/uts/common/io/devpoll.c
+++ b/usr/src/uts/common/io/devpoll.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -79,9 +79,12 @@ static struct cb_ops dp_cb_ops = {
nodev, /* mmap */
nodev, /* segmap */
dppoll, /* poll */
- nodev, /* prop_op */
+ ddi_prop_op, /* prop_op */
(struct streamtab *)0, /* streamtab */
- D_NEW | D_MP /* flags */
+ D_MP, /* flags */
+ CB_REV, /* cb_ops revision */
+ nodev, /* aread */
+ nodev /* awrite */
};
static int dpattach(dev_info_t *, ddi_attach_cmd_t);