Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143688947
D43428.id132707.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D43428.id132707.diff
View Options
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -103,6 +103,12 @@
static int acpi_pcib_acpi_release_resource(device_t dev,
device_t child, int type, int rid,
struct resource *r);
+static int acpi_pcib_acpi_activate_resource(device_t dev,
+ device_t child, int type, int rid,
+ struct resource *r);
+static int acpi_pcib_acpi_deactivate_resource(device_t dev,
+ device_t child, int type, int rid,
+ struct resource *r);
#endif
#endif
static int acpi_pcib_request_feature(device_t pcib, device_t dev,
@@ -128,11 +134,13 @@
#endif
#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
DEVMETHOD(bus_release_resource, acpi_pcib_acpi_release_resource),
+ DEVMETHOD(bus_activate_resource, acpi_pcib_acpi_activate_resource),
+ DEVMETHOD(bus_deactivate_resource, acpi_pcib_acpi_deactivate_resource),
#else
DEVMETHOD(bus_release_resource, bus_generic_release_resource),
-#endif
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
+#endif
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
DEVMETHOD(bus_get_cpus, acpi_pcib_get_cpus),
@@ -764,6 +772,31 @@
return (pci_domain_release_bus(sc->ap_segment, child, rid, r));
return (bus_generic_release_resource(dev, child, type, rid, r));
}
+
+int
+acpi_pcib_acpi_activate_resource(device_t dev, device_t child, int type, int rid,
+ struct resource *r)
+{
+ struct acpi_hpcib_softc *sc;
+
+ sc = device_get_softc(dev);
+ if (type == PCI_RES_BUS)
+ return (pci_domain_activate_bus(sc->ap_segment, child, rid, r));
+ return (bus_generic_activate_resource(dev, child, type, rid, r));
+}
+
+int
+acpi_pcib_acpi_deactivate_resource(device_t dev, device_t child, int type,
+ int rid, struct resource *r)
+{
+ struct acpi_hpcib_softc *sc;
+
+ sc = device_get_softc(dev);
+ if (type == PCI_RES_BUS)
+ return (pci_domain_deactivate_bus(sc->ap_segment, child, rid,
+ r));
+ return (bus_generic_deactivate_resource(dev, child, type, rid, r));
+}
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 6:53 AM (29 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28198111
Default Alt Text
D43428.id132707.diff (2 KB)
Attached To
Mode
D43428: acpi_pcib: Use pci_domain_[de]activate_bus for PCI_RES_BUS resources
Attached
Detach File
Event Timeline
Log In to Comment