Thread (6 messages) 6 messages, 4 authors, 2011-07-04

Re: [PATCH v2 02/19] OpenRISC: Device tree

From: Benjamin Herrenschmidt <hidden>
Date: 2011-07-03 21:39:58
Also in: linux-arch, lkml

On Sun, 2011-07-03 at 14:51 -0600, Grant Likely wrote:
quoted
+
+#ifdef CONFIG_PCI
+/*
+ * PCI <-> OF matching functions
+ * (XXX should these be here?)
+ */
+struct pci_bus;
+struct pci_dev;
+extern int pci_device_from_OF_node(struct device_node *node,
+                                       u8 *bus, u8 *devfn);
+extern struct device_node *pci_busdev_to_OF_node(struct pci_bus
*bus,
quoted
+                                                       int devfn);
+extern struct device_node *pci_device_to_OF_node(struct pci_dev
*dev);
quoted
+extern void pci_create_OF_bus_map(void);
+#endif
Don't copy these from powermac or microblaze. the OF_bus_map is
something that should not spread :-)

You get all you need of the above from generic code with my patches to
PCI <-> OF matching, which should be in linux-next and are going to be
merged in the next merge window.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help