1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2008 Freescale Semiconductor, Inc.
4 * Dave Liu <daveliu@freescale.com>
10 * Register - Host to Device FIS
12 typedef struct sata_fis_h2d {
30 } __attribute__ ((packed)) sata_fis_h2d_t;
33 * Register - Host to Device FIS for read/write FPDMA queued
35 typedef struct sata_fis_h2d_ncq {
53 } __attribute__ ((packed)) sata_fis_h2d_ncq_t;
56 * Register - Device to Host FIS
58 typedef struct sata_fis_d2h {
75 } __attribute__ ((packed)) sata_fis_d2h_t;
78 * DMA Setup - Device to Host or Host to Device FIS
80 typedef struct sata_fis_dma_setup {
82 u8 pm_port_dir_int_act;
85 u32 dma_buffer_id_low;
86 u32 dma_buffer_id_high;
88 u32 dma_buffer_offset;
89 u32 dma_transfer_count;
91 } __attribute__ ((packed)) sata_fis_dma_setup_t;
94 * PIO Setup - Device to Host FIS
96 typedef struct sata_fis_pio_setup {
115 } __attribute__ ((packed)) sata_fis_pio_setup_t;
118 * Data - Host to Device or Device to Host FIS
120 typedef struct sata_fis_data {
126 } __attribute__ ((packed)) sata_fis_data_t;
128 /* fis_type - SATA FIS type
131 SATA_FIS_TYPE_REGISTER_H2D = 0x27,
132 SATA_FIS_TYPE_REGISTER_D2H = 0x34,
133 SATA_FIS_TYPE_DMA_ACT_D2H = 0x39,
134 SATA_FIS_TYPE_DMA_SETUP_BI = 0x41,
135 SATA_FIS_TYPE_DATA_BI = 0x46,
136 SATA_FIS_TYPE_BIST_ACT_BI = 0x58,
137 SATA_FIS_TYPE_PIO_SETUP_D2H = 0x5F,
138 SATA_FIS_TYPE_SET_DEVICE_BITS_D2H = 0xA1,
141 #endif /* __FIS_H__ */