xref: /onnv-gate/usr/src/uts/common/fs/zfs/sys/vdev_disk.h (revision 6423:437422a29d3a)
1789Sahrens /*
2789Sahrens  * CDDL HEADER START
3789Sahrens  *
4789Sahrens  * The contents of this file are subject to the terms of the
5*6423Sgw25295  * Common Development and Distribution License (the "License").
6*6423Sgw25295  * You may not use this file except in compliance with the License.
7789Sahrens  *
8789Sahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9789Sahrens  * or http://www.opensolaris.org/os/licensing.
10789Sahrens  * See the License for the specific language governing permissions
11789Sahrens  * and limitations under the License.
12789Sahrens  *
13789Sahrens  * When distributing Covered Code, include this CDDL HEADER in each
14789Sahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15789Sahrens  * If applicable, add the following below this CDDL HEADER, with the
16789Sahrens  * fields enclosed by brackets "[]" replaced with your own identifying
17789Sahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
18789Sahrens  *
19789Sahrens  * CDDL HEADER END
20789Sahrens  */
21789Sahrens /*
22*6423Sgw25295  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23789Sahrens  * Use is subject to license terms.
24789Sahrens  */
25789Sahrens 
26789Sahrens #ifndef _SYS_VDEV_DISK_H
27789Sahrens #define	_SYS_VDEV_DISK_H
28789Sahrens 
29789Sahrens #pragma ident	"%Z%%M%	%I%	%E% SMI"
30789Sahrens 
31789Sahrens #include <sys/vdev.h>
32789Sahrens #ifdef _KERNEL
33*6423Sgw25295 #include <sys/buf.h>
34*6423Sgw25295 #include <sys/ddi.h>
35789Sahrens #include <sys/sunldi.h>
36789Sahrens #include <sys/sunddi.h>
37789Sahrens #endif
38789Sahrens 
39789Sahrens #ifdef	__cplusplus
40789Sahrens extern "C" {
41789Sahrens #endif
42789Sahrens 
43789Sahrens typedef struct vdev_disk {
44789Sahrens 	ddi_devid_t	vd_devid;
45789Sahrens 	char		*vd_minor;
46789Sahrens 	ldi_handle_t	vd_lh;
47789Sahrens } vdev_disk_t;
48789Sahrens 
49*6423Sgw25295 #ifdef _KERNEL
50*6423Sgw25295 extern int vdev_disk_physio(ldi_handle_t, caddr_t, size_t, uint64_t, int);
51*6423Sgw25295 #endif
52789Sahrens #ifdef	__cplusplus
53789Sahrens }
54789Sahrens #endif
55789Sahrens 
56789Sahrens #endif	/* _SYS_VDEV_DISK_H */
57