simplebus: Stop accepting SYS_RES_IOPORT resources

Child devices handling I/O port resources (such as PCI-e bridges)
should map those to a memory resource and pass up a request for the
translated memory resource.

Differential Revision:	https://reviews.freebsd.org/D48501
This commit is contained in:
John Baldwin
2025-01-29 10:03:37 -05:00
parent e91117fa8e
commit c06b504def
-3
View File
@@ -461,9 +461,6 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
count = rle->count;
}
if (type == SYS_RES_IOPORT)
type = SYS_RES_MEMORY;
if (type == SYS_RES_MEMORY) {
/* Remap through ranges property */
for (j = 0; j < sc->nranges; j++) {