Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144985
b: refs/heads/master
c: 397717c
h: refs/heads/master
i:
  144983: 05b4c8b
v: v3
  • Loading branch information
Stephen Rothwell x authored and Benjamin Herrenschmidt committed May 15, 2009
1 parent 45b9a19 commit c061947
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93f1cc609c702a83e44da51cabdd353b20c24f79
refs/heads/master: 397717c578a5e02cf76b6c99c68f50fee94b59f8
4 changes: 0 additions & 4 deletions trunk/arch/powerpc/include/asm/iseries/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ struct vio_dev;
struct device_node;
struct iommu_table;

/* Creates table for an individual device node */
extern void iommu_devnode_init_iSeries(struct pci_dev *pdev,
struct device_node *dn);

/* Get table parameters from HV */
extern void iommu_table_getparms_iSeries(unsigned long busno,
unsigned char slotno, unsigned char virtbus,
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/platforms/iseries/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ static struct iommu_table *iommu_table_find(struct iommu_table * tbl)
}


void iommu_devnode_init_iSeries(struct pci_dev *pdev, struct device_node *dn)
static void pci_dma_dev_setup_iseries(struct pci_dev *pdev)
{
struct iommu_table *tbl;
struct device_node *dn = pdev->sysdata;
struct pci_dn *pdn = PCI_DN(dn);
const u32 *lsn = of_get_property(dn, "linux,logical-slot-number", NULL);

Expand All @@ -194,6 +195,8 @@ void iommu_devnode_init_iSeries(struct pci_dev *pdev, struct device_node *dn)
kfree(tbl);
pdev->dev.archdata.dma_data = pdn->iommu_table;
}
#else
#define pci_dma_dev_setup_iseries NULL
#endif

static struct iommu_table veth_iommu_table;
Expand Down Expand Up @@ -251,5 +254,6 @@ void iommu_init_early_iSeries(void)
ppc_md.tce_build = tce_build_iSeries;
ppc_md.tce_free = tce_free_iSeries;

ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_iseries;
set_pci_dma_ops(&dma_iommu_ops);
}
1 change: 0 additions & 1 deletion trunk/arch/powerpc/platforms/iseries/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ void __init iSeries_pcibios_fixup_resources(struct pci_dev *pdev)
pdev->sysdata = node;
allocate_device_bars(pdev);
iseries_device_information(pdev, bus, *sub_bus);
iommu_devnode_init_iSeries(pdev, node);
}

/*
Expand Down

0 comments on commit c061947

Please sign in to comment.