Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107056108
D43429.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43429.diff
View Options
diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c
--- a/sys/dev/pci/pci_host_generic.c
+++ b/sys/dev/pci/pci_host_generic.c
@@ -504,9 +504,19 @@
generic_pcie_activate_resource(device_t dev, device_t child, int type,
int rid, struct resource *r)
{
+#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
+ struct generic_pcie_core_softc *sc;
+#endif
rman_res_t start, end;
int res;
+#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
+ sc = device_get_softc(dev);
+ if (type == PCI_RES_BUS) {
+ return (pci_domain_activate_bus(sc->ecam, child, rid, r));
+ }
+#endif
+
if ((res = rman_activate_resource(r)) != 0)
return (res);
@@ -529,8 +539,17 @@
generic_pcie_deactivate_resource(device_t dev, device_t child, int type,
int rid, struct resource *r)
{
+#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
+ struct generic_pcie_core_softc *sc;
+#endif
int res;
+#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
+ sc = device_get_softc(dev);
+ if (type == PCI_RES_BUS) {
+ return (pci_domain_deactivate_bus(sc->ecam, child, rid, r));
+ }
+#endif
if ((res = rman_deactivate_resource(r)) != 0)
return (res);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 11:12 AM (13 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15742038
Default Alt Text
D43429.diff (1 KB)
Attached To
Mode
D43429: pci_host_generic: Use pci_domain_[de]activate_bus for PCI_RES_BUS resources
Attached
Detach File
Event Timeline
Log In to Comment