[SPARC64] PCI: Use common routine to fetch PBM properties.
[deliverable/linux.git] / arch / sparc64 / kernel / pci_common.c
index 1e6aeedf43c4201672e1f6ea61275f44f3dcd687..b1168bfa16fb10a144af700cc1d09e17a77fc7c0 100644 (file)
 
 #include "pci_impl.h"
 
+void pci_get_pbm_props(struct pci_pbm_info *pbm)
+{
+       const u32 *val = of_get_property(pbm->prom_node, "bus-range", NULL);
+
+       pbm->pci_first_busno = val[0];
+       pbm->pci_last_busno = val[1];
+
+       val = of_get_property(pbm->prom_node, "ino-bitmap", NULL);
+       if (val) {
+               pbm->ino_bitmap = (((u64)val[1] << 32UL) |
+                                  ((u64)val[0] <<  0UL));
+       }
+}
+
 static void pci_register_legacy_regions(struct resource *io_res,
                                        struct resource *mem_res)
 {
This page took 0.031537 seconds and 5 git commands to generate.