xref: /onnv-gate/usr/src/uts/common/sys/sata/sata_satl.h (revision 11222:5e56af24ae09)
1*11222SAlan.Perry@Sun.COM /*
2*11222SAlan.Perry@Sun.COM  * CDDL HEADER START
3*11222SAlan.Perry@Sun.COM  *
4*11222SAlan.Perry@Sun.COM  * The contents of this file are subject to the terms of the
5*11222SAlan.Perry@Sun.COM  * Common Development and Distribution License (the "License").
6*11222SAlan.Perry@Sun.COM  * You may not use this file except in compliance with the License.
7*11222SAlan.Perry@Sun.COM  *
8*11222SAlan.Perry@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*11222SAlan.Perry@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*11222SAlan.Perry@Sun.COM  * See the License for the specific language governing permissions
11*11222SAlan.Perry@Sun.COM  * and limitations under the License.
12*11222SAlan.Perry@Sun.COM  *
13*11222SAlan.Perry@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*11222SAlan.Perry@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*11222SAlan.Perry@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*11222SAlan.Perry@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*11222SAlan.Perry@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*11222SAlan.Perry@Sun.COM  *
19*11222SAlan.Perry@Sun.COM  * CDDL HEADER END
20*11222SAlan.Perry@Sun.COM  */
21*11222SAlan.Perry@Sun.COM 
22*11222SAlan.Perry@Sun.COM /*
23*11222SAlan.Perry@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*11222SAlan.Perry@Sun.COM  * Use is subject to license terms.
25*11222SAlan.Perry@Sun.COM  */
26*11222SAlan.Perry@Sun.COM 
27*11222SAlan.Perry@Sun.COM #ifndef	_SATA_SATL_H
28*11222SAlan.Perry@Sun.COM #define	_SATA_SATL_H
29*11222SAlan.Perry@Sun.COM 
30*11222SAlan.Perry@Sun.COM #include <sys/scsi/impl/spc3_types.h>
31*11222SAlan.Perry@Sun.COM 
32*11222SAlan.Perry@Sun.COM #ifdef __cplusplus
33*11222SAlan.Perry@Sun.COM extern "C" {
34*11222SAlan.Perry@Sun.COM #endif
35*11222SAlan.Perry@Sun.COM 
36*11222SAlan.Perry@Sun.COM /*
37*11222SAlan.Perry@Sun.COM  * Definitions and declarations
38*11222SAlan.Perry@Sun.COM  * ANSI SCSI / ATA Translation - 2 (SAT-2) specification
39*11222SAlan.Perry@Sun.COM  */
40*11222SAlan.Perry@Sun.COM 
41*11222SAlan.Perry@Sun.COM /*
42*11222SAlan.Perry@Sun.COM  * SATL ATA Pass Through PROTOCOL field values
43*11222SAlan.Perry@Sun.COM  */
44*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_HW_RESET		0	/* ATA hardware reset */
45*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_SRST			0x1	/* Software reset */
46*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_NON_DATA		0x3	/* Non-data */
47*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_PIO_DATA_IN		0x4	/* PIO Data-in */
48*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_PIO_DATA_OUT		0x5	/* PIO Data-out */
49*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_DMA			0x6	/* DMA */
50*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_DMA_QUEUED		0x7	/* DMA Queued */
51*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_DEV_DIAG		0x8	/* Device Diagnostics */
52*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_DEV_RESET		0x9	/* Device Reset */
53*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_UDMA_IN		0xa	/* UDMA Data In */
54*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_UDMA_OUT		0xb	/* UDMA Data Out */
55*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_FPDMA		0xc	/* FPDMA */
56*11222SAlan.Perry@Sun.COM #define	SATL_APT_P_RET_RESP		0xf	/* Return Response Info */
57*11222SAlan.Perry@Sun.COM 
58*11222SAlan.Perry@Sun.COM /*
59*11222SAlan.Perry@Sun.COM  * SATL ATA Pass Through bit masks
60*11222SAlan.Perry@Sun.COM  */
61*11222SAlan.Perry@Sun.COM #define	SATL_APT_BM_EXTEND		0x01
62*11222SAlan.Perry@Sun.COM #define	SATL_APT_BM_CK_COND		0x20
63*11222SAlan.Perry@Sun.COM #define	SATL_APT_BM_T_DIR		0x08
64*11222SAlan.Perry@Sun.COM #define	SATL_APT_BM_BYTE_BLOCK		0x04
65*11222SAlan.Perry@Sun.COM 
66*11222SAlan.Perry@Sun.COM #ifdef __cplusplus
67*11222SAlan.Perry@Sun.COM }
68*11222SAlan.Perry@Sun.COM #endif
69*11222SAlan.Perry@Sun.COM 
70*11222SAlan.Perry@Sun.COM #endif	/* _SATA_SATL_H */
71