Index: sys/dev/ofw/ofwpci.h =================================================================== --- sys/dev/ofw/ofwpci.h +++ sys/dev/ofw/ofwpci.h @@ -83,5 +83,17 @@ int ofw_pci_write_ivar(device_t, device_t, int, uintptr_t); int ofw_pci_route_interrupt(device_t, device_t, int); int ofw_pci_nranges(phandle_t, struct ofw_pci_cell_info *); +int ofw_pci_activate_resource(device_t, device_t, int, int, + struct resource *); +int ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, + struct resource *res); +int ofw_pci_adjust_resource(device_t bus, device_t child, int type, + struct resource *res, rman_res_t start, rman_res_t end); +int ofw_pci_release_resource(device_t bus, device_t child, int type, int rid, + struct resource *res); +struct resource * ofw_pci_alloc_resource(device_t bus, device_t child, int type, + int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags); +int ofw_pci_translate_resource(device_t bus, int type, + rman_res_t start, rman_res_t *newstart); #endif /* _DEV_OFW_OFWPCI_H_ */ Index: sys/dev/ofw/ofwpci.c =================================================================== --- sys/dev/ofw/ofwpci.c +++ sys/dev/ofw/ofwpci.c @@ -63,22 +63,6 @@ #define PCI_INTR_PINS 4 -/* - * bus interface. - */ -static struct resource * ofw_pci_alloc_resource(device_t, device_t, - int, int *, rman_res_t, rman_res_t, rman_res_t, u_int); -static int ofw_pci_release_resource(device_t, device_t, int, int, - struct resource *); -static int ofw_pci_activate_resource(device_t, device_t, int, int, - struct resource *); -static int ofw_pci_deactivate_resource(device_t, device_t, int, int, - struct resource *); -static int ofw_pci_adjust_resource(device_t, device_t, int, - struct resource *, rman_res_t, rman_res_t); -static int ofw_pci_translate_resource(device_t bus, int type, - rman_res_t start, rman_res_t *newstart); - #ifdef __powerpc__ static bus_space_tag_t ofw_pci_bus_get_bus_tag(device_t, device_t); #endif @@ -400,7 +384,7 @@ info->size_cells)); } -static struct resource * +struct resource * ofw_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) { @@ -450,7 +434,7 @@ return (rv); } -static int +int ofw_pci_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) { @@ -481,7 +465,7 @@ return (rman_release_resource(res)); } -static int +int ofw_pci_translate_resource(device_t bus, int type, rman_res_t start, rman_res_t *newstart) { @@ -520,7 +504,7 @@ return (0); } -static int +int ofw_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) { @@ -596,7 +580,7 @@ } #endif -static int +int ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) { @@ -613,7 +597,7 @@ return (rman_deactivate_resource(res)); } -static int +int ofw_pci_adjust_resource(device_t bus, device_t child, int type, struct resource *res, rman_res_t start, rman_res_t end) {