scsi_ctl.h revision f3f5a4dd0d8a3e3659add4eeca8b25772c3b35a2
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SCSI_SCSI_CTL_H
#define _SYS_SCSI_SCSI_CTL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* SCSI Control Information
*
* Defines for stating level of reset.
* RESET_ALL, RESET_TARGET, and RESET_LUN defined for tran_reset (invoked
* RESET_BUS defined for tran_bus_reset (invoked by ioctl)
*/
#define RESET_ALL 0 /* reset SCSI bus, host adapter, everything */
/*
* Defines for scsi_reset_notify flag, to register or cancel
* the notification of external and internal SCSI bus resets.
*/
/*
* Define for scsi_get_bus_addr/scsi_get_name first argument.
*/
/* return initiator-id */
/*
* Define for scsi_get_name string length.
* This is needed because MAXNAMELEN is not part of DDI.
*/
#define SCSI_MAXNAMELEN MAXNAMELEN
/*
* Property for customizing hotplug procedure
*/
#define SCSI_NO_QUIESCE "scsi-no-quiesce"
#ifdef _KERNEL
/*
* Kernel function declarations
*/
/*
* Capabilities functions
*/
#ifdef __STDC__
int whom);
#else /* __STDC__ */
extern int scsi_ifgetcap(), scsi_ifsetcap();
#endif /* __STDC__ */
/*
* Abort and Reset functions
*/
#ifdef __STDC__
#else /* __STDC__ */
extern int scsi_abort(), scsi_reset();
extern int scsi_reset_notify();
extern int scsi_clear_task_set();
extern int scsi_terminate_task();
#endif /* __STDC__ */
/*
* Other functions
*/
#ifdef __STDC__
#else /* __STDC__ */
extern int scsi_clear_aca();
extern int scsi_get_bus_addr();
extern int scsi_get_name();
#endif /* __STDC__ */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_SCSI_CTL_H */