diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-16 18:11:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-16 18:17:52 -0400 |
commit | 8a0ca91e1db5de5eb5b18cfa919d52ff8be375af (patch) | |
tree | bd3a1564940d27ae7f6229089db1283ff2a636c8 /drivers/mmc/host/s3cmci.h | |
parent | 9c1be0c4712fe760d8969427ef91107e9c062d91 (diff) | |
parent | c43d8636971c39da993e94082fd65bfff421618e (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc: (68 commits)
sdio_uart: Fix SDIO break control to now return success or an error
mmc: host driver for Ricoh Bay1Controllers
sdio: sdio_io.c Fix sparse warnings
sdio: fix the use of hard coded timeout value.
mmc: OLPC: update vdd/powerup quirk comment
mmc: fix spares errors of sdhci.c
mmc: remove multiwrite capability
wbsd: fix bad dma_addr_t conversion
atmel-mci: Driver for Atmel on-chip MMC controllers
mmc: fix sdio_io sparse errors
mmc: wbsd.c fix shadowing of 'dma' variable
MMC: S3C24XX: Refuse incorrectly aligned transfers
MMC: S3C24XX: Add maintainer entry
MMC: S3C24XX: Update error debugging.
MMC: S3C24XX: Add media presence test to request handling.
MMC: S3C24XX: Fix use of msecs where jiffies are needed
MMC: S3C24XX: Add MODULE_ALIAS() entries for the platform devices
MMC: S3C24XX: Fix s3c2410_dma_request() return code check.
MMC: S3C24XX: Allow card-detect on non-IRQ capable pin
MMC: S3C24XX: Ensure host->mrq->data is valid
...
Manually fixed up bogus executable bits on drivers/mmc/core/sdio_io.c
and include/linux/mmc/sdio_func.h when merging.
Diffstat (limited to 'drivers/mmc/host/s3cmci.h')
-rw-r--r-- | drivers/mmc/host/s3cmci.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/drivers/mmc/host/s3cmci.h b/drivers/mmc/host/s3cmci.h new file mode 100644 index 000000000000..37d9c60010c9 --- /dev/null +++ b/drivers/mmc/host/s3cmci.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | * linux/drivers/mmc/s3cmci.h - Samsung S3C MCI driver | ||
3 | * | ||
4 | * Copyright (C) 2004-2006 Thomas Kleffel, All Rights Reserved. | ||
5 | * | ||
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 | */ | ||
10 | |||
11 | /* FIXME: DMA Resource management ?! */ | ||
12 | #define S3CMCI_DMA 0 | ||
13 | |||
14 | enum s3cmci_waitfor { | ||
15 | COMPLETION_NONE, | ||
16 | COMPLETION_FINALIZE, | ||
17 | COMPLETION_CMDSENT, | ||
18 | COMPLETION_RSPFIN, | ||
19 | COMPLETION_XFERFINISH, | ||
20 | COMPLETION_XFERFINISH_RSPFIN, | ||
21 | }; | ||
22 | |||
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; | ||
33 | |||
34 | unsigned long clk_rate; | ||
35 | unsigned long clk_div; | ||
36 | unsigned long real_rate; | ||
37 | u8 prescaler; | ||
38 | |||
39 | int is2440; | ||
40 | unsigned sdiimsk; | ||
41 | unsigned sdidata; | ||
42 | int dodma; | ||
43 | int dmatogo; | ||
44 | |||
45 | struct mmc_request *mrq; | ||
46 | int cmd_is_stop; | ||
47 | |||
48 | spinlock_t complete_lock; | ||
49 | enum s3cmci_waitfor complete_what; | ||
50 | |||
51 | int dma_complete; | ||
52 | |||
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; | ||
61 | |||
62 | int bus_width; | ||
63 | |||
64 | char dbgmsg_cmd[301]; | ||
65 | char dbgmsg_dat[301]; | ||
66 | char *status; | ||
67 | |||
68 | unsigned int ccnt, dcnt; | ||
69 | struct tasklet_struct pio_tasklet; | ||
70 | }; | ||