Lines Matching +full:edma +full:- +full:tx
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
42 #define IC_HC0 0x000001ff /* bits 0-8 = HC0 */
44 #define IC_HC1 (IC_HC0 << IC_HC_SHIFT) /* 9-17 = HC1 */
58 #define IC_MAIN_RSVD (0xfe000000) /* bits 31-25 */
59 #define IC_MAIN_RSVD_5 (0xfff10000) /* bits 31-19 */
60 #define IC_MAIN_RSVD_SOC (0xfffffec0) /* bits 31-9, 7-6 */
65 #define CHIP_SOC_HC0_MASK(num) (0xff >> ((4 - (num)) * 2))
87 #define HC_RQOP 0x4 /* Request Queue Out-Pointer */
88 #define HC_RQIP 0x8 /* Response Queue In-Pointer */
123 #define EDMA_IE_EDEVERR (1 << 2) /* EDMA Device Error */
124 #define EDMA_IE_EDEVDIS (1 << 3) /* EDMA Dev Disconn */
125 #define EDMA_IE_EDEVCON (1 << 4) /* EDMA Dev Conn */
127 #define EDMA_IE_ESELFDIS (1 << 7) /* EDMA Self Disable */
129 #define EDMA_IE_EIORDYERR (1 << 12) /* EDMA IORdy Error */
139 #define EDMA_IE_LINKTXERR_FISTXABORTED (1 << 4) /* FIS Tx is aborted */
142 #define EDMA_IE_LINKCTLTXERR(x) ((x) << 21) /* Link Ctrl Tx Error */
143 #define EDMA_IE_LINKDATATXERR(x) ((x) << 26) /* Link Data Tx Error */
147 /* Non-fatal Errors */
149 #define EDMA_REQQIP 0x14 /* Request Queue In-Pointer */
150 #define EDMA_REQQOP 0x18 /* Request Queue Out-Pointer */
156 #define EDMA_RESQIP 0x20 /* Response Queue In-Pointer */
157 #define EDMA_RESQOP 0x24 /* Response Queue Out-Pointer */
163 #define EDMA_CMD_EENEDMA (1 << 0) /* Enable EDMA */
164 #define EDMA_CMD_EDSEDMA (1 << 1) /* Disable EDMA */
166 #define EDMA_CMD_EEDMAFRZ (1 << 4) /* EDMA Freeze */
254 /* Serial-ATA Registers */
321 #define SATA_SATAICFG 0x050 /* Serial-ATA Interface Configuration */
346 #define SATA_SATAICTL 0x344 /* Serial-ATA Interface Control */
354 #define SATA_SATAITC 0x348 /* Serial-ATA Interface Test Control */
355 #define SATA_SATAIS 0x34c /* Serial-ATA Interface Status */
395 /* EDMA Command Request Block (CRQB) Data */
424 /* EDMA Phisical Region Descriptors (ePRD) Table Data Structure */
448 /* EDMA Command Response Block (CRPB) Data */
554 enum mvs_edma_mode curr_mode; /* Current EDMA mode */
555 int fbs_enabled; /* FIS-based switching enabled */
573 int resetting; /* Hard-reset in progress. */
574 int resetpolldiv; /* Hard-reset poll divider. */
583 struct callout reset_timer; /* Hard-reset timeout */
585 struct mvs_device user[16]; /* User-specified settings */