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 | d77f2092ceebaba115e6be53410428f6f5f6ae83 (patch) | |
tree | 7ef42f41d2c2ca7060e9261236ce5ab27adf3d1e /sys/kern/bus_if.m | |
parent | fef01f0498aa7b256bc37bbf28ee0e8ac9b2536f (diff) | |
download | src-d77f2092ceebaba115e6be53410428f6f5f6ae83.tar.gz src-d77f2092ceebaba115e6be53410428f6f5f6ae83.zip |
new-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE
The public bus_map/unmap_resource() API still accepts both forms, but
the internal kobj methods no longer pass the argument.
Implementations which need the type now use rman_get_type() to fetch
the value from the allocated resource.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44129
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r-- | sys/kern/bus_if.m | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 497b98ca4601..375aeebd1835 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -332,7 +332,6 @@ METHOD int activate_resource { * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource - * @param _type the type of resource * @param _r the resource to map * @param _args optional attributes of the mapping * @param _map the mapping @@ -340,7 +339,6 @@ METHOD int activate_resource { METHOD int map_resource { device_t _dev; device_t _child; - int _type; struct resource *_r; struct resource_map_request *_args; struct resource_map *_map; @@ -356,14 +354,12 @@ METHOD int map_resource { * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource - * @param _type the type of resource * @param _r the resource * @param _map the mapping to release */ METHOD int unmap_resource { device_t _dev; device_t _child; - int _type; struct resource *_r; struct resource_map *_map; } DEFAULT bus_generic_unmap_resource; |