mmc: core: add non-blocking mmc request function
[pandora-kernel.git] / include / linux / mmc / core.h
index 86d81cf..b8b1b7a 100644 (file)
@@ -117,6 +117,7 @@ struct mmc_data {
 
        unsigned int            sg_len;         /* size of scatter list */
        struct scatterlist      *sg;            /* I/O scatter list */
+       s32                     host_cookie;    /* host private data */
 };
 
 struct mmc_request {
@@ -125,13 +126,16 @@ struct mmc_request {
        struct mmc_data         *data;
        struct mmc_command      *stop;
 
-       void                    *done_data;     /* completion data */
+       struct completion       completion;
        void                    (*done)(struct mmc_request *);/* completion function */
 };
 
 struct mmc_host;
 struct mmc_card;
+struct mmc_async_req;
 
+extern struct mmc_async_req *mmc_start_req(struct mmc_host *,
+                                          struct mmc_async_req *, int *);
 extern void mmc_wait_for_req(struct mmc_host *, struct mmc_request *);
 extern int mmc_wait_for_cmd(struct mmc_host *, struct mmc_command *, int);
 extern int mmc_app_cmd(struct mmc_host *, struct mmc_card *);