diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-03-13 22:05:54 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-03-13 22:05:54 +0000 |
commit | 2baed46e85d33b1f99e6f96033acc85a9a6fbba4 (patch) | |
tree | b84c8a85556cbeba400cbccebda501f7787a7a41 /sys/x86/include | |
parent | d77f2092ceebaba115e6be53410428f6f5f6ae83 (diff) | |
download | src-2baed46e85d33b1f99e6f96033acc85a9a6fbba4.tar.gz src-2baed46e85d33b1f99e6f96033acc85a9a6fbba4.zip |
new-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCE
The public bus_activate/deactivate_resource() API still accepts both
forms, but the internal kobj methods no longer pass 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/D44130
Diffstat (limited to 'sys/x86/include')
-rw-r--r-- | sys/x86/include/legacyvar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/x86/include/legacyvar.h b/sys/x86/include/legacyvar.h index 789c6c55f198..4f05315c3949 100644 --- a/sys/x86/include/legacyvar.h +++ b/sys/x86/include/legacyvar.h @@ -62,10 +62,10 @@ int legacy_pcib_adjust_resource(device_t dev, device_t child, struct resource *r, rman_res_t start, rman_res_t end); int legacy_pcib_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r); -int legacy_pcib_activate_resource(device_t dev, device_t child, int type, - int rid, struct resource *r); -int legacy_pcib_deactivate_resource(device_t dev, device_t child, int type, - int rid, struct resource *r); +int legacy_pcib_activate_resource(device_t dev, device_t child, + struct resource *r); +int legacy_pcib_deactivate_resource(device_t dev, device_t child, + struct resource *r); int legacy_pcib_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, int *irqs); int legacy_pcib_alloc_msix(device_t pcib, device_t dev, int *irq); |