This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / mmc / mmci.h
index 4589bbd..ce3a026 100644 (file)
 struct clk;
 
 struct mmci_host {
-       void __iomem            *base;
+       void                    *base;
        struct mmc_request      *mrq;
        struct mmc_command      *cmd;
        struct mmc_data         *data;
@@ -139,6 +139,7 @@ struct mmci_host {
        struct timer_list       timer;
        unsigned int            oldstat;
 
+       struct scatterlist      sg[NR_SG];
        unsigned int            sg_len;
 
        /* pio stuff */
@@ -149,11 +150,14 @@ struct mmci_host {
 
 static inline void mmci_init_sg(struct mmci_host *host, struct mmc_data *data)
 {
+       struct scatterlist *sg = host->sg;
+       struct request *req = data->req;
+
        /*
         * Ideally, we want the higher levels to pass us a scatter list.
         */
-       host->sg_len = data->sg_len;
-       host->sg_ptr = data->sg;
+       host->sg_len = blk_rq_map_sg(req->q, req, sg);
+       host->sg_ptr = sg;
        host->sg_off = 0;
 }