1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
.\" $Id: ssc.4,v 1.1 1997/12/29 21:07:10 brian Exp $
.\"
.\" Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd December 29, 1997
.Dt SSC 4
.Os FreeBSD
.Sh NAME
.Nm ssc
.Nd The `super scsi' driver
.Sh SYNOPSIS
.Cd "pseudo-device ssc"
.Sh DESCRIPTION
The
.Nm
driver provides an access point into the SCSI driver code that can
be used when no SCSI devices have previously been detected. This
is useful for systems that contain only external SCSI devices that
may be powered off at boot time.
.Pp
The
.Sq scsi user ,
or
.Xr su 4
pseudo-device is used by
.Nm ssc ,
and therefore must also be configured.
.Sh KERNEL CONFIGURATION
There are no configuration parameters for the ssc pseudo-device.
.Pp
.Sh IOCTLS
The
.Nm
driver has a single
.Dv SCIOCADDR
ioctl of it's own. This ioctl must be used after opening
.Pa /dev/ssc
and before issuing any other ioctl calls:
.Bd -literal -offset indent
.Fd #include <sys/scsiio.h>
.Ft int
.Fn ioctl "int fd" "SCIOCADDR" "struct scsi_addr *data"
.Ed
.Pp
.Ar Fd
refers to the descriptor returned by
.Xr open 2 ,
and
.Ar data
must have the
.Ar scbus ,
.Ar target
and
.Ar lun
fields set as required. This ioctl may be used at will to change the
device to which subsequent ioctls affect.
.Pp
All other ioctls are passed directly to the
.Xr su 4
pseudo-device driver, using the Bus, Target and Lun that were set
with the last
.Dv SCIOCADDR
ioctl call.
.Sh FILES
.Bl -tag -width /dev/ssc -compact
.It Pa /dev/ssc
The device file used to access the
.Sq super scsi
driver.
.El
.Sh DIAGNOSTICS
If any ioctl is attempted before issuing a
.Dv SCIOCADDR
ioctl,
.Dv ENXIO
is returned. Otherwise, the ioctl is passed directly to the
.Xr su 4
driver.
.Sh SEE ALSO
.Xr open 2 ,
.Xr su 4 ,
.Xr scsi 8
.Sh HISTORY
The
.Nm
driver originally appeared in FreeBSD 2.0.5.
|