#include <sys/scsi/scsi.h>int scsi_reset(struct scsi_address *ap, int level);
Solaris DDI specific (Solaris DDI).
scsi_reset() asks the host adapter driver to reset the SCSI bus or a SCSI target as specified by level. If level equals RESET_ALL, the SCSI bus is reset. If it equals RESET_TARGET, ap is used to determine the target to be reset.
On a successful reset, the pkt_reason is set to CMD_RESET and pkt_statistics is OR'd with STAT_BUS_RESET or STAT_DEV_RESET.
scsi_reset() can be called from user or interrupt context.