Lines Matching +full:test2 +full:. +full:good
4 * Copyright (c) 2003 Silicon Graphics International Corp.
5 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org>
6 * All rights reserved.
11 * 1. Redistributions of source code must retain the above copyright
13 * without modification.
14 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * binary redistribution.
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 * POSSIBILITY OF SUCH DAMAGES.
33 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_io.h#5 $
37 * CAM Target Layer data movement structures/interface.
39 * Author: Ken Merry <ken@FreeBSD.org>
49 * and/or done stage.
57 * Uncomment this next line to enable the CTL I/O delay feature. You
58 * can delay I/O at two different points -- datamove and done. This is
60 * timeout), and for determining how long a host's timeout is.
77 * WARNING: Keep the data in/out/none flags where they are. They're used
78 * in conjunction with ctl_cmd_flags. See comment above ctl_cmd_flags
79 * definition in ctl_private.h.
148 * Number of CTL private areas.
163 #define CTL_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[0])
164 #define CTL_SOFTC(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[1])
165 #define CTL_BACKEND_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND_LUN].ptrs[0])
167 ctl_ports[(io)->io_hdr.nexus.targ_port])
171 * ever reach backends, so we can reuse backend's private storage.
173 #define CTL_RSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[0])
174 #define CTL_LSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[1])
208 CTL_MSG_UA, /* Set/clear UA on secondary. */
209 CTL_MSG_PORT_SYNC, /* Information about port. */
210 CTL_MSG_LUN_SYNC, /* Information about LUN. */
211 CTL_MSG_IID_SYNC, /* Information about initiator. */
212 CTL_MSG_LOGIN, /* Information about HA peer. */
213 CTL_MSG_MODE_SYNC, /* Mode page current content. */
221 ctl_io_type io_type; /* task I/O, SCSI I/O, etc. */
227 uint32_t port_status; /* trans status, set by PORT, 0 = good*/
261 * SCSI passthrough I/O structure for the CAM Target Layer. Note
263 * used in the CTL implementation. e.g., timeout and retries won't be
264 * used.
267 * structure.
274 * doesn't modify or use them.
283 * by kern_data_ptr. 0 means there is no list, just a data pointer.
287 uint32_t rem_sg_entries; /* Unused. */
290 * The data pointer or a pointer to the scatter/gather list.
295 * Length of the data buffer or scatter/gather list. It's also
297 * ie. number of bytes expected to be transferred by the current
298 * invocation of frontend's datamove() callback. It's always
299 * less than or equal to kern_total_len.
305 * SCSI command, as decoded from SCSI CDB.
310 * Amount of data left after the current data transfer.
317 * datamove() invocations.
324 uint8_t sense_residual; /* Unused. */
327 ctl_tag_type tag_type; /* simple, ordered, head of queue,etc.*/
359 * Task management I/O structure. Aborts, bus resets, etc., are sent using
360 * this structure.
363 * structure.
367 ctl_task_type task_action; /* Target Reset, Abort, etc. */
369 ctl_tag_type tag_type; /* simple, ordered, etc. */
370 uint8_t task_status; /* Complete, Succeeded, etc. */
376 * HA link messages.
381 * Used for CTL_MSG_LOGIN.
404 * to the other SC which it must also act on.
407 * structure.
428 * Used for CTL_MSG_PERS_ACTION.
436 * Used for CTL_MSG_UA.
448 * structure, because we can't pass data by reference in between controllers.
450 * kern_data_ptr field. So kern_sg_entries here will always be non-zero,
451 * even if there is only one entry.
453 * Used for CTL_MSG_DATAMOVE.
475 * and CTL_MSG_DATAMOVE_DONE.
480 ctl_tag_type tag_type; /* simple, ordered, etc. */
486 0 = good*/
492 * Used for CTL_MSG_MANAGE_TASKS.
496 ctl_task_type task_action; /* Target Reset, Abort, etc. */
498 ctl_tag_type tag_type; /* simple, ordered, etc. */
502 * Used for CTL_MSG_PORT_SYNC.
519 * Used for CTL_MSG_LUN_SYNC.
538 * Used for CTL_MSG_IID_SYNC.
549 * Used for CTL_MSG_MODE_SYNC.
582 struct ctl_prio presio; /* update per. res info on other SC */