xref: /freebsd/share/man/man4/sbp_targ.4 (revision d37ea99837e6ad50837fd9fe1771ddf1c3ba6002)
1.\" Copyright (c) 2003 Hidetoshi Shimokawa
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the acknowledgement as bellow:
14.\"
15.\"      This product includes software developed by H. Shimokawa
16.\"
17.\" 4. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
24.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30.\" POSSIBILITY OF SUCH DAMAGE.
31.\"
32.\" $FreeBSD$
33.\"
34.Dd November 7, 2003
35.Dt SBP_TARG 4
36.Os
37.Sh NAME
38.Nm sbp_targ
39.Nd Serial Bus Protocol 2 (SBP-2) Target Mode devices driver
40.Sh SYNOPSIS
41.Cd "kldload firewire"
42.Cd "kldload cam"
43.Cd "kldload sbp_targ"
44.Pp
45or
46.Pp
47.Cd "device sbp_targ"
48.Cd "device firewire"
49.Cd "device scbus"
50.Cd "device targ"
51.Sh DESCRIPTION
52The
53.Nm
54driver provides support for SBP-2 target mode.
55This driver is supposed to work with cam(4), targ(4) and firewire(4).
56You also need to use scsi_target(8), which can be found in
57/usr/share/examples/scsi_target, to provide actual devices.
58.Sh EXAMPLE
59.Bd -literal -offset indent
60# mdconfig -a -t malloc -s 10m
61md0
62# scsi_target 0:0:0 /dev/md0
63(Assuming sbp_targ0 on scbus0)
64.Ed
65.Sh SEE ALSO
66.Xr cam 4 ,
67.Xr firewire 4 ,
68.Xr targ 4 ,
69.Xr camcontrol 8 ,
70.Xr fwcontrol 8 ,
71.Xr kldload 8 ,
72.Xr scsi_target 8 ,
73.Sh AUTHORS
74.An -nosplit
75The
76.Nm
77driver was written by
78.An Hidetoshi Shimokawa .
79.Sh BUGS
80This driver is still under development.
81It doesn't work correctly in multi-initiator environments or after the bus topology has been changed.
82