| * Header for the SUDMAC driver |
| * Copyright (C) 2013 Renesas Solutions Corp. |
| * This is free software; you can redistribute it and/or modify |
| * it under the terms of version 2 of the GNU General Public License as |
| * published by the Free Software Foundation. |
| #include <linux/dmaengine.h> |
| #include <linux/shdma-base.h> |
| /* Used by slave DMA clients to request DMA to/from a specific peripheral */ |
| struct shdma_slave shdma_slave; /* Set by the platform */ |
| * Supplied by platforms to specify, how a DMA channel has to be configured for |
| struct sudmac_slave_config { |
| unsigned long wait; /* The configuable range is 0 to 3 */ |
| unsigned long dint_end_bit; |
| const struct sudmac_slave_config *slave; |
| const struct sudmac_channel *channel; |
| /* Definitions for the sudmac_channel.config */ |
| #define SUDMAC_TX_BUFFER_MODE BIT(0) |
| #define SUDMAC_RX_END_MODE BIT(1) |
| /* Definitions for the sudmac_channel.dint_end_bit */ |
| #define SUDMAC_DMA_BIT_CH0 BIT(0) |
| #define SUDMAC_DMA_BIT_CH1 BIT(1) |