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.\" $Id$ 29979df677SKenneth D. Merry.\" 30979df677SKenneth D. Merry.Dd October 10, 1998 31979df677SKenneth D. Merry.Dt XPT 4 32979df677SKenneth D. Merry.Os FreeBSD 3.0 33979df677SKenneth D. Merry.Sh NAME 34979df677SKenneth D. Merry.Nm xpt 35979df677SKenneth D. Merry.Nd CAM transport layer interface 36979df677SKenneth D. Merry.Sh SYNOPSIS 37979df677SKenneth D. MerryNone. 38979df677SKenneth D. Merry.Sh DESCRIPTION 39979df677SKenneth D. MerryThe 40979df677SKenneth D. Merry.Nm xpt 41979df677SKenneth D. Merrydriver provides a way for userland applications to issue certain CAM CCBs 42979df677SKenneth D. Merryto the kernel. 43979df677SKenneth D. Merry.Pp 44979df677SKenneth D. MerrySince the 45979df677SKenneth D. Merry.Nm xpt 46979df677SKenneth D. Merrydriver allows direct access to the CAM subsystem, system administrators 47979df677SKenneth D. Merryshould exercise caution when granting access to this driver. If used 48979df677SKenneth D. Merryimproperly, this driver can allow userland applications to crash a machine 49979df677SKenneth D. Merryor cause data loss. 50979df677SKenneth D. Merry.Sh KERNEL CONFIGURATION 51979df677SKenneth D. MerryThere is no kernel configuration required for the 52979df677SKenneth D. Merry.Nm xpt 53979df677SKenneth D. Merrydriver. It is enabled when 54979df677SKenneth D. Merry.Tn SCSI 55979df677SKenneth D. Merrysupport is enabled in the kernel. There is one instance of the xpt driver 56979df677SKenneth D. Merryper CAM transport layer instance. Since there is currently only one CAM 57979df677SKenneth D. Merrytransport layer, there will only be one instance of this driver. 58979df677SKenneth D. Merry.Sh IOCTLS 59979df677SKenneth D. Merry.Bl -tag -width 01234567890123 60979df677SKenneth D. Merry.It CAMIOCOMMAND 61979df677SKenneth D. MerryThis ioctl takes certain kinds of CAM CCBs and passes them through to the 62979df677SKenneth D. MerryCAM transport layer for action. Only the following CCB types are 63979df677SKenneth D. Merrysupported: 64979df677SKenneth D. Merry.Pp 65979df677SKenneth D. Merry.Bl -tag -width XPT_DEV_MATCH -compact 66979df677SKenneth D. Merry.It XPT_SCAN_BUS 67979df677SKenneth D. Merry.It XPT_RESET_BUS 68979df677SKenneth D. Merry.It XPT_SCAN_LUN 69979df677SKenneth D. Merry.It XPT_ENG_INQ 70979df677SKenneth D. Merry.It XPT_ENG_EXEC 71979df677SKenneth D. Merry.It XPT_DEBUG 72979df677SKenneth D. Merry.It XPT_DEV_MATCH 73979df677SKenneth D. Merry.El 74979df677SKenneth D. Merry.Pp 75979df677SKenneth D. MerryThe above CCBs are the only ones supported since it makes more sense to 76979df677SKenneth D. Merrysend them through a generic passthrough device rather than a passthrough 77979df677SKenneth D. Merrydevice tied to a particular underlying 78979df677SKenneth D. Merry.Tn SCSI 79979df677SKenneth D. Merrydevice. 80979df677SKenneth D. Merry.It CAMGETPASSTHRU 81979df677SKenneth D. MerryThis ioctl takes an XPT_GDEVLIST CCB, and returns the passthrough device 82979df677SKenneth D. Merrycorresponding to the device in question. 83979df677SKenneth D. Merry.El 84979df677SKenneth D. Merry.Sh FILES 85979df677SKenneth D. Merry.Bl -tag -width 01234567890 -compact 86979df677SKenneth D. Merry.It Pa /dev/xpt0 87979df677SKenneth D. MerryCharacter device node for the 88979df677SKenneth D. Merry.Nm xpt 89979df677SKenneth D. Merrydriver. 90979df677SKenneth D. Merry.El 91979df677SKenneth D. Merry.Sh DIAGNOSTICS 92979df677SKenneth D. MerryNone. 93979df677SKenneth D. Merry.Sh SEE ALSO 94979df677SKenneth D. Merry.Xr cam 3 , 95979df677SKenneth D. Merry.Xr pass 4 , 96979df677SKenneth D. Merry.Xr camcontrol 8 , 97979df677SKenneth D. Merry.Xr cam 9 , 98979df677SKenneth D. Merry.Xr ccb 9 , 99979df677SKenneth D. Merry.Xr xpt 9 , 100979df677SKenneth D. Merry.Sh HISTORY 101979df677SKenneth D. MerryThe CAM transport layer driver first appeared in 102979df677SKenneth D. Merry.Fx 3.0 . 103979df677SKenneth D. Merry.Sh AUTHORS 104979df677SKenneth D. Merry.An Kenneth Merry Aq ken@FreeBSD.ORG 105