diff options
author | Robert Reif <reif@earthlink.net> | 2008-12-11 23:24:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-11 23:24:58 -0500 |
commit | aa83a26a193bf06ac6c822ccd881c62898a351c6 (patch) | |
tree | 5bd83b07c38ccc233261d1c5a907772750ce7e81 /arch/sparc/mm/iommu.c | |
parent | 18cdae68e7bb24f33883e58f366cde38ea89ba17 (diff) |
sparc: use sparc64 version of scatterlist.h
Use sparc64 version of scatterlist.h.
There are three main differences:
dma_addr_t replaces __u32
dma_address replaces dvma_address
dma_length replaces dvma_length
dma_addr_t is a u32 on sparc32.
Boot tested on sparc32.
Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/iommu.c')
-rw-r--r-- | arch/sparc/mm/iommu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c index e7a499e3aa3c..b2e6e73888b5 100644 --- a/arch/sparc/mm/iommu.c +++ b/arch/sparc/mm/iommu.c | |||
@@ -245,8 +245,8 @@ static void iommu_get_scsi_sgl_noflush(struct device *dev, struct scatterlist *s | |||
245 | while (sz != 0) { | 245 | while (sz != 0) { |
246 | --sz; | 246 | --sz; |
247 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; | 247 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; |
248 | sg->dvma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; | 248 | sg->dma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; |
249 | sg->dvma_length = (__u32) sg->length; | 249 | sg->dma_length = sg->length; |
250 | sg = sg_next(sg); | 250 | sg = sg_next(sg); |
251 | } | 251 | } |
252 | } | 252 | } |
@@ -259,8 +259,8 @@ static void iommu_get_scsi_sgl_gflush(struct device *dev, struct scatterlist *sg | |||
259 | while (sz != 0) { | 259 | while (sz != 0) { |
260 | --sz; | 260 | --sz; |
261 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; | 261 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; |
262 | sg->dvma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; | 262 | sg->dma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; |
263 | sg->dvma_length = (__u32) sg->length; | 263 | sg->dma_length = sg->length; |
264 | sg = sg_next(sg); | 264 | sg = sg_next(sg); |
265 | } | 265 | } |
266 | } | 266 | } |
@@ -290,8 +290,8 @@ static void iommu_get_scsi_sgl_pflush(struct device *dev, struct scatterlist *sg | |||
290 | } | 290 | } |
291 | } | 291 | } |
292 | 292 | ||
293 | sg->dvma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; | 293 | sg->dma_address = iommu_get_one(dev, sg_page(sg), n) + sg->offset; |
294 | sg->dvma_length = (__u32) sg->length; | 294 | sg->dma_length = sg->length; |
295 | sg = sg_next(sg); | 295 | sg = sg_next(sg); |
296 | } | 296 | } |
297 | } | 297 | } |
@@ -330,8 +330,8 @@ static void iommu_release_scsi_sgl(struct device *dev, struct scatterlist *sg, i | |||
330 | --sz; | 330 | --sz; |
331 | 331 | ||
332 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; | 332 | n = (sg->length + sg->offset + PAGE_SIZE-1) >> PAGE_SHIFT; |
333 | iommu_release_one(dev, sg->dvma_address & PAGE_MASK, n); | 333 | iommu_release_one(dev, sg->dma_address & PAGE_MASK, n); |
334 | sg->dvma_address = 0x21212121; | 334 | sg->dma_address = 0x21212121; |
335 | sg = sg_next(sg); | 335 | sg = sg_next(sg); |
336 | } | 336 | } |
337 | } | 337 | } |