cam.3 (88cbf2928f0679e40542ad874fadcd3731a495a0) cam.3 (acdb1504ffd64f7138cf0f8cd5fdd4e4653f8f14)
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

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

127More functions are documented in the man pages listed
128below.
129.Pp
130Many of the CAM library functions use the
131.Va cam_device
132structure:
133.Bd -literal
134struct cam_device {
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

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

127More functions are documented in the man pages listed
128below.
129.Pp
130Many of the CAM library functions use the
131.Va cam_device
132structure:
133.Bd -literal
134struct cam_device {
135 char device_path[MAXPATHLEN+1];/*
135 char device_path[MAXPATHLEN+1];/*
136 * Pathname of the
137 * device given by the
138 * user. This may be
139 * null if the user
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 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,
136 * Pathname of the
137 * device given by the
138 * user. This may be
139 * null if the user
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 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'
154 * e.g., 'pass'
155 */
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];/*
155 */
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'
162 * Controller name, e.g., 'ahc'
163 */
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 */
169 uint16_t pd_type; /* type of peripheral device */
170 struct scsi_inquiry_data inq_data; /* SCSI Inquiry data */

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

424passed in is an actual
425.Xr pass 4
426device.
427The former would be rather easy to implement, but the latter would
428require a definitive way to identify a device node as a
429.Xr pass 4
430device.
431.Pp
163 */
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 */
169 uint16_t pd_type; /* type of peripheral device */
170 struct scsi_inquiry_data inq_data; /* SCSI Inquiry data */

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

424passed in is an actual
425.Xr pass 4
426device.
427The former would be rather easy to implement, but the latter would
428require a definitive way to identify a device node as a
429.Xr pass 4
430device.
431.Pp
432Some of the functions are possibly mis-named or poorly named.
432Some of the functions are possibly misnamed or poorly named.