2 * Copyright (C) 2008 Freescale Semiconductor, Inc.
3 * Dave Liu <daveliu@freescale.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 * Register - Host to Device FIS
13 typedef struct sata_fis_h2d {
31 } __attribute__ ((packed)) sata_fis_h2d_t;
34 * Register - Host to Device FIS for read/write FPDMA queued
36 typedef struct sata_fis_h2d_ncq {
54 } __attribute__ ((packed)) sata_fis_h2d_ncq_t;
57 * Register - Device to Host FIS
59 typedef struct sata_fis_d2h {
76 } __attribute__ ((packed)) sata_fis_d2h_t;
79 * DMA Setup - Device to Host or Host to Device FIS
81 typedef struct sata_fis_dma_setup {
83 u8 pm_port_dir_int_act;
86 u32 dma_buffer_id_low;
87 u32 dma_buffer_id_high;
89 u32 dma_buffer_offset;
90 u32 dma_transfer_count;
92 } __attribute__ ((packed)) sata_fis_dma_setup_t;
95 * PIO Setup - Device to Host FIS
97 typedef struct sata_fis_pio_setup {
116 } __attribute__ ((packed)) sata_fis_pio_setup_t;
119 * Data - Host to Device or Device to Host FIS
121 typedef struct sata_fis_data {
127 } __attribute__ ((packed)) sata_fis_data_t;
129 /* fis_type - SATA FIS type
132 SATA_FIS_TYPE_REGISTER_H2D = 0x27,
133 SATA_FIS_TYPE_REGISTER_D2H = 0x34,
134 SATA_FIS_TYPE_DMA_ACT_D2H = 0x39,
135 SATA_FIS_TYPE_DMA_SETUP_BI = 0x41,
136 SATA_FIS_TYPE_DATA_BI = 0x46,
137 SATA_FIS_TYPE_BIST_ACT_BI = 0x58,
138 SATA_FIS_TYPE_PIO_SETUP_D2H = 0x5F,
139 SATA_FIS_TYPE_SET_DEVICE_BITS_D2H = 0xA1,
142 #endif /* __FIS_H__ */