]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make simplebus a base class of ofwbus. This allows the elimination of
authorian <ian@FreeBSD.org>
Fri, 27 Mar 2015 23:10:15 +0000 (23:10 +0000)
committerian <ian@FreeBSD.org>
Fri, 27 Mar 2015 23:10:15 +0000 (23:10 +0000)
commite2e2bd33d3725e331eaa5b037da7e071618b8774
treeb6b813988bcb1821b70172b1f43167e3d7533bfd
parent9e4025102c7759b3704fbd570b182ab7ff9db7ab
Make simplebus a base class of ofwbus.  This allows the elimination of
duplicated code in the two classes, and also allows devices in FDT-based
systems to declare simplebus as their parent and still work correctly
when the FDT data describes the device at the root of the tree rather
than as a child of a simplebus (which is common for interrupt, clock,
and power controllers).

Differential Revision: https://reviews.freebsd.org/D1990
Submitted by: Michal Meloun
sys/conf/files.powerpc
sys/dev/fdt/simplebus.c
sys/dev/fdt/simplebus.h
sys/dev/ofw/ofwbus.c