Date: Fri, 6 Dec 2024 22:29:20 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a553e07c4ddc - main - new-bus: Deprecate bus_generic_(attach|probe) Message-ID: <202412062229.4B6MTKdv072381@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a553e07c4ddc383bcbe702f064017ba21da5b46d commit a553e07c4ddc383bcbe702f064017ba21da5b46d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2024-12-06 22:27:01 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2024-12-06 22:27:01 +0000 new-bus: Deprecate bus_generic_(attach|probe) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47676 --- sys/sys/bus.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/sys/bus.h b/sys/sys/bus.h index c712e37fd34d..38834bcf5a8e 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -442,7 +442,8 @@ struct resource * rman_res_t count, u_int flags); int bus_generic_translate_resource(device_t dev, int type, rman_res_t start, rman_res_t *newstart); -int bus_generic_attach(device_t dev); +int bus_generic_attach(device_t dev) + __deprecated1("Use bus_attach_children instead"); int bus_generic_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu); int bus_generic_child_location(device_t dev, device_t child, struct sbuf *sb); @@ -478,7 +479,8 @@ int bus_print_child_header(device_t dev, device_t child); int bus_print_child_domain(device_t dev, device_t child); int bus_print_child_footer(device_t dev, device_t child); int bus_generic_print_child(device_t dev, device_t child); -int bus_generic_probe(device_t dev); +int bus_generic_probe(device_t dev) + __deprecated1("Use bus_identify_children instead"); int bus_generic_read_ivar(device_t dev, device_t child, int which, uintptr_t *result); int bus_generic_release_resource(device_t bus, device_t child,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412062229.4B6MTKdv072381>