aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcib_private.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-03-13 22:05:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-03-13 22:05:54 +0000
commit9dbf5b0e6876d8c93890754bcc9c748339de79c0 (patch)
treee66b390b26cf9f10c541a80c8606789649e191c1 /sys/dev/pci/pcib_private.h
parent2baed46e85d33b1f99e6f96033acc85a9a6fbba4 (diff)
downloadsrc-9dbf5b0e6876d8c93890754bcc9c748339de79c0.tar.gz
src-9dbf5b0e6876d8c93890754bcc9c748339de79c0.zip
new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE
The public bus_release_resource() API still accepts both forms, but the internal kobj method no longer passes the arguments. Implementations which need the rid or type now use rman_get_rid() or rman_get_type() to fetch the value from the allocated resource. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44131
Diffstat (limited to 'sys/dev/pci/pcib_private.h')
-rw-r--r--sys/dev/pci/pcib_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pcib_private.h b/sys/dev/pci/pcib_private.h
index c95321586ac2..65b3ed31cf94 100644
--- a/sys/dev/pci/pcib_private.h
+++ b/sys/dev/pci/pcib_private.h
@@ -158,7 +158,7 @@ struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
rman_res_t start, rman_res_t end, rman_res_t count, u_int flags);
int pci_domain_adjust_bus(int domain, device_t dev,
struct resource *r, rman_res_t start, rman_res_t end);
-int pci_domain_release_bus(int domain, device_t dev, int rid,
+int pci_domain_release_bus(int domain, device_t dev,
struct resource *r);
int pci_domain_activate_bus(int domain, device_t dev,
struct resource *r);