~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 *              actively failing requests
93
93
 */
94
94
 
95
 
        unsigned int            erase_timeout;  /* in milliseconds */
 
95
        unsigned int            cmd_timeout_ms; /* in milliseconds */
96
96
 
97
97
        struct mmc_data         *data;          /* data segment associated with cmd */
98
98
        struct mmc_request      *mrq;           /* associated request */
120
120
};
121
121
 
122
122
struct mmc_request {
 
123
        struct mmc_command      *sbc;           /* SET_BLOCK_COUNT for multiblock */
123
124
        struct mmc_command      *cmd;
124
125
        struct mmc_data         *data;
125
126
        struct mmc_command      *stop;
133
134
 
134
135
extern void mmc_wait_for_req(struct mmc_host *, struct mmc_request *);
135
136
extern int mmc_wait_for_cmd(struct mmc_host *, struct mmc_command *, int);
 
137
extern int mmc_app_cmd(struct mmc_host *, struct mmc_card *);
136
138
extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *,
137
139
        struct mmc_command *, int);
 
140
extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int);
138
141
 
139
142
#define MMC_ERASE_ARG           0x00000000
140
143
#define MMC_SECURE_ERASE_ARG    0x80000000