4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1996, by Sun Microsystems, Inc.
24 * All rights reserved.
28 * DCD device structure.
30 * All DCD target drivers will have one of these per target/lun.
31 * It will be created by a parent device and stored as driver private
32 * data in that device's dev_info_t (and thus can be retrieved by
33 * the function ddi_get_driver_private).
36 #ifndef _SYS_DCD_CONF_DEVICE_H
37 #define _SYS_DCD_CONF_DEVICE_H
39 #pragma ident "%Z%%M% %I% %E% SMI"
41 #include <sys/dada/dada_types.h>
49 * Routing info for this device.
52 struct dcd_address
*dcd_address
;
55 * Cross-reference to our dev_info_t.
61 * Mutex for this device, initialized by
62 * parent prior to calling probe or attach
69 * Reserved, do not use.
76 * If dcd_probe is used to probe out this device,
77 * a dcd_identify data structure will be allocated
78 * and an IDENTIFY command will be run to fill it in.
82 struct dcd_identify
*dcd_ident
;
85 * More detailed information is 'private' information, i.e., is
86 * only pertinent to Target drivers.
96 extern int dcd_probe(struct dcd_device
*devp
, int (*callback
)());
97 extern void dcd_unprobe(struct dcd_device
*devp
);
99 extern int dcd_probe();
100 extern void dcd_unprobe();
101 #endif /* __STDC__ */
108 #endif /* _SYS_DCD_CONF_DEVICE_H */