diff options
-rw-r--r-- | arch/alpha/kernel/core_marvel.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/core_titan.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/pci_impl.h | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index e302daecbe5..8e059e58b0a 100644 --- a/arch/alpha/kernel/core_marvel.c +++ b/arch/alpha/kernel/core_marvel.c | |||
@@ -1016,7 +1016,7 @@ marvel_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *m | |||
1016 | { | 1016 | { |
1017 | struct marvel_agp_aperture *aper = agp->aperture.sysdata; | 1017 | struct marvel_agp_aperture *aper = agp->aperture.sysdata; |
1018 | return iommu_bind(aper->arena, aper->pg_start + pg_start, | 1018 | return iommu_bind(aper->arena, aper->pg_start + pg_start, |
1019 | mem->page_count, mem->memory); | 1019 | mem->page_count, mem->pages); |
1020 | } | 1020 | } |
1021 | 1021 | ||
1022 | static int | 1022 | static int |
diff --git a/arch/alpha/kernel/core_titan.c b/arch/alpha/kernel/core_titan.c index 319fcb74611..76686497b1e 100644 --- a/arch/alpha/kernel/core_titan.c +++ b/arch/alpha/kernel/core_titan.c | |||
@@ -680,7 +680,7 @@ titan_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *me | |||
680 | { | 680 | { |
681 | struct titan_agp_aperture *aper = agp->aperture.sysdata; | 681 | struct titan_agp_aperture *aper = agp->aperture.sysdata; |
682 | return iommu_bind(aper->arena, aper->pg_start + pg_start, | 682 | return iommu_bind(aper->arena, aper->pg_start + pg_start, |
683 | mem->page_count, mem->memory); | 683 | mem->page_count, mem->pages); |
684 | } | 684 | } |
685 | 685 | ||
686 | static int | 686 | static int |
diff --git a/arch/alpha/kernel/pci_impl.h b/arch/alpha/kernel/pci_impl.h index 00edd04b585..85457b2d451 100644 --- a/arch/alpha/kernel/pci_impl.h +++ b/arch/alpha/kernel/pci_impl.h | |||
@@ -198,7 +198,7 @@ extern unsigned long size_for_memory(unsigned long max); | |||
198 | 198 | ||
199 | extern int iommu_reserve(struct pci_iommu_arena *, long, long); | 199 | extern int iommu_reserve(struct pci_iommu_arena *, long, long); |
200 | extern int iommu_release(struct pci_iommu_arena *, long, long); | 200 | extern int iommu_release(struct pci_iommu_arena *, long, long); |
201 | extern int iommu_bind(struct pci_iommu_arena *, long, long, unsigned long *); | 201 | extern int iommu_bind(struct pci_iommu_arena *, long, long, struct page **); |
202 | extern int iommu_unbind(struct pci_iommu_arena *, long, long); | 202 | extern int iommu_unbind(struct pci_iommu_arena *, long, long); |
203 | 203 | ||
204 | 204 | ||
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index d15aedfe606..8449504f5e0 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -876,7 +876,7 @@ iommu_release(struct pci_iommu_arena *arena, long pg_start, long pg_count) | |||
876 | 876 | ||
877 | int | 877 | int |
878 | iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, | 878 | iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, |
879 | unsigned long *physaddrs) | 879 | struct page **pages) |
880 | { | 880 | { |
881 | unsigned long flags; | 881 | unsigned long flags; |
882 | unsigned long *ptes; | 882 | unsigned long *ptes; |
@@ -896,7 +896,7 @@ iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, | |||
896 | } | 896 | } |
897 | 897 | ||
898 | for(i = 0, j = pg_start; i < pg_count; i++, j++) | 898 | for(i = 0, j = pg_start; i < pg_count; i++, j++) |
899 | ptes[j] = mk_iommu_pte(physaddrs[i]); | 899 | ptes[j] = mk_iommu_pte(page_to_phys(pages[i])); |
900 | 900 | ||
901 | spin_unlock_irqrestore(&arena->lock, flags); | 901 | spin_unlock_irqrestore(&arena->lock, flags); |
902 | 902 | ||