Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/pci/pci_bus.c
Show First 20 Lines • Show All 601 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
start = hostb_alloc_start(type, start, end, count); | start = hostb_alloc_start(type, start, end, count); | ||||
return (bus_generic_alloc_resource(dev, child, type, rid, start, end, | return (bus_generic_alloc_resource(dev, child, type, rid, start, end, | ||||
count, flags)); | count, flags)); | ||||
} | } | ||||
#if defined(NEW_PCIB) && defined(PCI_RES_BUS) | #if defined(NEW_PCIB) && defined(PCI_RES_BUS) | ||||
int | int | ||||
legacy_pcib_adjust_resource(device_t dev, device_t child, int type, | legacy_pcib_adjust_resource(device_t dev, device_t child, | ||||
struct resource *r, rman_res_t start, rman_res_t end) | struct resource *r, rman_res_t start, rman_res_t end) | ||||
{ | { | ||||
if (type == 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, type, 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, int type, int rid, | ||||
struct resource *r) | struct resource *r) | ||||
{ | { | ||||
if (type == PCI_RES_BUS) | if (type == PCI_RES_BUS) | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |