V4L/DVB: v4l2-dev: remove duplicated #include
[linux-2.6/sactl.git] / drivers / mmc / host / s3cmci.h
blob37d9c60010c90d260b8e8fae077693824241828d
1 /*
2 * linux/drivers/mmc/s3cmci.h - Samsung S3C MCI driver
4 * Copyright (C) 2004-2006 Thomas Kleffel, All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
11 /* FIXME: DMA Resource management ?! */
12 #define S3CMCI_DMA 0
14 enum s3cmci_waitfor {
15 COMPLETION_NONE,
16 COMPLETION_FINALIZE,
17 COMPLETION_CMDSENT,
18 COMPLETION_RSPFIN,
19 COMPLETION_XFERFINISH,
20 COMPLETION_XFERFINISH_RSPFIN,
23 struct s3cmci_host {
24 struct platform_device *pdev;
25 struct s3c24xx_mci_pdata *pdata;
26 struct mmc_host *mmc;
27 struct resource *mem;
28 struct clk *clk;
29 void __iomem *base;
30 int irq;
31 int irq_cd;
32 int dma;
34 unsigned long clk_rate;
35 unsigned long clk_div;
36 unsigned long real_rate;
37 u8 prescaler;
39 int is2440;
40 unsigned sdiimsk;
41 unsigned sdidata;
42 int dodma;
43 int dmatogo;
45 struct mmc_request *mrq;
46 int cmd_is_stop;
48 spinlock_t complete_lock;
49 enum s3cmci_waitfor complete_what;
51 int dma_complete;
53 u32 pio_sgptr;
54 u32 pio_words;
55 u32 pio_count;
56 u32 *pio_ptr;
57 #define XFER_NONE 0
58 #define XFER_READ 1
59 #define XFER_WRITE 2
60 u32 pio_active;
62 int bus_width;
64 char dbgmsg_cmd[301];
65 char dbgmsg_dat[301];
66 char *status;
68 unsigned int ccnt, dcnt;
69 struct tasklet_struct pio_tasklet;