2 * Header for the SUDMAC driver
4 * Copyright (C) 2013 Renesas Solutions Corp.
6 * This is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
13 #include <linux/dmaengine.h>
14 #include <linux/shdma-base.h>
15 #include <linux/types.h>
17 /* Used by slave DMA clients to request DMA to/from a specific peripheral */
19 struct shdma_slave shdma_slave
; /* Set by the platform */
23 * Supplied by platforms to specify, how a DMA channel has to be configured for
24 * a certain peripheral
26 struct sudmac_slave_config
{
30 struct sudmac_channel
{
33 unsigned long wait
; /* The configuable range is 0 to 3 */
34 unsigned long dint_end_bit
;
38 const struct sudmac_slave_config
*slave
;
40 const struct sudmac_channel
*channel
;
44 /* Definitions for the sudmac_channel.config */
45 #define SUDMAC_TX_BUFFER_MODE BIT(0)
46 #define SUDMAC_RX_END_MODE BIT(1)
48 /* Definitions for the sudmac_channel.dint_end_bit */
49 #define SUDMAC_DMA_BIT_CH0 BIT(0)
50 #define SUDMAC_DMA_BIT_CH1 BIT(1)
This page took 0.031966 seconds and 5 git commands to generate.