diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-04-27 00:08:21 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-27 00:08:21 -0400 |
commit | 16ce82d846f2e6b652a064f91c5019cfe8682be4 (patch) | |
tree | 9100d2baface8ec8d5b7911e00e093fd177cb9e4 /arch/sparc64/kernel/pci_psycho.c | |
parent | ee5ac9ddf2ea13be2418ac7d0ce5a930e78af013 (diff) |
[SPARC64]: Convert PCI over to generic struct iommu/strbuf.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_psycho.c')
-rw-r--r-- | arch/sparc64/kernel/pci_psycho.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c index 3725910c8b2b..253d40ec2245 100644 --- a/arch/sparc64/kernel/pci_psycho.c +++ b/arch/sparc64/kernel/pci_psycho.c | |||
@@ -269,7 +269,7 @@ static void __psycho_check_one_stc(struct pci_controller_info *p, | |||
269 | struct pci_pbm_info *pbm, | 269 | struct pci_pbm_info *pbm, |
270 | int is_pbm_a) | 270 | int is_pbm_a) |
271 | { | 271 | { |
272 | struct pci_strbuf *strbuf = &pbm->stc; | 272 | struct strbuf *strbuf = &pbm->stc; |
273 | unsigned long regbase = p->pbm_A.controller_regs; | 273 | unsigned long regbase = p->pbm_A.controller_regs; |
274 | unsigned long err_base, tag_base, line_base; | 274 | unsigned long err_base, tag_base, line_base; |
275 | u64 control; | 275 | u64 control; |
@@ -418,7 +418,7 @@ static void psycho_check_iommu_error(struct pci_controller_info *p, | |||
418 | unsigned long afar, | 418 | unsigned long afar, |
419 | enum psycho_error_type type) | 419 | enum psycho_error_type type) |
420 | { | 420 | { |
421 | struct pci_iommu *iommu = p->pbm_A.iommu; | 421 | struct iommu *iommu = p->pbm_A.iommu; |
422 | unsigned long iommu_tag[16]; | 422 | unsigned long iommu_tag[16]; |
423 | unsigned long iommu_data[16]; | 423 | unsigned long iommu_data[16]; |
424 | unsigned long flags; | 424 | unsigned long flags; |
@@ -941,7 +941,7 @@ static void psycho_scan_bus(struct pci_controller_info *p) | |||
941 | 941 | ||
942 | static void psycho_iommu_init(struct pci_controller_info *p) | 942 | static void psycho_iommu_init(struct pci_controller_info *p) |
943 | { | 943 | { |
944 | struct pci_iommu *iommu = p->pbm_A.iommu; | 944 | struct iommu *iommu = p->pbm_A.iommu; |
945 | unsigned long i; | 945 | unsigned long i; |
946 | u64 control; | 946 | u64 control; |
947 | 947 | ||
@@ -1131,7 +1131,7 @@ void psycho_init(struct device_node *dp, char *model_name) | |||
1131 | { | 1131 | { |
1132 | struct linux_prom64_registers *pr_regs; | 1132 | struct linux_prom64_registers *pr_regs; |
1133 | struct pci_controller_info *p; | 1133 | struct pci_controller_info *p; |
1134 | struct pci_iommu *iommu; | 1134 | struct iommu *iommu; |
1135 | struct property *prop; | 1135 | struct property *prop; |
1136 | u32 upa_portid; | 1136 | u32 upa_portid; |
1137 | int is_pbm_a; | 1137 | int is_pbm_a; |
@@ -1154,7 +1154,7 @@ void psycho_init(struct device_node *dp, char *model_name) | |||
1154 | prom_printf("PSYCHO: Fatal memory allocation error.\n"); | 1154 | prom_printf("PSYCHO: Fatal memory allocation error.\n"); |
1155 | prom_halt(); | 1155 | prom_halt(); |
1156 | } | 1156 | } |
1157 | iommu = kzalloc(sizeof(struct pci_iommu), GFP_ATOMIC); | 1157 | iommu = kzalloc(sizeof(struct iommu), GFP_ATOMIC); |
1158 | if (!iommu) { | 1158 | if (!iommu) { |
1159 | prom_printf("PSYCHO: Fatal memory allocation error.\n"); | 1159 | prom_printf("PSYCHO: Fatal memory allocation error.\n"); |
1160 | prom_halt(); | 1160 | prom_halt(); |