/* Set SCBPTR to the SCB that contains the busy table entry for TCL. Return the offset into the SCB that contains the entry for TCL. saved_scbid is dereferenced and set to the scbid that should be restored once manipualtion of the TCL entry is complete.  */
static u_int ahd_index_busy_tcl(struct ahd_softc *ahd, u_int *saved_scbid, u_int tcl)
/* Set SCBPTR to the SCB that contains the busy table entry for TCL. Return the offset into the SCB that contains the entry for TCL. saved_scbid is dereferenced and set to the scbid that should be restored once manipualtion of the TCL entry is complete.  */
static u_int ahd_index_busy_tcl(struct ahd_softc *ahd, u_int *saved_scbid, u_int tcl)
{
	AHD_ASSERT_MODES(ahd, AHD_MODE_SCSI_MSK, AHD_MODE_SCSI_MSK);
	*saved_scbid = ahd_get_scbptr(ahd);
	ahd_set_scbptr(ahd, TCL_LUN(tcl)
		     | ((TCL_TARGET_OFFSET(tcl) & 0xC) << 4));
	return (((TCL_TARGET_OFFSET(tcl) & 0x3) << 1) + SCB_DISCONNECTED_LISTS);
}