]>
Commit | Line | Data |
---|---|---|
45516216 | 1 | struct scatterlist { |
2 | struct page *page; | |
3 | unsigned int offset; | |
4 | }; | |
5 | void mmc_blk_issue_rq() { | |
6 | unsigned int blocks; | |
7 | struct scatterlist sg; | |
8 | void *buf = &blocks; | |
9 | memset(&sg, 0, sizeof(sg)); | |
10 | sg.page = ((unsigned long)buf - 0x80000000 >> 12) - 0x0C000000; | |
11 | sg.offset = ((unsigned long)buf & 1UL << 12); | |
12 | if (blocks) local_irq_disable(); | |
13 | } |