aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ahb
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2006-11-02 00:54:38 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2006-11-02 00:54:38 +0000
commitbd3fd815a7fbc96f1506dfdcac840b94cff28d00 (patch)
tree9b84492a0966128feabcb74bbcc277bbdb6640c1 /sys/dev/ahb
parentedc9f4ae99fa00b065cb47c1d0d0737686ab3dca (diff)
Notes
Diffstat (limited to 'sys/dev/ahb')
-rw-r--r--sys/dev/ahb/ahb.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index 213fa1155eb2..738103185869 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -728,24 +728,17 @@ ahbprocesserror(struct ahb_softc *ahb, struct ecb *ecb, union ccb *ccb)
case HS_TAG_MSG_REJECTED:
{
struct ccb_trans_settings neg;
-#ifdef CAM_NEW_TRAN_CODE
struct ccb_trans_settings_scsi *scsi = &neg.proto_specific.scsi;
-#endif
xpt_print_path(ccb->ccb_h.path);
printf("refuses tagged commands. Performing "
"non-tagged I/O\n");
memset(&neg, 0, sizeof (neg));
-#ifdef CAM_NEW_TRAN_CODE
neg.protocol = PROTO_SCSI;
neg.protocol_version = SCSI_REV_2;
neg.transport = XPORT_SPI;
neg.transport_version = 2;
scsi->flags = CTS_SCSI_VALID_TQ;
-#else
- neg.flags = 0;
- neg.valid = CCB_TRANS_TQ_VALID;
-#endif
xpt_setup_ccb(&neg.ccb_h, ccb->ccb_h.path, /*priority*/1);
xpt_async(AC_TRANSFER_NEG, ccb->ccb_h.path, &neg);
ahb->tags_permitted &= ~(0x01 << ccb->ccb_h.target_id);
@@ -1142,7 +1135,6 @@ ahbaction(struct cam_sim *sim, union ccb *ccb)
{
struct ccb_trans_settings *cts = &ccb->cts;
u_int target_mask = 0x01 << ccb->ccb_h.target_id;
-#ifdef CAM_NEW_TRAN_CODE
struct ccb_trans_settings_scsi *scsi =
&cts->proto_specific.scsi;
struct ccb_trans_settings_spi *spi =
@@ -1175,29 +1167,6 @@ ahbaction(struct cam_sim *sim, union ccb *ccb)
} else {
ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
}
-#else
- if ((cts->flags & CCB_TRANS_USER_SETTINGS) != 0) {
- cts->flags = 0;
- if ((ahb->disc_permitted & target_mask) != 0)
- cts->flags |= CCB_TRANS_DISC_ENB;
- if ((ahb->tags_permitted & target_mask) != 0)
- cts->flags |= CCB_TRANS_TAG_ENB;
- cts->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
- cts->sync_period = 25; /* 10MHz */
-
- if (cts->sync_period != 0)
- cts->sync_offset = 15;
-
- cts->valid = CCB_TRANS_SYNC_RATE_VALID
- | CCB_TRANS_SYNC_OFFSET_VALID
- | CCB_TRANS_BUS_WIDTH_VALID
- | CCB_TRANS_DISC_VALID
- | CCB_TRANS_TQ_VALID;
- ccb->ccb_h.status = CAM_REQ_CMP;
- } else {
- ccb->ccb_h.status = CAM_FUNC_NOTAVAIL;
- }
-#endif
xpt_done(ccb);
break;
}
@@ -1259,12 +1228,10 @@ ahbaction(struct cam_sim *sim, union ccb *ccb)
strncpy(cpi->hba_vid, "Adaptec", HBA_IDLEN);
strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
cpi->unit_number = cam_sim_unit(sim);
-#ifdef CAM_NEW_TRAN_CODE
cpi->transport = XPORT_SPI;
cpi->transport_version = 2;
cpi->protocol = PROTO_SCSI;
cpi->protocol_version = SCSI_REV_2;
-#endif
cpi->ccb_h.status = CAM_REQ_CMP;
xpt_done(ccb);
break;