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 2014 Garrett D'Amore <garrett@damore.org> 24 * 25 * Copyright (c) 1992 Sun Microsystems, Inc. All Rights Reserved. 26 */ 27 28 #ifndef _SYS_DKTP_CM_H 29 #define _SYS_DKTP_CM_H 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 typedef void * opaque_t; 52 #endif 53 54 #define PRF prom_printf 55 56 #define SET_BP_SEC(bp, X) ((bp)->b_private = (void *) (X)) 57 #define GET_BP_SEC(bp) ((daddr_t)(bp)->b_private) 58 59 #endif /* _KERNEL */ 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif /* _SYS_DKTP_CM_H */ 66