4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 #include <sys/types.h>
29 #include <sys/param.h>
30 #include <sys/systm.h>
31 #include <sys/signal.h>
37 #include <sys/vnode.h>
39 #include <sys/stream.h>
41 #include <sys/sunddi.h>
44 * Might need to define no operation routines attach(), detach(),
45 * reset(), probe(), identify() and get_dev_info().
48 extern int nopropop();
50 struct cb_ops no_cb_ops
= {
62 nochpoll
, /* chpoll */
63 nopropop
, /* cb_prop_op */
65 D_NEW
| D_MP
/* char/blk driver compatibility flag */
68 struct dev_ops nodev_ops
= {
69 DEVO_REV
, /* devo_rev */
71 ddi_no_info
, /* info */
72 nulldev
, /* identify */
77 &no_cb_ops
, /* character/block driver operations */
78 NULL
, /* bus operations for nexus drivers */
80 ddi_quiesce_not_needed
, /* quiesce */
83 struct dev_ops
**devopsp
;