Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/pci/pci_bus.c
| Show First 20 Lines • Show All 611 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (rman_get_type(r) == PCI_RES_BUS) | if (rman_get_type(r) == PCI_RES_BUS) | ||||
| return (pci_domain_adjust_bus(0, child, r, start, end)); | return (pci_domain_adjust_bus(0, child, r, start, end)); | ||||
| return (bus_generic_adjust_resource(dev, child, r, start, end)); | return (bus_generic_adjust_resource(dev, child, r, start, end)); | ||||
| } | } | ||||
| int | int | ||||
| legacy_pcib_release_resource(device_t dev, device_t child, int type, int rid, | legacy_pcib_release_resource(device_t dev, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| if (type == PCI_RES_BUS) | if (rman_get_type(r) == PCI_RES_BUS) | ||||
| return (pci_domain_release_bus(0, child, rid, r)); | return (pci_domain_release_bus(0, child, r)); | ||||
| return (bus_generic_release_resource(dev, child, type, rid, r)); | return (bus_generic_release_resource(dev, child, r)); | ||||
| } | } | ||||
| int | int | ||||
| legacy_pcib_activate_resource(device_t dev, device_t child, struct resource *r) | legacy_pcib_activate_resource(device_t dev, device_t child, struct resource *r) | ||||
| { | { | ||||
| if (rman_get_type(r) == PCI_RES_BUS) | if (rman_get_type(r) == PCI_RES_BUS) | ||||
| return (pci_domain_activate_bus(0, child, r)); | return (pci_domain_activate_bus(0, child, r)); | ||||
| return (bus_generic_activate_resource(dev, child, r)); | return (bus_generic_activate_resource(dev, child, r)); | ||||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||