63#ifndef LIBBSP_SHARED_FSL_REGS_EDMA_H
64#define LIBBSP_SHARED_FSL_REGS_EDMA_H
74#if (defined(MPC55XX_CHIP_FAMILY) && \
75 (MPC55XX_CHIP_FAMILY == 566 || MPC55XX_CHIP_FAMILY == 567))
76 #define EDMA_HAS_CR_EBW 1
77 #define EDMA_HAS_CR_CX_ECX 1
78 #define EDMA_HAS_CR_EMLM_CLM_HALT_HOE 1
79 #define EDMA_HAS_ESR_ECX 1
80 #define EDMA_HAS_HRS 1
81 #define EDMA_HAS_CPR_DPA 1
84#if defined(LIBBSP_ARM_IMXRT_BSP_H)
85 #define EDMA_HAS_CR_CX_ECX 1
86 #define EDMA_HAS_CR_EMLM_CLM_HALT_HOE 1
87 #define EDMA_HAS_CR_ACTIVE 1
88 #define EDMA_HAS_CR_VERSION 1
89 #define EDMA_HAS_ESR_ECX 1
90 #define EDMA_HAS_HRS 1
91 #define EDMA_HAS_EARS 1
92 #define EDMA_HAS_CPR_DPA 1
98 #define EDMA_CR_EBW (1 << 0)
100#define EDMA_CR_EDBG (1 << 1)
101#define EDMA_CR_ERCA (1 << 2)
102#define EDMA_CR_ERGA (1 << 3)
103#ifdef EDMA_HAS_CR_EMLM_CLM_HALT_HOE
104 #define EDMA_CR_HOE (1 << 4)
105 #define EDMA_CR_HALT (1 << 5)
106 #define EDMA_CR_CLM (1 << 6)
107 #define EDMA_CR_EMLM (1 << 7)
109#define EDMA_CR_GRPxPRI_SHIFT(x) (8 + (x) * 2)
110#define EDMA_CR_GRPxPRI_MASK(x) (0x3 << EDMA_CR_GRPxPRI_SHIFT(x))
111#define EDMA_CR_GRPxPRI(x,val) (((val) << EDMA_CR_GRPxPRI_SHIFT(x)) & EDMA_CR_GRPxPRI_MASK(x))
112#define EDMA_CR_GRPxPRI_GET(x,reg) (((reg) & EDMA_CR_GRPxPRI_MASK(x)) >> EDMA_CR_GRPxPRI_SHIFT(x))
113#ifdef EDMA_HAS_CR_CX_ECX
114 #define EDMA_CR_ECX (1 << 16)
115 #define EDMA_CR_CX (1 << 17)
117#ifdef EDMA_HAS_CR_VERSION
118 #define EDMA_CR_VERSION_SHIFT (24)
119 #define EDMA_CR_VERSION_MASK (0x7F << EDMA_CR_VERSION_SHIFT)
120 #define EDMA_CR_VERSION(val) (((val) << EDMA_CR_VERSION_SHIFT) & EDMA_CR_VERSION_MASK)
121 #define EDMA_CR_VERSION_GET(reg) (((reg) & EDMA_CR_VERSION_MASK) >> EDMA_CR_VERSION_SHIFT)
123#ifdef EDMA_HAS_CR_ACTIVE
124 #define EDMA_CR_ACTIVE (1 << 31)
128#define EDMA_ESR_DBE (1 << 0)
129#define EDMA_ESR_SBE (1 << 1)
130#define EDMA_ESR_SGE (1 << 2)
131#define EDMA_ESR_NCE (1 << 3)
132#define EDMA_ESR_DOE (1 << 4)
133#define EDMA_ESR_DAE (1 << 5)
134#define EDMA_ESR_SOE (1 << 6)
135#define EDMA_ESR_SAE (1 << 7)
136#define EDMA_ESR_ERRCHN_SHIFT (8)
137#define EDMA_ESR_ERRCHN_MASK (0x3F << EDMA_ESR_ERRCHN_SHIFT)
138#define EDMA_ESR_ERRCHN(val) (((val) << EDMA_ESR_ERRCHN_SHIFT) & EDMA_ESR_ERRCHN_MASK)
139#define EDMA_ESR_ERRCHN_GET(reg) (((reg) & EDMA_ESR_ERRCHN_MASK) >> EDMA_ESR_ERRCHN_SHIFT)
140#define EDMA_ESR_CPE (1 << 14)
141#define EDMA_ESR_GPE (1 << 15)
142#ifdef EDMA_HAS_ESR_ECX
143 #define EDMA_ESR_ECX (1 << 16)
145#define EDMA_ESR_VLD (1 << 31)
148#define EDMA_ERRQH_ERRQ(x) (1 << ((x) - 32))
151#define EDMA_ERRQL_ERRQ(x) (1 << (x))
154#define EDMA_EEIH_EEI(x) (1 << ((x) - 32))
157#define EDMA_EEIL_EEI(x) (1 << (x))
159#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
164#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
170#define EDMA_SERQR_NOP (1 << 7)
171#define EDMA_SERQR_SAER (1 << 6)
172#define EDMA_SERQR_SERQ_SHIFT (0)
173#define EDMA_SERQR_SERQ_MASK (0x1F << EDMA_CIRQR_SERQ_SHIFT)
174#define EDMA_SERQR_SERQ(val) (((val) << EDMA_CIRQR_SERQ_SHIFT) & EDMA_CIRQR_SERQ_MASK)
175#define EDMA_SERQR_SERQ_GET(reg) (((reg) & EDMA_CIRQR_SERQ_MASK) >> EDMA_CIRQR_SERQ_SHIFT)
176#define EDMA_CERQR_NOP (1 << 7)
177#define EDMA_CERQR_CAER (1 << 6)
178#define EDMA_CERQR_CERQ_SHIFT (0)
179#define EDMA_CERQR_CERQ_MASK (0x1F << EDMA_CIRQR_CERQ_SHIFT)
180#define EDMA_CERQR_CERQ(val) (((val) << EDMA_CIRQR_CERQ_SHIFT) & EDMA_CIRQR_CERQ_MASK)
181#define EDMA_CERQR_CERQ_GET(reg) (((reg) & EDMA_CIRQR_CERQ_MASK) >> EDMA_CIRQR_CERQ_SHIFT)
182#define EDMA_SEEIR_NOP (1 << 7)
183#define EDMA_SEEIR_SAEE (1 << 6)
184#define EDMA_SEEIR_SEEI_SHIFT (0)
185#define EDMA_SEEIR_SEEI_MASK (0x1F << EDMA_CIRQR_SEEI_SHIFT)
186#define EDMA_SEEIR_SEEI(val) (((val) << EDMA_CIRQR_SEEI_SHIFT) & EDMA_CIRQR_SEEI_MASK)
187#define EDMA_SEEIR_SEEI_GET(reg) (((reg) & EDMA_CIRQR_SEEI_MASK) >> EDMA_CIRQR_SEEI_SHIFT)
188#define EDMA_CEEIR_NOP (1 << 7)
189#define EDMA_CEEIR_CAEE (1 << 6)
190#define EDMA_CEEIR_CEEI_SHIFT (0)
191#define EDMA_CEEIR_CEEI_MASK (0x1F << EDMA_CIRQR_CEEI_SHIFT)
192#define EDMA_CEEIR_CEEI(val) (((val) << EDMA_CIRQR_CEEI_SHIFT) & EDMA_CIRQR_CEEI_MASK)
193#define EDMA_CEEIR_CEEI_GET(reg) (((reg) & EDMA_CIRQR_CEEI_MASK) >> EDMA_CIRQR_CEEI_SHIFT)
195#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
200#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
206#define EDMA_CIRQR_NOP (1 << 7)
207#define EDMA_CIRQR_CAIR (1 << 6)
208#define EDMA_CIRQR_CINT_SHIFT (0)
209#define EDMA_CIRQR_CINT_MASK (0x1F << EDMA_CIRQR_CINT_SHIFT)
210#define EDMA_CIRQR_CINT(val) (((val) << EDMA_CIRQR_CINT_SHIFT) & EDMA_CIRQR_CINT_MASK)
211#define EDMA_CIRQR_CINT_GET(reg) (((reg) & EDMA_CIRQR_CINT_MASK) >> EDMA_CIRQR_CINT_SHIFT)
212#define EDMA_CER_NOP (1 << 7)
213#define EDMA_CER_CAEI (1 << 6)
214#define EDMA_CER_CERR_SHIFT (0)
215#define EDMA_CER_CERR_MASK (0x1F << EDMA_CIRQR_CERR_SHIFT)
216#define EDMA_CER_CERR(val) (((val) << EDMA_CIRQR_CERR_SHIFT) & EDMA_CIRQR_CERR_MASK)
217#define EDMA_CER_CERR_GET(reg) (((reg) & EDMA_CIRQR_CERR_MASK) >> EDMA_CIRQR_CERR_SHIFT)
218#define EDMA_SSBR_NOP (1 << 7)
219#define EDMA_SSBR_SAST (1 << 6)
220#define EDMA_SSBR_SSB_SHIFT (0)
221#define EDMA_SSBR_SSB_MASK (0x1F << EDMA_CIRQR_SSB_SHIFT)
222#define EDMA_SSBR_SSB(val) (((val) << EDMA_CIRQR_SSB_SHIFT) & EDMA_CIRQR_SSB_MASK)
223#define EDMA_SSBR_SSB_GET(reg) (((reg) & EDMA_CIRQR_SSB_MASK) >> EDMA_CIRQR_SSB_SHIFT)
224#define EDMA_CDSBR_NOP (1 << 7)
225#define EDMA_CDSBR_CADN (1 << 6)
226#define EDMA_CDSBR_CDSB_SHIFT (0)
227#define EDMA_CDSBR_CDSB_MASK (0x1F << EDMA_CIRQR_CDSB_SHIFT)
228#define EDMA_CDSBR_CDSB(val) (((val) << EDMA_CIRQR_CDSB_SHIFT) & EDMA_CIRQR_CDSB_MASK)
229#define EDMA_CDSBR_CDSB_GET(reg) (((reg) & EDMA_CIRQR_CDSB_MASK) >> EDMA_CIRQR_CDSB_SHIFT)
232#define EDMA_IRQH_INT(x) (1 << ((x) - 32))
235#define EDMA_IRQL_INT(x) (1 << ((x)))
238#define EDMA_ERH_ERR(x) (1 << ((x) - 32))
241#define EDMA_ERL_ERR(x) (1 << ((x)))
245#define EDMA_HRSH_HRS(x) (1 << ((x) - 32))
248#define EDMA_HRSL_HRS(x) (1 << ((x)))
250 uint32_t reserved0030[2];
253 uint32_t reserved0038[(0x44-0x38)/4];
257#define EDMA_EARSL_EDREQ(x) (1 << ((x)))
259 uint32_t reserved0044;
262 uint32_t reserved0048[(0x100-0x48)/4];
265#define EDMA_CPR_CHPRI_SHIFT (0)
266#define EDMA_CPR_CHPRI_MASK (0xF << EDMA_CPR_CHPRI_SHIFT)
267#define EDMA_CPR_CHPRI(val) (((val) << EDMA_CPR_CHPRI_SHIFT) & EDMA_CPR_CHPRI_MASK)
268#define EDMA_CPR_CHPRI_GET(reg) (((reg) & EDMA_CPR_CHPRI_MASK) >> EDMA_CPR_CHPRI_SHIFT)
269#define EDMA_CPR_GRPPRI_SHIFT (0)
270#define EDMA_CPR_GRPPRI_MASK (0xF << EDMA_CPR_GRPPRI_SHIFT)
271#define EDMA_CPR_GRPPRI(val) (((val) << EDMA_CPR_GRPPRI_SHIFT) & EDMA_CPR_GRPPRI_MASK)
272#define EDMA_CPR_GRPPRI_GET(reg) (((reg) & EDMA_CPR_GRPPRI_MASK) >> EDMA_CPR_GRPPRI_SHIFT)
273#ifdef EDMA_HAS_CPR_DPA
274 #define EDMA_CPR_DPA (1 << 6)
276#define EDMA_CPR_ECP (1 << 7)
278 uint32_t reserved0140[(0x1000-0x140)/4];
283#define EDMA_TCD_SDF_SMOD_SHIFT (27)
284#define EDMA_TCD_SDF_SMOD_MASK (0x1F << EDMA_TCD_SDF_SMOD_SHIFT)
285#define EDMA_TCD_SDF_SMOD(val) (((val) << EDMA_TCD_SDF_SMOD_SHIFT) & EDMA_TCD_SDF_SMOD_MASK)
286#define EDMA_TCD_SDF_SMOD_GET(reg) (((reg) & EDMA_TCD_SDF_SMOD_MASK) >> EDMA_TCD_SDF_SMOD_SHIFT)
287#define EDMA_TCD_SDF_SSIZE_SHIFT (24)
288#define EDMA_TCD_SDF_SSIZE_MASK (0x7 << EDMA_TCD_SDF_SSIZE_SHIFT)
289#define EDMA_TCD_SDF_SSIZE(val) (((val) << EDMA_TCD_SDF_SSIZE_SHIFT) & EDMA_TCD_SDF_SSIZE_MASK)
290#define EDMA_TCD_SDF_SSIZE_GET(reg) (((reg) & EDMA_TCD_SDF_SSIZE_MASK) >> EDMA_TCD_SDF_SSIZE_SHIFT)
291#define EDMA_TCD_SDF_SSIZE_8BIT EDMA_TCD_SDF_SSIZE(0)
292#define EDMA_TCD_SDF_SSIZE_16BIT EDMA_TCD_SDF_SSIZE(1)
293#define EDMA_TCD_SDF_SSIZE_32BIT EDMA_TCD_SDF_SSIZE(2)
294#define EDMA_TCD_SDF_SSIZE_64BIT EDMA_TCD_SDF_SSIZE(3)
295#define EDMA_TCD_SDF_SSIZE_32BYTE EDMA_TCD_SDF_SSIZE(5)
296#define EDMA_TCD_SDF_DMOD_SHIFT (19)
297#define EDMA_TCD_SDF_DMOD_MASK (0x1F << EDMA_TCD_SDF_DMOD_SHIFT)
298#define EDMA_TCD_SDF_DMOD(val) (((val) << EDMA_TCD_SDF_DMOD_SHIFT) & EDMA_TCD_SDF_DMOD_MASK)
299#define EDMA_TCD_SDF_DMOD_GET(reg) (((reg) & EDMA_TCD_SDF_DMOD_MASK) >> EDMA_TCD_SDF_DMOD_SHIFT)
300#define EDMA_TCD_SDF_DSIZE_SHIFT (16)
301#define EDMA_TCD_SDF_DSIZE_MASK (0x7 << EDMA_TCD_SDF_DSIZE_SHIFT)
302#define EDMA_TCD_SDF_DSIZE(val) (((val) << EDMA_TCD_SDF_DSIZE_SHIFT) & EDMA_TCD_SDF_DSIZE_MASK)
303#define EDMA_TCD_SDF_DSIZE_GET(reg) (((reg) & EDMA_TCD_SDF_DSIZE_MASK) >> EDMA_TCD_SDF_DSIZE_SHIFT)
304#define EDMA_TCD_SDF_DSIZE_8BIT EDMA_TCD_SDF_DSIZE(0)
305#define EDMA_TCD_SDF_DSIZE_16BIT EDMA_TCD_SDF_DSIZE(1)
306#define EDMA_TCD_SDF_DSIZE_32BIT EDMA_TCD_SDF_DSIZE(2)
307#define EDMA_TCD_SDF_DSIZE_64BIT EDMA_TCD_SDF_DSIZE(3)
308#define EDMA_TCD_SDF_DSIZE_32BYTE EDMA_TCD_SDF_DSIZE(5)
309#define EDMA_TCD_SDF_SOFF_SHIFT (0)
310#define EDMA_TCD_SDF_SOFF_MASK (0xFFFF << EDMA_TCD_SDF_SOFF_SHIFT)
311#define EDMA_TCD_SDF_SOFF(val) (((val) << EDMA_TCD_SDF_SOFF_SHIFT) & EDMA_TCD_SDF_SOFF_MASK)
312#define EDMA_TCD_SDF_SOFF_GET(reg) (((reg) & EDMA_TCD_SDF_SOFF_MASK) >> EDMA_TCD_SDF_SOFF_SHIFT)
315#define EDMA_TCD_NBYTES_ALT_NBYTES_SHIFT (0)
316#define EDMA_TCD_NBYTES_ALT_NBYTES_MASK (0x3FF << EDMA_TCD_NBYTES_ALT_NBYTES_SHIFT)
317#define EDMA_TCD_NBYTES_ALT_NBYTES(val) (((val) << EDMA_TCD_NBYTES_ALT_NBYTES_SHIFT) & EDMA_TCD_NBYTES_ALT_NBYTES_MASK)
318#define EDMA_TCD_NBYTES_ALT_MLOFF_SHIFT (10)
319#define EDMA_TCD_NBYTES_ALT_MLOFF_MASK (0xFFFFF << EDMA_TCD_NBYTES_ALT_MLOFF_SHIFT)
320#define EDMA_TCD_NBYTES_ALT_MLOFF(val) (((val) << EDMA_TCD_NBYTES_ALT_MLOFF_SHIFT) & EDMA_TCD_NBYTES_ALT_MLOFF_MASK)
321#define EDMA_TCD_NBYTES_ALT_DMLOE (1 << 30)
322#define EDMA_TCD_NBYTES_ALT_SMLOE (1 << 31)
326#define EDMA_TCD_CDF_CITERE_LINK (1 << 31)
327#define EDMA_TCD_CDF_CITER_SHIFT (16)
328#define EDMA_TCD_CDF_CITER_MASK (0x7FFF << EDMA_TCD_CDF_CITER_SHIFT)
329#define EDMA_TCD_CDF_CITER(val) (((val) << EDMA_TCD_CDF_CITER_SHIFT) & EDMA_TCD_CDF_CITER_MASK)
330#define EDMA_TCD_CDF_CITER_GET(reg) (((reg) & EDMA_TCD_CDF_CITER_MASK) >> EDMA_TCD_CDF_CITER_SHIFT)
331#define EDMA_TCD_CDF_DOFF_SHIFT (0)
332#define EDMA_TCD_CDF_DOFF_MASK (0xFFFF << EDMA_TCD_CDF_DOFF_SHIFT)
333#define EDMA_TCD_CDF_DOFF(val) (((val) << EDMA_TCD_CDF_DOFF_SHIFT) & EDMA_TCD_CDF_DOFF_MASK)
334#define EDMA_TCD_CDF_DOFF_GET(reg) (((reg) & EDMA_TCD_CDF_DOFF_MASK) >> EDMA_TCD_CDF_DOFF_SHIFT)
336#define EDMA_TCD_CDF_ALT_CITERLINKCH_SHIFT (25)
337#define EDMA_TCD_CDF_ALT_CITERLINKCH_MASK (0x3F << EDMA_TCD_CDF_ALT_CITERLINKCH_SHIFT)
338#define EDMA_TCD_CDF_ALT_CITERLINKCH(val) (((val) << EDMA_TCD_CDF_ALT_CITERLINKCH_SHIFT) & EDMA_TCD_CDF_ALT_CITERLINKCH_MASK)
339#define EDMA_TCD_CDF_ALT_CITERLINKCH_GET(reg) (((reg) & EDMA_TCD_CDF_ALT_CITERLINKCH_MASK) >> EDMA_TCD_CDF_ALT_CITERLINKCH_SHIFT)
340#define EDMA_TCD_CDF_ALT_CITER_SHIFT (16)
341#define EDMA_TCD_CDF_ALT_CITER_MASK (0x1FF << EDMA_TCD_CDF_ALT_CITER_SHIFT)
342#define EDMA_TCD_CDF_ALT_CITER(val) (((val) << EDMA_TCD_CDF_ALT_CITER_SHIFT) & EDMA_TCD_CDF_ALT_CITER_MASK)
343#define EDMA_TCD_CDF_ALT_CITER_GET(reg) (((reg) & EDMA_TCD_CDF_ALT_CITER_MASK) >> EDMA_TCD_CDF_ALT_CITER_SHIFT)
345#define EDMA_TCD_CDF_NOLINK_CITER_SHIFT (16)
346#define EDMA_TCD_CDF_NOLINK_CITER_MASK (0xFFFF << EDMA_TCD_CDF_NOLINK_CITER_SHIFT)
347#define EDMA_TCD_CDF_NOLINK_CITER(val) (((val) << EDMA_TCD_CDF_NOLINK_CITER_SHIFT) & EDMA_TCD_CDF_NOLINK_CITER_MASK)
348#define EDMA_TCD_CDF_NOLINK_CITER_GET(reg) (((reg) & EDMA_TCD_CDF_NOLINK_CITER_MASK) >> EDMA_TCD_CDF_NOLINK_CITER_SHIFT)
352#define EDMA_TCD_BMF_BITERE_LINK (1 << 31)
353#define EDMA_TCD_BMF_BITER_SHIFT (16)
354#define EDMA_TCD_BMF_BITER_MASK (0x7FFF << EDMA_TCD_BMF_BITER_SHIFT)
355#define EDMA_TCD_BMF_BITER(val) (((val) << EDMA_TCD_BMF_BITER_SHIFT) & EDMA_TCD_BMF_BITER_MASK)
356#define EDMA_TCD_BMF_BITER_GET(reg) (((reg) & EDMA_TCD_BMF_BITER_MASK) >> EDMA_TCD_BMF_BITER_SHIFT)
357#define EDMA_TCD_BMF_BWC_SHIFT (14)
358#define EDMA_TCD_BMF_BWC_MASK (0x3 << EDMA_TCD_BMF_BWC_SHIFT)
359#define EDMA_TCD_BMF_BWC(val) (((val) << EDMA_TCD_BMF_BWC_SHIFT) & EDMA_TCD_BMF_BWC_MASK)
360#define EDMA_TCD_BMF_BWC_GET(reg) (((reg) & EDMA_TCD_BMF_BWC_MASK) >> EDMA_TCD_BMF_BWC_SHIFT)
361#define EDMA_TCD_BMF_MAJORLINKCH_SHIFT (8)
362#define EDMA_TCD_BMF_MAJORLINKCH_MASK (0x3F << EDMA_TCD_BMF_MAJORLINKCH_SHIFT)
363#define EDMA_TCD_BMF_MAJORLINKCH(val) (((val) << EDMA_TCD_BMF_MAJORLINKCH_SHIFT) & EDMA_TCD_BMF_MAJORLINKCH_MASK)
364#define EDMA_TCD_BMF_MAJORLINKCH_GET(reg) (((reg) & EDMA_TCD_BMF_MAJORLINKCH_MASK) >> EDMA_TCD_BMF_MAJORLINKCH_SHIFT)
365#define EDMA_TCD_BMF_DONE (1 << 7)
366#define EDMA_TCD_BMF_ACTIVE (1 << 6)
367#define EDMA_TCD_BMF_MAJORE_LINK (1 << 5)
368#define EDMA_TCD_BMF_E_SG (1 << 4)
369#define EDMA_TCD_BMF_D_REQ (1 << 3)
370#define EDMA_TCD_BMF_INT_HALF (1 << 2)
371#define EDMA_TCD_BMF_INT_MAJ (1 << 1)
372#define EDMA_TCD_BMF_START (1 << 0)
374#define EDMA_TCD_BMF_ALT_BITERLINKCH_SHIFT (25)
375#define EDMA_TCD_BMF_ALT_BITERLINKCH_MASK (0x3F << EDMA_TCD_BMF_ALT_BITERLINKCH_SHIFT)
376#define EDMA_TCD_BMF_ALT_BITERLINKCH(val) (((val) << EDMA_TCD_BMF_ALT_BITERLINKCH_SHIFT) & EDMA_TCD_BMF_ALT_BITERLINKCH_MASK)
377#define EDMA_TCD_BMF_ALT_BITERLINKCH_GET(reg) (((reg) & EDMA_TCD_BMF_ALT_BITERLINKCH_MASK) >> EDMA_TCD_BMF_ALT_BITERLINKCH_SHIFT)
378#define EDMA_TCD_BMF_ALT_BITER_SHIFT (16)
379#define EDMA_TCD_BMF_ALT_BITER_MASK (0x1FF << EDMA_TCD_BMF_ALT_BITER_SHIFT)
380#define EDMA_TCD_BMF_ALT_BITER(val) (((val) << EDMA_TCD_BMF_ALT_BITER_SHIFT) & EDMA_TCD_BMF_ALT_BITER_MASK)
381#define EDMA_TCD_BMF_ALT_BITER_GET(reg) (((reg) & EDMA_TCD_BMF_ALT_BITER_MASK) >> EDMA_TCD_BMF_ALT_BITER_SHIFT)
383#define EDMA_TCD_BMF_NOLINK_BITER_SHIFT (16)
384#define EDMA_TCD_BMF_NOLINK_BITER_MASK (0xFFFF << EDMA_TCD_BMF_NOLINK_BITER_SHIFT)
385#define EDMA_TCD_BMF_NOLINK_BITER(val) (((val) << EDMA_TCD_BMF_NOLINK_BITER_SHIFT) & EDMA_TCD_BMF_NOLINK_BITER_MASK)
386#define EDMA_TCD_BMF_NOLINK_BITER_GET(reg) (((reg) & EDMA_TCD_BMF_NOLINK_BITER_MASK) >> EDMA_TCD_BMF_NOLINK_BITER_SHIFT)
392static const struct fsl_edma_tcd EDMA_TCD_DEFAULT = {
404#define EDMA_TCD_BITER_MASK 0x7fff
406#define EDMA_TCD_BITER_SIZE (EDMA_TCD_BITER_MASK + 1)
408#define EDMA_TCD_BITER_LINKED_MASK 0x1ff
410#define EDMA_TCD_BITER_LINKED_SIZE (EDMA_TCD_BITER_LINKED_MASK + 1)
412#define EDMA_TCD_LINK_AND_BITER(link, biter) \
413 (((link) << 9) + ((biter) & EDMA_TCD_BITER_LINKED_MASK))
Definition: regs-edma.h:280
Definition: regs-edma.h:95