Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102745947
D44123.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
D44123.diff
View Options
diff --git a/sys/dev/bhnd/bhndb/bhndb.c b/sys/dev/bhnd/bhndb/bhndb.c
--- a/sys/dev/bhnd/bhndb/bhndb.c
+++ b/sys/dev/bhnd/bhndb/bhndb.c
@@ -1005,6 +1005,7 @@
return (NULL);
rman_set_rid(rv, *rid);
+ rman_set_type(rv, type);
/* Activate */
if (flags & RF_ACTIVE) {
diff --git a/sys/dev/dpaa/fman.c b/sys/dev/dpaa/fman.c
--- a/sys/dev/dpaa/fman.c
+++ b/sys/dev/dpaa/fman.c
@@ -191,6 +191,7 @@
if (res == NULL)
return (NULL);
rman_set_rid(res, *rid);
+ rman_set_type(res, type);
if ((flags & RF_ACTIVE) != 0 && bus_activate_resource(
child, type, *rid, res) != 0) {
rman_release_resource(res);
diff --git a/sys/dev/pci/pci_iov.c b/sys/dev/pci/pci_iov.c
--- a/sys/dev/pci/pci_iov.c
+++ b/sys/dev/pci/pci_iov.c
@@ -1049,6 +1049,7 @@
}
rman_set_rid(res, *rid);
+ rman_set_type(res, SYS_RES_MEMORY);
if (flags & RF_ACTIVE) {
error = bus_activate_resource(child, SYS_RES_MEMORY, *rid, res);
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -727,6 +727,7 @@
rman_get_start(res), rman_get_end(res), *rid,
pcib_child_name(child));
rman_set_rid(res, *rid);
+ rman_set_type(res, PCI_RES_BUS);
return (res);
}
@@ -1930,6 +1931,7 @@
w->name, rman_get_start(res), rman_get_end(res), *rid,
pcib_child_name(child));
rman_set_rid(res, *rid);
+ rman_set_type(res, type);
if (flags & RF_ACTIVE) {
if (bus_activate_resource(child, type, *rid, res) != 0) {
diff --git a/sys/dev/pci/pci_subr.c b/sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c
+++ b/sys/dev/pci/pci_subr.c
@@ -344,6 +344,7 @@
return (NULL);
rman_set_rid(res, *rid);
+ rman_set_type(res, PCI_RES_BUS);
return (res);
}
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -4250,6 +4250,7 @@
if (r == NULL)
return (NULL);
rman_set_rid(r, *rid);
+ rman_set_type(r, type);
if (flags & RF_ACTIVE) {
if (bus_activate_resource(child, type, *rid, r) != 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 3:35 PM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14681630
Default Alt Text
D44123.diff (2 KB)
Attached To
Mode
D44123: sys: Set the type of allocated bus resources
Attached
Detach File
Event Timeline
Log In to Comment