Deleted Added
full compact
cam_ccb.h (164844) cam_ccb.h (168752)
1/*-
2 * Data structures and definitions for CAM Control Blocks (CCBs).
3 *
4 * Copyright (c) 1997, 1998 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * 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 * Data structures and definitions for CAM Control Blocks (CCBs).
3 *
4 * Copyright (c) 1997, 1998 Justin T. Gibbs.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * 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/sys/cam/cam_ccb.h 164844 2006-12-03 07:19:28Z mjacob $
28 * $FreeBSD: head/sys/cam/cam_ccb.h 168752 2007-04-15 08:49:19Z scottl $
29 */
30
31#ifndef _CAM_CAM_CCB_H
32#define _CAM_CAM_CCB_H 1
33
34#include <sys/queue.h>
35#include <sys/cdefs.h>
36#include <sys/time.h>

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

237 SLIST_ENTRY(ccb_hdr) sle;
238 TAILQ_ENTRY(ccb_hdr) tqe;
239 STAILQ_ENTRY(ccb_hdr) stqe;
240} camq_entry;
241
242typedef union {
243 void *ptr;
244 u_long field;
29 */
30
31#ifndef _CAM_CAM_CCB_H
32#define _CAM_CAM_CCB_H 1
33
34#include <sys/queue.h>
35#include <sys/cdefs.h>
36#include <sys/time.h>

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

237 SLIST_ENTRY(ccb_hdr) sle;
238 TAILQ_ENTRY(ccb_hdr) tqe;
239 STAILQ_ENTRY(ccb_hdr) stqe;
240} camq_entry;
241
242typedef union {
243 void *ptr;
244 u_long field;
245 u_int8_t bytes[sizeof(void *) > sizeof(u_long)
246 ? sizeof(void *) : sizeof(u_long)];
245 u_int8_t bytes[sizeof(uintptr_t)];
247} ccb_priv_entry;
248
249typedef union {
250 ccb_priv_entry entries[CCB_PERIPH_PRIV_SIZE];
251 u_int8_t bytes[CCB_PERIPH_PRIV_SIZE * sizeof(ccb_priv_entry)];
252} ccb_ppriv_area;
253
254typedef union {

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

269 struct cam_path *path; /* Compiled path for this ccb */
270 path_id_t path_id; /* Path ID for the request */
271 target_id_t target_id; /* Target device ID */
272 lun_id_t target_lun; /* Target LUN number */
273 u_int32_t flags; /* ccb_flags */
274 ccb_ppriv_area periph_priv;
275 ccb_spriv_area sim_priv;
276 u_int32_t timeout; /* Timeout value */
246} ccb_priv_entry;
247
248typedef union {
249 ccb_priv_entry entries[CCB_PERIPH_PRIV_SIZE];
250 u_int8_t bytes[CCB_PERIPH_PRIV_SIZE * sizeof(ccb_priv_entry)];
251} ccb_ppriv_area;
252
253typedef union {

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

268 struct cam_path *path; /* Compiled path for this ccb */
269 path_id_t path_id; /* Path ID for the request */
270 target_id_t target_id; /* Target device ID */
271 lun_id_t target_lun; /* Target LUN number */
272 u_int32_t flags; /* ccb_flags */
273 ccb_ppriv_area periph_priv;
274 ccb_spriv_area sim_priv;
275 u_int32_t timeout; /* Timeout value */
276
277 /*
278 * Deprecated, only for use by non-MPSAFE SIMs. All others must
279 * allocate and initialize their own callout storage.
280 */
277 struct callout_handle timeout_ch;
281 struct callout_handle timeout_ch;
278 /* Callout handle used for timeouts */
279};
280
281/* Get Device Information CCB */
282struct ccb_getdev {
283 struct ccb_hdr ccb_h;
284 struct scsi_inquiry_data inq_data;
285 u_int8_t serial_num[252];
286 u_int8_t reserved;

--- 683 unchanged lines hidden ---
282};
283
284/* Get Device Information CCB */
285struct ccb_getdev {
286 struct ccb_hdr ccb_h;
287 struct scsi_inquiry_data inq_data;
288 u_int8_t serial_num[252];
289 u_int8_t reserved;

--- 683 unchanged lines hidden ---