Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ofw/ofwpci.c
Show First 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | ofw_pci_bus_get_bus_tag(device_t bus, device_t child) | ||||
return (&bs_le_tag); | return (&bs_le_tag); | ||||
} | } | ||||
#endif | #endif | ||||
static int | static int | ||||
ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, | ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, | ||||
struct resource *res) | struct resource *res) | ||||
{ | { | ||||
struct ofw_pci_softc *sc; | |||||
vm_size_t psize; | vm_size_t psize; | ||||
sc = device_get_softc(bus); | |||||
if (type != SYS_RES_IOPORT && type != SYS_RES_MEMORY) { | if (type != SYS_RES_IOPORT && type != SYS_RES_MEMORY) { | ||||
return (bus_generic_deactivate_resource(bus, child, type, rid, | return (bus_generic_deactivate_resource(bus, child, type, rid, | ||||
res)); | res)); | ||||
} | } | ||||
psize = rman_get_size(res); | psize = rman_get_size(res); | ||||
pmap_unmapdev((vm_offset_t)rman_get_virtual(res), psize); | pmap_unmapdev((vm_offset_t)rman_get_virtual(res), psize); | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |