Lines Matching +full:max +full:- +full:bits +full:- +full:per +full:- +full:word
1 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
6 * Copyright (c) 1994-2001 Justin T. Gibbs.
7 * Copyright (c) 2000-2001 Adaptec Inc.
21 * 3. Neither the names of the above-listed copyright holders nor the names
57 #ifndef MAX
58 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
79 (((scsiid) & ((((ahc)->features & AHC_TWIN) != 0) ? TWIN_TID : TID)) \
84 ((((ahc)->features & AHC_TWIN) != 0) \
88 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
90 SCSIID_OUR_ID((scb)->hscb->scsiid)
92 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
94 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
96 ((scb)->hscb->lun & LID)
104 && (((scb)->flags & SCB_SILENT) != 0))
107 (((scb)->flags & SCB_SILENT) != 0)
112 (tcl & (AHC_NUM_LUNS - 1))
136 * The maximum transfer per S/G segment.
148 * The maximum number of concurrent transactions supported per driver instance.
149 * Sequencer Control Blocks (SCBs) store per-transaction information. Although
227 AHC_SG_PRELOAD = 0x00080, /* Can perform auto-SG preload */
229 AHC_MULTI_TID = 0x00200, /* Has bitmask of TIDs for select-in */
233 AHC_MULTI_FUNC = 0x02000, /* Multi-Function Twin Channel Device */
239 AHC_REMOVABLE = 0x80000, /* Hot-Swap supported */
255 * the initiator role to allow multi-scsi-id target mode
281 * work during scsi->HostBus transfers.
300 * PCI 2.1 Retry failure on non-empty data fifo.
380 * The driver keeps up to MAX_SCB scb structures per card in memory. The SCB
399 * complete abnormally (non-zero status byte).
415 uint8_t data_phase; /* Data-In or Data-Out */
434 * A word about residuals.
496 * 13->32. We store them here
515 * the length to store additional address bits and a flag to indicate
617 struct scsi_sense_data *sense; /* Per SCB sense data */
643 * Connection descriptor for select-in requests in target mode.
655 * will set cmd_valid to all bits set.
657 * the bits are cleared. This allows us
680 * Per enabled lun target mode state.
723 * Per-initiator current, goal and user transfer negotiation information. */
732 * Per enabled target ID state.
734 * for each initiator<->target mapping. For the initiator role we pretend
743 * Per initiator state bitmasks.
780 * Phase -> name and message out response
793 * Per SCSI ID Configuration Flags
795 uint16_t device_flags[16]; /* words 0-15 */
801 #define CFSYNCSINGLE 0x0080 /* Single-Transition signalling */
806 #define CFWBCACHEENB 0x4000 /* Enable W-Behind Cache on disks */
807 #define CFWBCACHENOP 0xc000 /* Don't touch W-Behind Cache */
810 * BIOS Control Bits
812 uint16_t bios_control; /* word 16 */
820 #define CFCTRL_A 0x0020 /* BIOS displays Ctrl-A message */
828 #define CFBOOTCD 0x0800 /* Support Bootable CD-ROM */
832 * Host Adapter Control Bits
834 uint16_t adapter_control; /* word 17 */
856 uint16_t brtime_id; /* word 18 */
864 uint16_t max_targets; /* word 19 */
868 uint16_t res_1[10]; /* words 20-29 */
872 uint16_t checksum; /* word 31 */
928 #define AIC_SCB_DATA(softc) ((softc)->scb_data)
957 * Per-target queue of untagged-transactions. The
961 * transaction per target.
1002 * Target mode related state kept on a per enabled lun basis.
1093 * work-around a DMA bug for chips <= aic7880
1109 * We auto-disable parity error checking after seeing
1118 /* Per-Unit descriptive information */
1300 AHC_NEG_IF_NON_ASYNC, /* Renegotiate so long as goal is non-async. */