isp_freebsd.h (bc02c18c486fce2ca23b428a9e89b4eb3bb48da3) isp_freebsd.h (883649681528398dc227778882830fc9da0ce58c)
1/* $FreeBSD$ */
2/*-
3 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 *
5 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions
6 *
7 * Copyright (c) 1997-2008 by Matthew Jacob
8 * All rights reserved.

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

541 ccb->sense_len - ccb->sense_resid, 1))
542#define XS_TAG_P(ccb) \
543 (((ccb)->ccb_h.flags & CAM_TAG_ACTION_VALID) && \
544 (ccb)->tag_action != CAM_TAG_ACTION_NONE)
545
546#define XS_TAG_TYPE(ccb) \
547 ((ccb->tag_action == MSG_SIMPLE_Q_TAG)? REQFLAG_STAG : \
548 ((ccb->tag_action == MSG_HEAD_OF_Q_TAG)? REQFLAG_HTAG : REQFLAG_OTAG))
1/* $FreeBSD$ */
2/*-
3 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 *
5 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions
6 *
7 * Copyright (c) 1997-2008 by Matthew Jacob
8 * All rights reserved.

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

541 ccb->sense_len - ccb->sense_resid, 1))
542#define XS_TAG_P(ccb) \
543 (((ccb)->ccb_h.flags & CAM_TAG_ACTION_VALID) && \
544 (ccb)->tag_action != CAM_TAG_ACTION_NONE)
545
546#define XS_TAG_TYPE(ccb) \
547 ((ccb->tag_action == MSG_SIMPLE_Q_TAG)? REQFLAG_STAG : \
548 ((ccb->tag_action == MSG_HEAD_OF_Q_TAG)? REQFLAG_HTAG : REQFLAG_OTAG))
549
550
549
550#define XS_PRIORITY(ccb) (ccb)->priority
551
551#define XS_SETERR(ccb, v) (ccb)->ccb_h.status &= ~CAM_STATUS_MASK, \
552 (ccb)->ccb_h.status |= v
553
554# define HBA_NOERROR CAM_REQ_INPROG
555# define HBA_BOTCH CAM_UNREC_HBA_ERROR
556# define HBA_CMDTIMEOUT CAM_CMD_TIMEOUT
557# define HBA_SELTIMEOUT CAM_SEL_TIMEOUT
558# define HBA_TGTBSY CAM_SCSI_STATUS_ERROR

--- 176 unchanged lines hidden ---
552#define XS_SETERR(ccb, v) (ccb)->ccb_h.status &= ~CAM_STATUS_MASK, \
553 (ccb)->ccb_h.status |= v
554
555# define HBA_NOERROR CAM_REQ_INPROG
556# define HBA_BOTCH CAM_UNREC_HBA_ERROR
557# define HBA_CMDTIMEOUT CAM_CMD_TIMEOUT
558# define HBA_SELTIMEOUT CAM_SEL_TIMEOUT
559# define HBA_TGTBSY CAM_SCSI_STATUS_ERROR

--- 176 unchanged lines hidden ---