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 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; |
245 u_int8_t bytes[sizeof(uintptr_t)]; |
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 */ |
281 struct callout_handle timeout_ch; |
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 --- |