#ifndef _DMA_H_
#define _DMA_H_
#include <linux/dmaengine.h>
#define QCE_BAM_BURST_SIZE …
#define QCE_AUTHIV_REGS_CNT …
#define QCE_AUTH_BYTECOUNT_REGS_CNT …
#define QCE_CNTRIV_REGS_CNT …
struct qce_result_dump { … };
#define QCE_IGNORE_BUF_SZ …
#define QCE_RESULT_BUF_SZ …
struct qce_dma_data { … };
int qce_dma_request(struct device *dev, struct qce_dma_data *dma);
void qce_dma_release(struct qce_dma_data *dma);
int qce_dma_prep_sgs(struct qce_dma_data *dma, struct scatterlist *sg_in,
int in_ents, struct scatterlist *sg_out, int out_ents,
dma_async_tx_callback cb, void *cb_param);
void qce_dma_issue_pending(struct qce_dma_data *dma);
int qce_dma_terminate_all(struct qce_dma_data *dma);
struct scatterlist *
qce_sgtable_add(struct sg_table *sgt, struct scatterlist *sg_add,
unsigned int max_len);
#endif