Lines Matching +full:dma +full:- +full:controller

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * MUSB OTG driver DMA controller abstraction
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
16 * DMA Controller Abstraction
18 * DMA Controllers are abstracted to allow use of a variety of different
19 * implementations of DMA, as allowed by the Inventra USB cores. On the
20 * host side, usbcore sets up the DMA mappings and flushes caches; on the
21 * peripheral side, the gadget controller driver does. Responsibilities
22 * of a DMA controller driver include:
24 * - Handling the details of moving multiple USB packets
26 * the correct RX side treatment of short packets and buffer-full
29 * - Knowing the correlation between dma channels and the
32 * - Maintaining a list of allocated/available channels.
34 * - Updating channel status on interrupts,
53 #define musb_dma_ux500(musb) (musb->ops->quirks & MUSB_DMA_UX500)
59 #define musb_dma_cppi41(musb) (musb->ops->quirks & MUSB_DMA_CPPI41)
65 #define musb_dma_cppi(musb) (musb->ops->quirks & MUSB_DMA_CPPI)
71 #define tusb_dma_omap(musb) (musb->ops->quirks & MUSB_DMA_TUSB_OMAP)
77 #define musb_dma_inventra(musb) (musb->ops->quirks & MUSB_DMA_INVENTRA)
90 * DMA channel status ... updated by the dma controller driver whenever that
91 * status changes, and protected by the overall controller spinlock.
100 /* transaction(s) aborted due to ... dma or memory bus error */
109 * struct dma_channel - A DMA channel.
110 * @private_data: channel-private data
112 * transaction (typically representing many USB maximum-sized packets)
131 * dma_channel_status - return status of dma channel
141 return (is_dma_capable() && c) ? c->status : MUSB_DMA_STATUS_UNKNOWN; in dma_channel_status()
145 * struct dma_controller - A DMA Controller.
146 * @musb: the usb controller
147 * @start: call this to start a DMA controller;
149 * @stop: call this to stop a DMA controller
151 * @channel_alloc: call this to allocate a DMA channel
152 * @channel_release: call this to release a DMA channel
153 * @channel_abort: call this to abort a pending DMA transaction,
155 * @dma_callback: invoked on DMA completion, useful to run platform
158 * Controllers manage dma channels.
196 /* Platform specific DMA functions */