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/kernel | |
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/kernel')
-rw-r--r-- | arch/sparc/kernel/ioport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 4f025b36934b..7ce14f05eb48 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c | |||
@@ -552,8 +552,8 @@ int pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sgl, int nents, | |||
552 | /* IIep is write-through, not flushing. */ | 552 | /* IIep is write-through, not flushing. */ |
553 | for_each_sg(sgl, sg, nents, n) { | 553 | for_each_sg(sgl, sg, nents, n) { |
554 | BUG_ON(page_address(sg_page(sg)) == NULL); | 554 | BUG_ON(page_address(sg_page(sg)) == NULL); |
555 | sg->dvma_address = virt_to_phys(sg_virt(sg)); | 555 | sg->dma_address = virt_to_phys(sg_virt(sg)); |
556 | sg->dvma_length = sg->length; | 556 | sg->dma_length = sg->length; |
557 | } | 557 | } |
558 | return nents; | 558 | return nents; |
559 | } | 559 | } |