xref: /titanic_52/usr/src/man/man9e/tran_bus_reset.9e (revision e5803b76927480e8f9b67b22201c484ccf4c2bcf)
te
Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
TRAN_BUS_RESET 9E "Mar 17, 1999"
NAME
tran_bus_reset - reset a SCSI bus
SYNOPSIS

#include <sys/scsi/scsi.h> int prefix

tran_bus_reset(dev_info_t *hba_dip, int level);
INTERFACE LEVEL

Solaris DDI

PARAMETERS
hba_dip

The dev_info_t pointer associated with the SCSI HBA.

level

The level of reset required.

DESCRIPTION

The tran_bus_reset() vector in the scsi_hba_tran(9S) structure should be initialized during the HBA driver's attach(9E). It is an HBA entry point to be called when a user initiates a bus reset through device control interfaces.

tran_bus_reset() must reset the SCSI bus without resetting targets.

level will be one of the following: RESET_BUS

Reset the SCSI bus only, not the targets.

Implementation is hardware specific. If it is not possible to reset the SCSI bus without changing the state and operating mode of the targets, the HBA driver should not initialize this vector or return failure.

RETURN VALUES

tran_bus_reset() should return: 1

on success.

0

on failure.

ATTRIBUTES

See attributes(5) for a description of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
SEE ALSO

attributes(5), tran_quiesce(9E), scsi_hba_tran(9S)