pci <-> device node mapping

Todd Inglett tinglett at vnet.ibm.com
Thu Jun 19 05:36:53 EST 2003


On Tue, 2003-06-17 at 00:42, Anton Blanchard wrote:
> Hi,
>
> I put together a PCI domain patch for 2.5 which removed some of the
> complexity in our pci code. Im now wondering if there is any reason for
> us to map from pci dev -> OF node -> phb:
>
> #define PCI_GET_PHB_PTR(dev)    (((struct device_node *)(dev)->sysdata)->phb)
>
> >From memory the main reason for this was for EEH, but we no longer
> need it for this.

The device_node contains a ptr to the tce table.  I suppose sysdata
could point directly to it, or you could invent some other external
means to find it.
--
Todd Inglett <tinglett at vnet.ibm.com>


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list