diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-11 18:26:16 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-07-09 15:22:53 -0400 |
commit | 98ccf14909ba02a41c5925b0b2c92aeeef23d3b9 (patch) | |
tree | 331b645ee008f858305f7406f4639119b275ff82 /drivers/mmc/card/queue.h | |
parent | 7dcca30a32aadb0520417521b0c44f42d09fe05c (diff) |
mmc: bounce requests for simple hosts
Some hosts cannot do scatter/gather in hardware. Since not doing sg
is such a big performance hit, we (optionally) bounce the requests
to a simple linear buffer that we hand over to the driver.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/card/queue.h')
-rw-r--r-- | drivers/mmc/card/queue.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h index 1590b3f3f1f7..64e66e0d4994 100644 --- a/drivers/mmc/card/queue.h +++ b/drivers/mmc/card/queue.h | |||
@@ -14,6 +14,9 @@ struct mmc_queue { | |||
14 | void *data; | 14 | void *data; |
15 | struct request_queue *queue; | 15 | struct request_queue *queue; |
16 | struct scatterlist *sg; | 16 | struct scatterlist *sg; |
17 | char *bounce_buf; | ||
18 | struct scatterlist *bounce_sg; | ||
19 | unsigned int bounce_sg_len; | ||
17 | }; | 20 | }; |
18 | 21 | ||
19 | extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *); | 22 | extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *); |
@@ -21,4 +24,8 @@ extern void mmc_cleanup_queue(struct mmc_queue *); | |||
21 | extern void mmc_queue_suspend(struct mmc_queue *); | 24 | extern void mmc_queue_suspend(struct mmc_queue *); |
22 | extern void mmc_queue_resume(struct mmc_queue *); | 25 | extern void mmc_queue_resume(struct mmc_queue *); |
23 | 26 | ||
27 | extern unsigned int mmc_queue_map_sg(struct mmc_queue *); | ||
28 | extern void mmc_queue_bounce_pre(struct mmc_queue *); | ||
29 | extern void mmc_queue_bounce_post(struct mmc_queue *); | ||
30 | |||
24 | #endif | 31 | #endif |