xref: /onnv-gate/usr/src/lib/fm/libdiskstatus/common/ds_scsi_uscsi.h (revision 4198:6bdfb19526db)
1*4198Seschrock /*
2*4198Seschrock  * CDDL HEADER START
3*4198Seschrock  *
4*4198Seschrock  * The contents of this file are subject to the terms of the
5*4198Seschrock  * Common Development and Distribution License (the "License").
6*4198Seschrock  * You may not use this file except in compliance with the License.
7*4198Seschrock  *
8*4198Seschrock  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4198Seschrock  * or http://www.opensolaris.org/os/licensing.
10*4198Seschrock  * See the License for the specific language governing permissions
11*4198Seschrock  * and limitations under the License.
12*4198Seschrock  *
13*4198Seschrock  * When distributing Covered Code, include this CDDL HEADER in each
14*4198Seschrock  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4198Seschrock  * If applicable, add the following below this CDDL HEADER, with the
16*4198Seschrock  * fields enclosed by brackets "[]" replaced with your own identifying
17*4198Seschrock  * information: Portions Copyright [yyyy] [name of copyright owner]
18*4198Seschrock  *
19*4198Seschrock  * CDDL HEADER END
20*4198Seschrock  */
21*4198Seschrock /*
22*4198Seschrock  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*4198Seschrock  * Use is subject to license terms.
24*4198Seschrock  */
25*4198Seschrock 
26*4198Seschrock #ifndef	_DS_SCSI_USCSI_H
27*4198Seschrock #define	_DS_SCSI_USCSI_H
28*4198Seschrock 
29*4198Seschrock #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*4198Seschrock 
31*4198Seschrock #ifdef	__cplusplus
32*4198Seschrock extern "C" {
33*4198Seschrock #endif
34*4198Seschrock 
35*4198Seschrock /*
36*4198Seschrock  * "impossible" status value
37*4198Seschrock  */
38*4198Seschrock #define	IMPOSSIBLE_SCSI_STATUS	0xff
39*4198Seschrock 
40*4198Seschrock /*
41*4198Seschrock  * Minimum length of Request Sense data that we can accept
42*4198Seschrock  */
43*4198Seschrock #define	MIN_REQUEST_SENSE_LEN	18
44*4198Seschrock 
45*4198Seschrock /*
46*4198Seschrock  * Rounded parameter, as returned in Extended Sense information
47*4198Seschrock  */
48*4198Seschrock #define	ROUNDED_PARAMETER	0x37
49*4198Seschrock 
50*4198Seschrock int uscsi_mode_sense(int, int, int, caddr_t, int, scsi_ms_header_t *,
51*4198Seschrock     void *, int *);
52*4198Seschrock int uscsi_mode_sense_10(int, int, int, caddr_t, int, scsi_ms_header_g1_t *,
53*4198Seschrock     void *, int *);
54*4198Seschrock int uscsi_mode_select(int, int, int, caddr_t, int, scsi_ms_header_t *,
55*4198Seschrock     void *, int *);
56*4198Seschrock int uscsi_mode_select_10(int, int, int, caddr_t, int, scsi_ms_header_g1_t *,
57*4198Seschrock     void *, int *);
58*4198Seschrock int uscsi_log_sense(int, int, int, caddr_t, int, void *, int *);
59*4198Seschrock int uscsi_request_sense(int, caddr_t, int, void *, int *);
60*4198Seschrock 
61*4198Seschrock #ifdef	__cplusplus
62*4198Seschrock }
63*4198Seschrock #endif
64*4198Seschrock 
65*4198Seschrock #endif	/* _DS_SCSI_USCSI_H */
66