]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
device: add device_get_property and device_has_property
authorBartlomiej Grzesik <bag@semihalf.com>
Fri, 30 Jul 2021 08:57:06 +0000 (10:57 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Mon, 20 Sep 2021 15:17:57 +0000 (17:17 +0200)
commit3f9a00e3b577dcca57e331842e0baf2dbdf9325f
treea98e04816c3daab6ff32ea9ad881bd85f0aa9010
parentb91fc6c43a81d3b760fb570c8439a922e536d7e6
device: add device_get_property and device_has_property

Generialize bus specific property accessors. Those functions allow driver code
to access device specific information.

Currently there is only support for FDT and ACPI buses.

Reviewed by: manu, mw
Sponsored by: Semihalf
Differential revision: https://reviews.freebsd.org/D31597
share/man/man9/BUS_GET_PROPERTY.9 [new file with mode: 0644]
share/man/man9/Makefile
share/man/man9/device_get_property.9 [new file with mode: 0644]
sys/dev/acpica/acpi.c
sys/dev/fdt/simplebus.c
sys/kern/bus_if.m
sys/kern/subr_bus.c
sys/sys/bus.h