~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/edma.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  *  TI EDMA definitions
  4  *
  5  *  Copyright (C) 2006-2013 Texas Instruments.
  6  */
  7 
  8 /*
  9  * This EDMA3 programming framework exposes two basic kinds of resource:
 10  *
 11  *  Channel     Triggers transfers, usually from a hardware event but
 12  *              also manually or by "chaining" from DMA completions.
 13  *              Each channel is coupled to a Parameter RAM (PaRAM) slot.
 14  *
 15  *  Slot        Each PaRAM slot holds a DMA transfer descriptor (PaRAM
 16  *              "set"), source and destination addresses, a link to a
 17  *              next PaRAM slot (if any), options for the transfer, and
 18  *              instructions for updating those addresses.  There are
 19  *              more than twice as many slots as event channels.
 20  *
 21  * Each PaRAM set describes a sequence of transfers, either for one large
 22  * buffer or for several discontiguous smaller buffers.  An EDMA transfer
 23  * is driven only from a channel, which performs the transfers specified
 24  * in its PaRAM slot until there are no more transfers.  When that last
 25  * transfer completes, the "link" field may be used to reload the channel's
 26  * PaRAM slot with a new transfer descriptor.
 27  *
 28  * The EDMA Channel Controller (CC) maps requests from channels into physical
 29  * Transfer Controller (TC) requests when the channel triggers (by hardware
 30  * or software events, or by chaining).  The two physical DMA channels provided
 31  * by the TCs are thus shared by many logical channels.
 32  *
 33  * DaVinci hardware also has a "QDMA" mechanism which is not currently
 34  * supported through this interface.  (DSP firmware uses it though.)
 35  */
 36 
 37 #ifndef EDMA_H_
 38 #define EDMA_H_
 39 
 40 enum dma_event_q {
 41         EVENTQ_0 = 0,
 42         EVENTQ_1 = 1,
 43         EVENTQ_2 = 2,
 44         EVENTQ_3 = 3,
 45         EVENTQ_DEFAULT = -1
 46 };
 47 
 48 #define EDMA_CTLR_CHAN(ctlr, chan)      (((ctlr) << 16) | (chan))
 49 #define EDMA_CTLR(i)                    ((i) >> 16)
 50 #define EDMA_CHAN_SLOT(i)               ((i) & 0xffff)
 51 
 52 #define EDMA_FILTER_PARAM(ctlr, chan)   ((int[]) { EDMA_CTLR_CHAN(ctlr, chan) })
 53 
 54 struct edma_rsv_info {
 55 
 56         const s16       (*rsv_chans)[2];
 57         const s16       (*rsv_slots)[2];
 58 };
 59 
 60 struct dma_slave_map;
 61 
 62 /* platform_data for EDMA driver */
 63 struct edma_soc_info {
 64         /*
 65          * Default queue is expected to be a low-priority queue.
 66          * This way, long transfers on the default queue started
 67          * by the codec engine will not cause audio defects.
 68          */
 69         enum dma_event_q        default_queue;
 70 
 71         /* Resource reservation for other cores */
 72         struct edma_rsv_info    *rsv;
 73 
 74         /* List of channels allocated for memcpy, terminated with -1 */
 75         s32                     *memcpy_channels;
 76 
 77         s8      (*queue_priority_mapping)[2];
 78         const s16       (*xbar_chans)[2];
 79 
 80         const struct dma_slave_map *slave_map;
 81         int slavecnt;
 82 };
 83 
 84 #endif
 85 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php