aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mmc_queue.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/mmc/mmc_queue.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/mmc/mmc_queue.h')
-rw-r--r--drivers/mmc/mmc_queue.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/mmc/mmc_queue.h b/drivers/mmc/mmc_queue.h
new file mode 100644
index 000000000000..7182d2f69b4e
--- /dev/null
+++ b/drivers/mmc/mmc_queue.h
@@ -0,0 +1,33 @@
1#ifndef MMC_QUEUE_H
2#define MMC_QUEUE_H
3
4struct request;
5struct task_struct;
6
7struct mmc_queue {
8 struct mmc_card *card;
9 struct completion thread_complete;
10 wait_queue_head_t thread_wq;
11 struct semaphore thread_sem;
12 unsigned int flags;
13 struct request *req;
14 int (*prep_fn)(struct mmc_queue *, struct request *);
15 int (*issue_fn)(struct mmc_queue *, struct request *);
16 void *data;
17 struct request_queue *queue;
18 struct scatterlist *sg;
19};
20
21struct mmc_io_request {
22 struct request *rq;
23 int num;
24 struct mmc_command selcmd; /* mmc_queue private */
25 struct mmc_command cmd[4]; /* max 4 commands */
26};
27
28extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *);
29extern void mmc_cleanup_queue(struct mmc_queue *);
30extern void mmc_queue_suspend(struct mmc_queue *);
31extern void mmc_queue_resume(struct mmc_queue *);
32
33#endif