mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
7cdc39eead
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the at91 include directories Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Vinod Koul <vinod.koul@linux.intel.com> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Cc: Dan Williams <djbw@fb.com>
25 lines
490 B
C
25 lines
490 B
C
#ifndef __MACH_ATMEL_MCI_H
|
|
#define __MACH_ATMEL_MCI_H
|
|
|
|
#include <linux/platform_data/dma-atmel.h>
|
|
|
|
/**
|
|
* struct mci_dma_data - DMA data for MCI interface
|
|
*/
|
|
struct mci_dma_data {
|
|
struct at_dma_slave sdata;
|
|
};
|
|
|
|
/* accessor macros */
|
|
#define slave_data_ptr(s) (&(s)->sdata)
|
|
#define find_slave_dev(s) ((s)->sdata.dma_dev)
|
|
|
|
#define setup_dma_addr(s, t, r) do { \
|
|
if (s) { \
|
|
(s)->sdata.tx_reg = (t); \
|
|
(s)->sdata.rx_reg = (r); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif /* __MACH_ATMEL_MCI_H */
|