#ifndef LINUX_MMC_SH_MMCIF_H
#define LINUX_MMC_SH_MMCIF_H
#include <linux/io.h>
#include <linux/platform_device.h>
struct sh_mmcif_plat_data { … };
#define MMCIF_CE_CMD_SET …
#define MMCIF_CE_ARG …
#define MMCIF_CE_ARG_CMD12 …
#define MMCIF_CE_CMD_CTRL …
#define MMCIF_CE_BLOCK_SET …
#define MMCIF_CE_CLK_CTRL …
#define MMCIF_CE_BUF_ACC …
#define MMCIF_CE_RESP3 …
#define MMCIF_CE_RESP2 …
#define MMCIF_CE_RESP1 …
#define MMCIF_CE_RESP0 …
#define MMCIF_CE_RESP_CMD12 …
#define MMCIF_CE_DATA …
#define MMCIF_CE_INT …
#define MMCIF_CE_INT_MASK …
#define MMCIF_CE_HOST_STS1 …
#define MMCIF_CE_HOST_STS2 …
#define MMCIF_CE_CLK_CTRL2 …
#define MMCIF_CE_VERSION …
#define BUF_ACC_DMAWEN …
#define BUF_ACC_DMAREN …
#define BUF_ACC_BUSW_32 …
#define BUF_ACC_BUSW_16 …
#define BUF_ACC_ATYP …
#define CLK_ENABLE …
#define CLK_CLEAR …
#define CLK_SUP_PCLK …
#define CLKDIV_4 …
#define CLKDIV_256 …
#define SRSPTO_256 …
#define SRBSYTO_29 …
#define SRWDTO_29 …
#define SCCSTO_29 …
#define SOFT_RST_ON …
#define SOFT_RST_OFF …
static inline u32 sh_mmcif_readl(void __iomem *addr, int reg)
{ … }
static inline void sh_mmcif_writel(void __iomem *addr, int reg, u32 val)
{ … }
#define SH_MMCIF_BBS …
static inline void sh_mmcif_boot_cmd_send(void __iomem *base,
unsigned long cmd, unsigned long arg)
{ … }
static inline int sh_mmcif_boot_cmd_poll(void __iomem *base, unsigned long mask)
{ … }
static inline int sh_mmcif_boot_cmd(void __iomem *base,
unsigned long cmd, unsigned long arg)
{ … }
static inline int sh_mmcif_boot_do_read_single(void __iomem *base,
unsigned int block_nr,
unsigned long *buf)
{ … }
static inline int sh_mmcif_boot_do_read(void __iomem *base,
unsigned long first_block,
unsigned long nr_blocks,
void *buf)
{ … }
static inline void sh_mmcif_boot_init(void __iomem *base)
{ … }
#endif