Deleted Added
full compact
cam.3 (213682) cam.3 (231564)
1.\"
2.\" Copyright (c) 1998 Kenneth D. Merry.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\"
2.\" Copyright (c) 1998 Kenneth D. Merry.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/lib/libcam/cam.3 213682 2010-10-11 09:27:37Z avg $
28.\" $FreeBSD: head/lib/libcam/cam.3 231564 2012-02-12 18:29:56Z ed $
29.\"
30.Dd October 10, 1998
31.Dt CAM 3
32.Os
33.Sh NAME
34.Nm cam_open_device ,
35.Nm cam_open_spec_device ,
36.Nm cam_open_btl ,

--- 103 unchanged lines hidden (view full) ---

140 * states the device
141 * name and unit number
142 * separately.
143 */
144 char given_dev_name[DEV_IDLEN+1];/*
145 * Device name given by
146 * the user.
147 */
29.\"
30.Dd October 10, 1998
31.Dt CAM 3
32.Os
33.Sh NAME
34.Nm cam_open_device ,
35.Nm cam_open_spec_device ,
36.Nm cam_open_btl ,

--- 103 unchanged lines hidden (view full) ---

140 * states the device
141 * name and unit number
142 * separately.
143 */
144 char given_dev_name[DEV_IDLEN+1];/*
145 * Device name given by
146 * the user.
147 */
148 u_int32_t given_unit_number; /*
148 uint32_t given_unit_number; /*
149 * Unit number given by
150 * the user.
151 */
152 char device_name[DEV_IDLEN+1];/*
153 * Name of the device,
154 * e.g. 'pass'
155 */
149 * Unit number given by
150 * the user.
151 */
152 char device_name[DEV_IDLEN+1];/*
153 * Name of the device,
154 * e.g. 'pass'
155 */
156 u_int32_t dev_unit_num; /* Unit number of the passthrough
156 uint32_t dev_unit_num; /* Unit number of the passthrough
157 * device associated with this
158 * particular device.
159 */
160
161 char sim_name[SIM_IDLEN+1];/*
162 * Controller name, e.g.'ahc'
163 */
157 * device associated with this
158 * particular device.
159 */
160
161 char sim_name[SIM_IDLEN+1];/*
162 * Controller name, e.g.'ahc'
163 */
164 u_int32_t sim_unit_number; /* Controller unit number */
165 u_int32_t bus_id; /* Controller bus number */
164 uint32_t sim_unit_number; /* Controller unit number */
165 uint32_t bus_id; /* Controller bus number */
166 lun_id_t target_lun; /* Logical Unit Number */
167 target_id_t target_id; /* Target ID */
168 path_id_t path_id; /* System SCSI bus number */
166 lun_id_t target_lun; /* Logical Unit Number */
167 target_id_t target_id; /* Target ID */
168 path_id_t path_id; /* System SCSI bus number */
169 u_int16_t pd_type; /* type of peripheral device */
169 uint16_t pd_type; /* type of peripheral device */
170 struct scsi_inquiry_data inq_data; /* SCSI Inquiry data */
170 struct scsi_inquiry_data inq_data; /* SCSI Inquiry data */
171 u_int8_t serial_num[252]; /* device serial number */
172 u_int8_t serial_num_len; /* length of the serial number */
173 u_int8_t sync_period; /* Negotiated sync period */
174 u_int8_t sync_offset; /* Negotiated sync offset */
175 u_int8_t bus_width; /* Negotiated bus width */
171 uint8_t serial_num[252]; /* device serial number */
172 uint8_t serial_num_len; /* length of the serial number */
173 uint8_t sync_period; /* Negotiated sync period */
174 uint8_t sync_offset; /* Negotiated sync offset */
175 uint8_t bus_width; /* Negotiated bus width */
176 int fd; /* file descriptor for device */
177};
178.Ed
179.Pp
180.Fn cam_open_device
181takes as arguments a string describing the device it is to open, and
182.Ar flags
183suitable for passing to

--- 242 unchanged lines hidden ---
176 int fd; /* file descriptor for device */
177};
178.Ed
179.Pp
180.Fn cam_open_device
181takes as arguments a string describing the device it is to open, and
182.Ar flags
183suitable for passing to

--- 242 unchanged lines hidden ---