63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry/*
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * CDDL HEADER START
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry *
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * The contents of this file are subject to the terms of the
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * Common Development and Distribution License (the "License").
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * You may not use this file except in compliance with the License.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry *
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * or http://www.opensolaris.org/os/licensing.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * See the License for the specific language governing permissions
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * and limitations under the License.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry *
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * When distributing Covered Code, include this CDDL HEADER in each
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * If applicable, add the following below this CDDL HEADER, with the
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * fields enclosed by brackets "[]" replaced with your own identifying
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * information: Portions Copyright [yyyy] [name of copyright owner]
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry *
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * CDDL HEADER END
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry/*
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * Use is subject to license terms.
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#ifndef _SATA_SATL_H
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define _SATA_SATL_H
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#include <sys/scsi/impl/spc3_types.h>
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#ifdef __cplusplus
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perryextern "C" {
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#endif
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry/*
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * Definitions and declarations
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * ANSI SCSI / ATA Translation - 2 (SAT-2) specification
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry/*
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * SATL ATA Pass Through PROTOCOL field values
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_HW_RESET 0 /* ATA hardware reset */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_SRST 0x1 /* Software reset */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_NON_DATA 0x3 /* Non-data */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_PIO_DATA_IN 0x4 /* PIO Data-in */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_PIO_DATA_OUT 0x5 /* PIO Data-out */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_DMA 0x6 /* DMA */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_DMA_QUEUED 0x7 /* DMA Queued */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_DEV_DIAG 0x8 /* Device Diagnostics */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_DEV_RESET 0x9 /* Device Reset */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_UDMA_IN 0xa /* UDMA Data In */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_UDMA_OUT 0xb /* UDMA Data Out */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_FPDMA 0xc /* FPDMA */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_P_RET_RESP 0xf /* Return Response Info */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry/*
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry * SATL ATA Pass Through bit masks
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry */
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_BM_EXTEND 0x01
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_BM_CK_COND 0x20
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_BM_T_DIR 0x08
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#define SATL_APT_BM_BYTE_BLOCK 0x04
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#ifdef __cplusplus
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry}
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#endif
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry
63aa537723d4883425b44d96b6316b7ad14053fcAlan Perry#endif /* _SATA_SATL_H */