xref: /titanic_50/usr/src/uts/common/sys/dktp/cm.h (revision 74e20cfe817b82802b16fac8690dadcda76f54f5)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1992 Sun Microsystems, Inc.  All Rights Reserved.
24  */
25 
26 #ifndef _SYS_DKTP_CM_H
27 #define	_SYS_DKTP_CM_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #include <sys/types.h>
32 #ifdef	_KERNEL
33 #include <sys/conf.h>
34 #include <sys/stat.h>
35 #include <sys/errno.h>
36 #include <sys/kmem.h>
37 #include <sys/fcntl.h>
38 #include <sys/open.h>
39 #include <sys/sysmacros.h>
40 #include <sys/ddi.h>
41 #include <sys/sunddi.h>
42 #endif	/* _KERNEL */
43 
44 #ifdef	__cplusplus
45 extern "C" {
46 #endif
47 
48 #ifdef	_KERNEL
49 
50 #ifndef _SYS_SCSI_SCSI_H
51 #ifdef	__STDC__
52 typedef	void *	opaque_t;
53 #else	/* __STDC__ */
54 typedef	char *	opaque_t;
55 #endif	/* __STDC__ */
56 #endif
57 
58 #define	PRF		prom_printf
59 
60 #define	SET_BP_SEC(bp, X) ((bp)->b_private = (void *) (X))
61 #define	GET_BP_SEC(bp) ((daddr_t)(bp)->b_private)
62 
63 #endif	/* _KERNEL */
64 
65 #ifdef	__cplusplus
66 }
67 #endif
68 
69 #endif	/* _SYS_DKTP_CM_H */
70