OSDN Git Service

sysbus: Add dynamic sysbus device search
authorAlexander Graf <agraf@suse.de>
Wed, 24 Sep 2014 11:06:57 +0000 (13:06 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:14 +0000 (23:26 +0100)
commiteb5722801c84f23428c50e2336d02e400ce55deb
treecff20750e2dfd11062cc39f54349cadc5c9c8902
parentf8833a37c0c6b22ddd57b45e48cfb0f97dbd5af4
sysbus: Add dynamic sysbus device search

Sysbus devices can be spawned by C code or dynamically via the command line.
In the latter case, we need to be able to find the dynamically created devices
to do things with them.

This patch adds a search helper that makes it easy to look for dynamically
spawned sysbus devices.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/core/sysbus.c
include/hw/sysbus.h