1*86d7f5d3SJohn Marino /* 2*86d7f5d3SJohn Marino * Copyright (c) 1997, 1999 Kenneth D. Merry. 3*86d7f5d3SJohn Marino * All rights reserved. 4*86d7f5d3SJohn Marino * 5*86d7f5d3SJohn Marino * Redistribution and use in source and binary forms, with or without 6*86d7f5d3SJohn Marino * modification, are permitted provided that the following conditions 7*86d7f5d3SJohn Marino * are met: 8*86d7f5d3SJohn Marino * 1. Redistributions of source code must retain the above copyright 9*86d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer. 10*86d7f5d3SJohn Marino * 2. The name of the author may not be used to endorse or promote products 11*86d7f5d3SJohn Marino * derived from this software without specific prior written permission. 12*86d7f5d3SJohn Marino * 13*86d7f5d3SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*86d7f5d3SJohn Marino * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*86d7f5d3SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*86d7f5d3SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*86d7f5d3SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*86d7f5d3SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*86d7f5d3SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*86d7f5d3SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*86d7f5d3SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*86d7f5d3SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*86d7f5d3SJohn Marino * SUCH DAMAGE. 24*86d7f5d3SJohn Marino * 25*86d7f5d3SJohn Marino * $FreeBSD: src/sys/cam/scsi/scsi_pass.h,v 1.3 1999/08/28 00:40:48 peter Exp $ 26*86d7f5d3SJohn Marino * $DragonFly: src/sys/bus/cam/scsi/scsi_pass.h,v 1.4 2007/11/18 17:53:01 pavalos Exp $ 27*86d7f5d3SJohn Marino */ 28*86d7f5d3SJohn Marino 29*86d7f5d3SJohn Marino #ifndef _SCSI_PASS_H 30*86d7f5d3SJohn Marino #define _SCSI_PASS_H 1 31*86d7f5d3SJohn Marino 32*86d7f5d3SJohn Marino #include <sys/ioccom.h> 33*86d7f5d3SJohn Marino 34*86d7f5d3SJohn Marino #include "../cam_ccb.h" 35*86d7f5d3SJohn Marino 36*86d7f5d3SJohn Marino /* 37*86d7f5d3SJohn Marino * Convert to using a pointer to a ccb in the next major version. 38*86d7f5d3SJohn Marino * This should allow us to avoid an extra copy of the CCB data. 39*86d7f5d3SJohn Marino */ 40*86d7f5d3SJohn Marino #define CAMIOCOMMAND _IOWR(CAM_VERSION, 2, union ccb) 41*86d7f5d3SJohn Marino #define CAMGETPASSTHRU _IOWR(CAM_VERSION, 3, union ccb) 42*86d7f5d3SJohn Marino 43*86d7f5d3SJohn Marino #endif 44