1979df677SKenneth D. Merry.\" 2979df677SKenneth D. Merry.\" Copyright (c) 1998 Kenneth D. Merry. 3979df677SKenneth D. Merry.\" All rights reserved. 4979df677SKenneth D. Merry.\" 5979df677SKenneth D. Merry.\" Redistribution and use in source and binary forms, with or without 6979df677SKenneth D. Merry.\" modification, are permitted provided that the following conditions 7979df677SKenneth D. Merry.\" are met: 8979df677SKenneth D. Merry.\" 1. Redistributions of source code must retain the above copyright 9979df677SKenneth D. Merry.\" notice, this list of conditions and the following disclaimer. 10979df677SKenneth D. Merry.\" 2. Redistributions in binary form must reproduce the above copyright 11979df677SKenneth D. Merry.\" notice, this list of conditions and the following disclaimer in the 12979df677SKenneth D. Merry.\" documentation and/or other materials provided with the distribution. 13979df677SKenneth D. Merry.\" 3. The name of the author may not be used to endorse or promote products 14979df677SKenneth D. Merry.\" derived from this software without specific prior written permission. 15979df677SKenneth D. Merry.\" 16979df677SKenneth D. Merry.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17979df677SKenneth D. Merry.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18979df677SKenneth D. Merry.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19979df677SKenneth D. Merry.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20979df677SKenneth D. Merry.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21979df677SKenneth D. Merry.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22979df677SKenneth D. Merry.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23979df677SKenneth D. Merry.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24979df677SKenneth D. Merry.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25979df677SKenneth D. Merry.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26979df677SKenneth D. Merry.\" SUCH DAMAGE. 27979df677SKenneth D. Merry.\" 28979df677SKenneth D. Merry.Dd October 10, 1998 29979df677SKenneth D. Merry.Dt XPT 4 303d45e180SRuslan Ermilov.Os 31979df677SKenneth D. Merry.Sh NAME 32979df677SKenneth D. Merry.Nm xpt 33979df677SKenneth D. Merry.Nd CAM transport layer interface 34979df677SKenneth D. Merry.Sh SYNOPSIS 35979df677SKenneth D. MerryNone. 36979df677SKenneth D. Merry.Sh DESCRIPTION 37979df677SKenneth D. MerryThe 384b66483fSRuslan Ermilov.Nm 39979df677SKenneth D. Merrydriver provides a way for userland applications to issue certain CAM CCBs 40979df677SKenneth D. Merryto the kernel. 41979df677SKenneth D. Merry.Pp 42979df677SKenneth D. MerrySince the 434b66483fSRuslan Ermilov.Nm 44979df677SKenneth D. Merrydriver allows direct access to the CAM subsystem, system administrators 455203edcdSRuslan Ermilovshould exercise caution when granting access to this driver. 465203edcdSRuslan ErmilovIf used 47979df677SKenneth D. Merryimproperly, this driver can allow userland applications to crash a machine 48979df677SKenneth D. Merryor cause data loss. 49979df677SKenneth D. Merry.Sh KERNEL CONFIGURATION 50979df677SKenneth D. MerryThere is no kernel configuration required for the 514b66483fSRuslan Ermilov.Nm 525203edcdSRuslan Ermilovdriver. 535203edcdSRuslan ErmilovIt is enabled when 54979df677SKenneth D. Merry.Tn SCSI 555203edcdSRuslan Ermilovsupport is enabled in the kernel. 565203edcdSRuslan ErmilovThere is one instance of the xpt driver 575203edcdSRuslan Ermilovper CAM transport layer instance. 585203edcdSRuslan ErmilovSince there is currently only one CAM 59979df677SKenneth D. Merrytransport layer, there will only be one instance of this driver. 60979df677SKenneth D. Merry.Sh IOCTLS 61979df677SKenneth D. Merry.Bl -tag -width 01234567890123 62979df677SKenneth D. Merry.It CAMIOCOMMAND 63979df677SKenneth D. MerryThis ioctl takes certain kinds of CAM CCBs and passes them through to the 645203edcdSRuslan ErmilovCAM transport layer for action. 655203edcdSRuslan ErmilovOnly the following CCB types are 66979df677SKenneth D. Merrysupported: 67979df677SKenneth D. Merry.Pp 68979df677SKenneth D. Merry.Bl -tag -width XPT_DEV_MATCH -compact 69979df677SKenneth D. Merry.It XPT_SCAN_BUS 70979df677SKenneth D. Merry.It XPT_RESET_BUS 71979df677SKenneth D. Merry.It XPT_SCAN_LUN 72979df677SKenneth D. Merry.It XPT_ENG_INQ 73979df677SKenneth D. Merry.It XPT_ENG_EXEC 74979df677SKenneth D. Merry.It XPT_DEBUG 75979df677SKenneth D. Merry.It XPT_DEV_MATCH 7696b8a53dSScott Long.It XPT_PATH_INQ 77979df677SKenneth D. Merry.El 78979df677SKenneth D. Merry.Pp 79979df677SKenneth D. MerryThe above CCBs are the only ones supported since it makes more sense to 80979df677SKenneth D. Merrysend them through a generic passthrough device rather than a passthrough 81979df677SKenneth D. Merrydevice tied to a particular underlying 82979df677SKenneth D. Merry.Tn SCSI 83979df677SKenneth D. Merrydevice. 84979df677SKenneth D. Merry.It CAMGETPASSTHRU 85979df677SKenneth D. MerryThis ioctl takes an XPT_GDEVLIST CCB, and returns the passthrough device 86979df677SKenneth D. Merrycorresponding to the device in question. 87979df677SKenneth D. Merry.El 88979df677SKenneth D. Merry.Sh FILES 893136363fSRuslan Ermilov.Bl -tag -width /dev/xpt0 -compact 90979df677SKenneth D. Merry.It Pa /dev/xpt0 91979df677SKenneth D. MerryCharacter device node for the 924b66483fSRuslan Ermilov.Nm 93979df677SKenneth D. Merrydriver. 94979df677SKenneth D. Merry.El 95979df677SKenneth D. Merry.Sh DIAGNOSTICS 96979df677SKenneth D. MerryNone. 97979df677SKenneth D. Merry.Sh SEE ALSO 98979df677SKenneth D. Merry.Xr cam 3 , 99de336449SKenneth D. Merry.Xr cam_cdbparse 3 , 100979df677SKenneth D. Merry.Xr pass 4 , 101de336449SKenneth D. Merry.Xr camcontrol 8 102979df677SKenneth D. Merry.Sh HISTORY 103979df677SKenneth D. MerryThe CAM transport layer driver first appeared in 104979df677SKenneth D. Merry.Fx 3.0 . 105979df677SKenneth D. Merry.Sh AUTHORS 106*6c899950SBaptiste Daroussin.An Kenneth Merry Aq Mt ken@FreeBSD.org 107