aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_schizo.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-04-27 00:08:21 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-27 00:08:21 -0400
commit16ce82d846f2e6b652a064f91c5019cfe8682be4 (patch)
tree9100d2baface8ec8d5b7911e00e093fd177cb9e4 /arch/sparc64/kernel/pci_schizo.c
parentee5ac9ddf2ea13be2418ac7d0ce5a930e78af013 (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_schizo.c')
-rw-r--r--arch/sparc64/kernel/pci_schizo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c
index 47a5aa94dcae..91a7385e5d32 100644
--- a/arch/sparc64/kernel/pci_schizo.c
+++ b/arch/sparc64/kernel/pci_schizo.c
@@ -279,7 +279,7 @@ struct pci_pbm_info *pbm_for_ino(struct pci_controller_info *p, u32 ino)
279static void __schizo_check_stc_error_pbm(struct pci_pbm_info *pbm, 279static void __schizo_check_stc_error_pbm(struct pci_pbm_info *pbm,
280 enum schizo_error_type type) 280 enum schizo_error_type type)
281{ 281{
282 struct pci_strbuf *strbuf = &pbm->stc; 282 struct strbuf *strbuf = &pbm->stc;
283 unsigned long regbase = pbm->pbm_regs; 283 unsigned long regbase = pbm->pbm_regs;
284 unsigned long err_base, tag_base, line_base; 284 unsigned long err_base, tag_base, line_base;
285 u64 control; 285 u64 control;
@@ -387,7 +387,7 @@ static void __schizo_check_stc_error_pbm(struct pci_pbm_info *pbm,
387static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm, 387static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
388 enum schizo_error_type type) 388 enum schizo_error_type type)
389{ 389{
390 struct pci_iommu *iommu = pbm->iommu; 390 struct iommu *iommu = pbm->iommu;
391 unsigned long iommu_tag[16]; 391 unsigned long iommu_tag[16];
392 unsigned long iommu_data[16]; 392 unsigned long iommu_data[16];
393 unsigned long flags; 393 unsigned long flags;
@@ -1308,7 +1308,7 @@ static void schizo_pbm_strbuf_init(struct pci_pbm_info *pbm)
1308 1308
1309static void schizo_pbm_iommu_init(struct pci_pbm_info *pbm) 1309static void schizo_pbm_iommu_init(struct pci_pbm_info *pbm)
1310{ 1310{
1311 struct pci_iommu *iommu = pbm->iommu; 1311 struct iommu *iommu = pbm->iommu;
1312 unsigned long i, tagbase, database; 1312 unsigned long i, tagbase, database;
1313 struct property *prop; 1313 struct property *prop;
1314 u32 vdma[2], dma_mask; 1314 u32 vdma[2], dma_mask;
@@ -1580,7 +1580,7 @@ static inline int portid_compare(u32 x, u32 y, int chip_type)
1580static void __schizo_init(struct device_node *dp, char *model_name, int chip_type) 1580static void __schizo_init(struct device_node *dp, char *model_name, int chip_type)
1581{ 1581{
1582 struct pci_controller_info *p; 1582 struct pci_controller_info *p;
1583 struct pci_iommu *iommu; 1583 struct iommu *iommu;
1584 u32 portid; 1584 u32 portid;
1585 1585
1586 portid = of_getintprop_default(dp, "portid", 0xff); 1586 portid = of_getintprop_default(dp, "portid", 0xff);
@@ -1605,13 +1605,13 @@ static void __schizo_init(struct device_node *dp, char *model_name, int chip_typ
1605 if (!p) 1605 if (!p)
1606 goto memfail; 1606 goto memfail;
1607 1607
1608 iommu = kzalloc(sizeof(struct pci_iommu), GFP_ATOMIC); 1608 iommu = kzalloc(sizeof(struct iommu), GFP_ATOMIC);
1609 if (!iommu) 1609 if (!iommu)
1610 goto memfail; 1610 goto memfail;
1611 1611
1612 p->pbm_A.iommu = iommu; 1612 p->pbm_A.iommu = iommu;
1613 1613
1614 iommu = kzalloc(sizeof(struct pci_iommu), GFP_ATOMIC); 1614 iommu = kzalloc(sizeof(struct iommu), GFP_ATOMIC);
1615 if (!iommu) 1615 if (!iommu)
1616 goto memfail; 1616 goto memfail;
1617 1617