#include <linux/atomic.h>
#include <linux/dev_printk.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/errno.h>
#include <linux/irqreturn.h>
#include <linux/scatterlist.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/spi/spi.h>
#include "spi-pxa2xx.h"
struct device;
static void pxa2xx_spi_dma_transfer_complete(struct driver_data *drv_data,
bool error)
{ … }
static void pxa2xx_spi_dma_callback(void *data)
{ … }
static struct dma_async_tx_descriptor *
pxa2xx_spi_dma_prepare_one(struct driver_data *drv_data,
enum dma_transfer_direction dir,
struct spi_transfer *xfer)
{ … }
irqreturn_t pxa2xx_spi_dma_transfer(struct driver_data *drv_data)
{ … }
int pxa2xx_spi_dma_prepare(struct driver_data *drv_data,
struct spi_transfer *xfer)
{ … }
void pxa2xx_spi_dma_start(struct driver_data *drv_data)
{ … }
void pxa2xx_spi_dma_stop(struct driver_data *drv_data)
{ … }
int pxa2xx_spi_dma_setup(struct driver_data *drv_data)
{ … }
void pxa2xx_spi_dma_release(struct driver_data *drv_data)
{ … }