/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 1997, 1999 Kenneth D. Merry.4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. The name of the author may not be used to endorse or promote products12* derived from this software without specific prior written permission.13*14* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND15* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE18* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL19* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS20* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)21* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT22* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY23* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF24* SUCH DAMAGE.25*/2627#ifndef _SCSI_PASS_H28#define _SCSI_PASS_H 12930#include <sys/ioccom.h>3132#include <cam/cam_ccb.h>3334/*35* Convert to using a pointer to a ccb in the next major version.36* This should allow us to avoid an extra copy of the CCB data.37*/38#define CAMIOCOMMAND _IOWR(CAM_VERSION, 2, union ccb)39#define CAMGETPASSTHRU _IOWR(CAM_VERSION, 3, union ccb)4041/*42* These two ioctls take a union ccb *, but that is not explicitly declared43* to avoid having the ioctl handling code malloc and free their own copy44* of the CCB or the CCB pointer.45*/46#define CAMIOQUEUE _IO(CAM_VERSION, 4)47#define CAMIOGET _IO(CAM_VERSION, 5)4849#endif505152