Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
s3cmci.h
Go to the documentation of this file.
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 
18 };
19 
20 struct s3cmci_host {
23  struct mmc_host *mmc;
24  struct resource *mem;
25  struct clk *clk;
26  void __iomem *base;
27  int irq;
28  int irq_cd;
29  int dma;
30 
31  unsigned long clk_rate;
32  unsigned long clk_div;
33  unsigned long real_rate;
35 
36  int is2440;
37  unsigned sdiimsk;
38  unsigned sdidata;
39  int dodma;
40  int dmatogo;
41 
44  bool irq_state;
46 
47  struct mmc_request *mrq;
49 
52 
54 
59 #define XFER_NONE 0
60 #define XFER_READ 1
61 #define XFER_WRITE 2
63 
64  int bus_width;
65 
66  char dbgmsg_cmd[301];
67  char dbgmsg_dat[301];
68  char *status;
69 
70  unsigned int ccnt, dcnt;
72 
73 #ifdef CONFIG_DEBUG_FS
74  struct dentry *debug_root;
75  struct dentry *debug_state;
76  struct dentry *debug_regs;
77 #endif
78 
79 #ifdef CONFIG_CPU_FREQ
80  struct notifier_block freq_transition;
81 #endif
82 };