Remove dead mentions of CAM target mode APIs from drivers.
This makes grepping kernel for target mode implementation much easier.
This commit is contained in:
parent
5dff7be120
commit
950c5aca4a
@ -479,15 +479,6 @@ scsi_low_scsi_action_cam(sim, ccb)
|
||||
#endif /* SCSI_LOW_DEBUG */
|
||||
break;
|
||||
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(ccb);
|
||||
break;
|
||||
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
#ifdef SCSI_LOW_DIAGNOSTIC
|
||||
if (target == CAM_TARGET_WILDCARD || lun == CAM_LUN_WILDCARD)
|
||||
|
@ -232,10 +232,6 @@ adv_action(struct cam_sim *sim, union ccb *ccb)
|
||||
break;
|
||||
}
|
||||
case XPT_RESET_DEV: /* Bus Device Reset the specified SCSI device */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -831,10 +831,6 @@ ahaaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -2578,10 +2578,6 @@ ahciaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
ahci_begin_transaction(ch, ccb);
|
||||
return;
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -2883,12 +2883,6 @@ static void arcmsr_action(struct cam_sim *psim, union ccb *pccb)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XPT_TARGET_IO: {
|
||||
/* target mode not yet support vendor specific commands. */
|
||||
pccb->ccb_h.status |= CAM_REQ_CMP;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
}
|
||||
case XPT_PATH_INQ: {
|
||||
struct ccb_pathinq *cpi = &pccb->cpi;
|
||||
|
||||
@ -2938,7 +2932,6 @@ static void arcmsr_action(struct cam_sim *psim, union ccb *pccb)
|
||||
pabort_ccb = pccb->cab.abort_ccb;
|
||||
switch (pabort_ccb->ccb_h.func_code) {
|
||||
case XPT_ACCEPT_TARGET_IO:
|
||||
case XPT_IMMED_NOTIFY:
|
||||
case XPT_CONT_TARGET_IO:
|
||||
if(arcmsr_seek_cmd2abort(pabort_ccb)==TRUE) {
|
||||
pabort_ccb->ccb_h.status |= CAM_REQ_ABORTED;
|
||||
|
@ -1013,10 +1013,6 @@ ataaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
ata_cam_begin_transaction(dev, ccb);
|
||||
return;
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -1217,10 +1217,6 @@ btaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -2289,10 +2289,6 @@ hpt_action(struct cam_sim *sim, union ccb *ccb)
|
||||
break;
|
||||
|
||||
case XPT_RESET_DEV: /* Bus Device Reset the specified SCSI device */
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
case XPT_TERM_IO: /* Terminate the I/O process */
|
||||
/* XXX Implement */
|
||||
|
@ -2288,10 +2288,6 @@ mvsaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
mvs_begin_transaction(dev, ccb);
|
||||
return;
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -4152,10 +4152,6 @@ ncr_action (struct cam_sim *sim, union ccb *ccb)
|
||||
break;
|
||||
}
|
||||
case XPT_RESET_DEV: /* Bus Device Reset the specified SCSI device */
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -143,10 +143,6 @@ nvme_sim_action(struct cam_sim *sim, union ccb *ccb)
|
||||
*/
|
||||
/*FALLTHROUGH*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
/*
|
||||
* Only target mode generates these, and only for SCSI. They are
|
||||
* all invalid/unsupported for NVMe.
|
||||
|
@ -1835,10 +1835,6 @@ siisaction(struct cam_sim *sim, union ccb *ccb)
|
||||
}
|
||||
siis_begin_transaction(dev, ccb);
|
||||
return;
|
||||
case XPT_EN_LUN: /* Enable LUN as a target */
|
||||
case XPT_TARGET_IO: /* Execute target I/O request */
|
||||
case XPT_ACCEPT_TARGET_IO: /* Accept Host Target Mode CDB */
|
||||
case XPT_CONT_TARGET_IO: /* Continue Host Target I/O Connection*/
|
||||
case XPT_ABORT: /* Abort the specified CCB */
|
||||
/* XXX Implement */
|
||||
ccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
|
@ -8090,11 +8090,6 @@ static void sym_action2(struct cam_sim *sim, union ccb *ccb)
|
||||
sym_init (np, 1);
|
||||
sym_xpt_done2(np, ccb, CAM_REQ_CMP);
|
||||
break;
|
||||
case XPT_ACCEPT_TARGET_IO:
|
||||
case XPT_CONT_TARGET_IO:
|
||||
case XPT_EN_LUN:
|
||||
case XPT_NOTIFY_ACK:
|
||||
case XPT_IMMED_NOTIFY:
|
||||
case XPT_TERM_IO:
|
||||
default:
|
||||
sym_xpt_done2(np, ccb, CAM_REQ_INVALID);
|
||||
|
@ -543,11 +543,6 @@ trm_action(struct cam_sim *psim, union ccb *pccb)
|
||||
target_lun = pccb->ccb_h.target_lun;
|
||||
|
||||
switch (pccb->ccb_h.func_code) {
|
||||
case XPT_NOOP:
|
||||
TRM_DPRINTF(" XPT_NOOP \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Execute the requested I/O operation
|
||||
*/
|
||||
@ -623,16 +618,6 @@ trm_action(struct cam_sim *psim, union ccb *pccb)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case XPT_GDEV_TYPE:
|
||||
TRM_DPRINTF(" XPT_GDEV_TYPE \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
case XPT_GDEVLIST:
|
||||
TRM_DPRINTF(" XPT_GDEVLIST \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Path routing inquiry
|
||||
* Path Inquiry CCB
|
||||
@ -661,76 +646,33 @@ trm_action(struct cam_sim *psim, union ccb *pccb)
|
||||
cpi->protocol_version = SCSI_REV_2;
|
||||
cpi->ccb_h.status = CAM_REQ_CMP;
|
||||
xpt_done(pccb);
|
||||
}
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* Release a frozen SIM queue
|
||||
* Release SIM Queue
|
||||
* XPT_ABORT = 0x10, Abort the specified CCB
|
||||
* Abort XPT request CCB
|
||||
*/
|
||||
case XPT_REL_SIMQ:
|
||||
TRM_DPRINTF(" XPT_REL_SIMQ \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Set Asynchronous Callback Parameters
|
||||
* Set Asynchronous Callback CCB
|
||||
*/
|
||||
case XPT_SASYNC_CB:
|
||||
TRM_DPRINTF(" XPT_SASYNC_CB \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Set device type information
|
||||
* Set Device Type CCB
|
||||
*/
|
||||
case XPT_SDEV_TYPE:
|
||||
TRM_DPRINTF(" XPT_SDEV_TYPE \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Get EDT entries matching the given pattern
|
||||
*/
|
||||
case XPT_DEV_MATCH:
|
||||
TRM_DPRINTF(" XPT_DEV_MATCH \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Turn on debugging for a bus, target or lun
|
||||
*/
|
||||
case XPT_DEBUG:
|
||||
TRM_DPRINTF(" XPT_DEBUG \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* XPT_ABORT = 0x10, Abort the specified CCB
|
||||
* Abort XPT request CCB
|
||||
*/
|
||||
case XPT_ABORT:
|
||||
TRM_DPRINTF(" XPT_ABORT \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Reset the specified SCSI bus
|
||||
* Reset SCSI Bus CCB
|
||||
*/
|
||||
case XPT_RESET_BUS: {
|
||||
* Reset the specified SCSI bus
|
||||
* Reset SCSI Bus CCB
|
||||
*/
|
||||
case XPT_RESET_BUS: {
|
||||
int i;
|
||||
|
||||
TRM_DPRINTF(" XPT_RESET_BUS \n");
|
||||
trm_reset(pACB);
|
||||
trm_reset(pACB);
|
||||
pACB->ACBFlag=0;
|
||||
for (i=0; i<500; i++)
|
||||
DELAY(1000);
|
||||
pccb->ccb_h.status = CAM_REQ_CMP;
|
||||
xpt_done(pccb);
|
||||
}
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* Bus Device Reset the specified SCSI device
|
||||
* Reset SCSI Device CCB
|
||||
@ -929,92 +871,6 @@ trm_action(struct cam_sim *psim, union ccb *pccb)
|
||||
cam_calc_geometry(&pccb->ccg, /*extended*/1);
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
case XPT_ENG_INQ:
|
||||
TRM_DPRINTF(" XPT_ENG_INQ \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* HBA execute engine request
|
||||
* This structure must match SCSIIO size
|
||||
*/
|
||||
case XPT_ENG_EXEC:
|
||||
TRM_DPRINTF(" XPT_ENG_EXEC \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* XPT_EN_LUN = 0x30, Enable LUN as a target
|
||||
* Target mode structures.
|
||||
*/
|
||||
case XPT_EN_LUN:
|
||||
/*
|
||||
* Don't (yet?) support vendor
|
||||
* specific commands.
|
||||
*/
|
||||
TRM_DPRINTF(" XPT_EN_LUN \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Execute target I/O request
|
||||
*/
|
||||
case XPT_TARGET_IO:
|
||||
/*
|
||||
* Don't (yet?) support vendor
|
||||
* specific commands.
|
||||
*/
|
||||
TRM_DPRINTF(" XPT_TARGET_IO \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Accept Host Target Mode CDB
|
||||
*/
|
||||
case XPT_ACCEPT_TARGET_IO:
|
||||
/*
|
||||
* Don't (yet?) support vendor
|
||||
* specific commands.
|
||||
*/
|
||||
TRM_DPRINTF(" XPT_ACCEPT_TARGET_IO \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Continue Host Target I/O Connection
|
||||
*/
|
||||
case XPT_CONT_TARGET_IO:
|
||||
/*
|
||||
* Don't (yet?) support vendor
|
||||
* specific commands.
|
||||
*/
|
||||
TRM_DPRINTF(" XPT_CONT_TARGET_IO \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Notify Host Target driver of event
|
||||
*/
|
||||
case XPT_IMMED_NOTIFY:
|
||||
TRM_DPRINTF(" XPT_IMMED_NOTIFY \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* Acknowledgement of event
|
||||
*/
|
||||
case XPT_NOTIFY_ACK:
|
||||
TRM_DPRINTF(" XPT_NOTIFY_ACK \n");
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
/*
|
||||
* XPT_VUNIQUE = 0x80
|
||||
*/
|
||||
case XPT_VUNIQUE:
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
break;
|
||||
default:
|
||||
pccb->ccb_h.status = CAM_REQ_INVALID;
|
||||
xpt_done(pccb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user