-
Notifications
You must be signed in to change notification settings - Fork 21
/
jz_mmc_dma.h
28 lines (22 loc) · 856 Bytes
/
jz_mmc_dma.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* linux/drivers/mmc/host/jz_mmc/dma/jz_mmc_dma.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Copyright (c) Ingenic Semiconductor Co., Ltd.
*/
#ifndef __JZ_MMC_DMA_H__
#define __JZ_MMC_DMA_H__
struct jz_mmc_host;
void jz_mmc_start_dma(struct jz_mmc_host *host);
void jz_mmc_stop_dma(struct jz_mmc_host *host);
void jz_mmc_start_normal_dma(struct jz_mmc_host *host, unsigned long phyaddr,
int count, int mode, int ds);
void jz_mmc_start_scatter_dma(int chan, struct jz_mmc_host *host,
struct scatterlist *sg, unsigned int sg_len,
int mode);
int jz_mmc_init_dma(struct jz_mmc_host *host);
void jz_mmc_deinit_dma(struct jz_mmc_host *host);
#endif /* __JZ_MMC_DMA_H__ */