i2o: sg chaining support
Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
ed17b031e0
commit
ba2da2f8d6
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
||||||
#include <linux/workqueue.h> /* work_struct */
|
#include <linux/workqueue.h> /* work_struct */
|
||||||
#include <linux/mempool.h>
|
#include <linux/mempool.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
|
#include <linux/scatterlist.h>
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/semaphore.h> /* Needed for MUTEX init macros */
|
#include <asm/semaphore.h> /* Needed for MUTEX init macros */
|
||||||
|
@ -837,7 +838,7 @@ static inline int i2o_dma_map_sg(struct i2o_controller *c,
|
||||||
if ((sizeof(dma_addr_t) > 4) && c->pae_support)
|
if ((sizeof(dma_addr_t) > 4) && c->pae_support)
|
||||||
*mptr++ = cpu_to_le32(i2o_dma_high(sg_dma_address(sg)));
|
*mptr++ = cpu_to_le32(i2o_dma_high(sg_dma_address(sg)));
|
||||||
#endif
|
#endif
|
||||||
sg++;
|
sg = sg_next(sg);
|
||||||
}
|
}
|
||||||
*sg_ptr = mptr;
|
*sg_ptr = mptr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue