~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to include/linux/mmc/host.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
         */
107
107
        int (*enable)(struct mmc_host *host);
108
108
        int (*disable)(struct mmc_host *host, int lazy);
109
 
        /*
110
 
         * It is optional for the host to implement pre_req and post_req in
111
 
         * order to support double buffering of requests (prepare one
112
 
         * request while another request is active).
113
 
         */
114
 
        void    (*post_req)(struct mmc_host *host, struct mmc_request *req,
115
 
                            int err);
116
 
        void    (*pre_req)(struct mmc_host *host, struct mmc_request *req,
117
 
                           bool is_first_req);
118
109
        void    (*request)(struct mmc_host *host, struct mmc_request *req);
119
110
        /*
120
111
         * Avoid calling these three functions too often or in a "fast path",
153
144
struct mmc_card;
154
145
struct device;
155
146
 
156
 
struct mmc_async_req {
157
 
        /* active mmc request */
158
 
        struct mmc_request      *mrq;
159
 
        /*
160
 
         * Check error status of completed mmc request.
161
 
         * Returns 0 if success otherwise non zero.
162
 
         */
163
 
        int (*err_check) (struct mmc_card *, struct mmc_async_req *);
164
 
};
165
 
 
166
147
struct mmc_host {
167
148
        struct device           *parent;
168
149
        struct device           class_dev;
300
281
 
301
282
        struct dentry           *debugfs_root;
302
283
 
303
 
        struct mmc_async_req    *areq;          /* active async req */
304
 
 
305
 
#ifdef CONFIG_FAIL_MMC_REQUEST
306
 
        u8                      make_it_fail;
307
 
#endif
308
284
        unsigned long           private[0] ____cacheline_aligned;
309
285
};
310
286