Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pci_subr.c
| Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | |||||
| #ifdef INVARIANTS | #ifdef INVARIANTS | ||||
| d = pci_find_domain(domain); | d = pci_find_domain(domain); | ||||
| KASSERT(rman_is_region_manager(r, &d->pd_bus_rman), ("bad resource")); | KASSERT(rman_is_region_manager(r, &d->pd_bus_rman), ("bad resource")); | ||||
| #endif | #endif | ||||
| return (rman_adjust_resource(r, start, end)); | return (rman_adjust_resource(r, start, end)); | ||||
| } | } | ||||
| int | int | ||||
| pci_domain_release_bus(int domain, device_t dev, int rid, struct resource *r) | pci_domain_release_bus(int domain, device_t dev, struct resource *r) | ||||
| { | { | ||||
| #ifdef INVARIANTS | #ifdef INVARIANTS | ||||
| struct pci_domain *d; | struct pci_domain *d; | ||||
| #endif | #endif | ||||
| if (domain < 0 || domain > PCI_DOMAINMAX) | if (domain < 0 || domain > PCI_DOMAINMAX) | ||||
| return (EINVAL); | return (EINVAL); | ||||
| #ifdef INVARIANTS | #ifdef INVARIANTS | ||||
| Show All 40 Lines | |||||