2 * Copyright (C) 2008 Freescale Semiconductor, Inc.
3 * Dave Liu <daveliu@freescale.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * Register - Host to Device FIS
27 typedef struct sata_fis_h2d {
45 } __attribute__ ((packed)) sata_fis_h2d_t;
48 * Register - Host to Device FIS for read/write FPDMA queued
50 typedef struct sata_fis_h2d_ncq {
68 } __attribute__ ((packed)) sata_fis_h2d_ncq_t;
71 * Register - Device to Host FIS
73 typedef struct sata_fis_d2h {
90 } __attribute__ ((packed)) sata_fis_d2h_t;
93 * DMA Setup - Device to Host or Host to Device FIS
95 typedef struct sata_fis_dma_setup {
97 u8 pm_port_dir_int_act;
100 u32 dma_buffer_id_low;
101 u32 dma_buffer_id_high;
103 u32 dma_buffer_offset;
104 u32 dma_transfer_count;
106 } __attribute__ ((packed)) sata_fis_dma_setup_t;
109 * PIO Setup - Device to Host FIS
111 typedef struct sata_fis_pio_setup {
130 } __attribute__ ((packed)) sata_fis_pio_setup_t;
133 * Data - Host to Device or Device to Host FIS
135 typedef struct sata_fis_data {
141 } __attribute__ ((packed)) sata_fis_data_t;
143 /* fis_type - SATA FIS type
146 SATA_FIS_TYPE_REGISTER_H2D = 0x27,
147 SATA_FIS_TYPE_REGISTER_D2H = 0x34,
148 SATA_FIS_TYPE_DMA_ACT_D2H = 0x39,
149 SATA_FIS_TYPE_DMA_SETUP_BI = 0x41,
150 SATA_FIS_TYPE_DATA_BI = 0x46,
151 SATA_FIS_TYPE_BIST_ACT_BI = 0x58,
152 SATA_FIS_TYPE_PIO_SETUP_D2H = 0x5F,
153 SATA_FIS_TYPE_SET_DEVICE_BITS_D2H = 0xA1,
156 #endif /* __FIS_H__ */