Expand OpenFirmware API with ofw_bus_node_status_okay
authorwma <wma@FreeBSD.org>
Wed, 25 Jan 2017 10:28:21 +0000 (10:28 +0000)
committerwma <wma@FreeBSD.org>
Wed, 25 Jan 2017 10:28:21 +0000 (10:28 +0000)
commit5b53c9909292f1fba12b98de623063adaa1298a4
treefa0349cada7357dbb62966a92a361d0e70e48310
parentfdd5dc9c11dd39052099094062e5d9253aee1651
Expand OpenFirmware API with ofw_bus_node_status_okay
 method

Method could be used before we can access device_t structure.
As per simple phandle_t handle we can access FDT to check
if specified node has been enabled.
It will be used in Marvell's common configuration code.

Submitted by:          Konrad Adamczyk <ka@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          Stormshield
Reviewed by:           zbb, meloun-miracle-cz
Differential revision: https://reviews.freebsd.org/D9218
sys/dev/ofw/ofw_bus_subr.c
sys/dev/ofw/ofw_bus_subr.h