@@ -132,12 +131,13 @@ pc->pc_bsh = sc->sc_bsh; #ifdef PCI_NETBSD_CONFIGURE - pc->pc_ioext = extent_create("pciio", 0x00001000, 0x01ffffff, - NULL, 0, EX_NOWAIT); - pc->pc_memext = extent_create("pcimem", 0x12000000, 0x13ffffff, - NULL, 0, EX_NOWAIT); - pci_configure_bus(pc, pc->pc_ioext, pc->pc_memext, NULL, 0, - mips_cache_info.mci_dcache_align); + struct pciconf_resources *pcires = pciconf_resource_init(); + pciconf_resource_add(pcires, PCICONF_RESOURCE_IO, + 0x00001000, 0x02000000 - 0x00001000); + pciconf_resource_add(pcires, PCICONF_RESOURCE_MEM, + 0x12000000, 0x02000000); + pci_configure_bus(pc, pcires, 0, mips_cache_info.mci_dcache_align); + pciconf_resource_fini(pcires); #endif memset(&pba, 0, sizeof(pba)); pba.pba_memt = >_memt;