/* Reset a SCSI target (all LUNs of this target).  */
int sym_reset_scsi_target(struct sym_hcb *np, int target)
/* Reset a SCSI target (all LUNs of this target).  */
int sym_reset_scsi_target(struct sym_hcb *np, int target)
{
	struct sym_tcb *tp;
	if (target == np->myaddr || (u_int)target >= SYM_CONF_MAX_TARGET)
		return -1;
	tp = &np->target[target];
	tp->to_reset = 1;
	np->istat_sem = SEM;
	OUTB(np, nc_istat, SIGP|SEM);
	return 0;
}