-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is based on Jan's suggestion for how to do unique naming. The root device is the root of composition. All devices are reachable via child<> links from this device. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
- Loading branch information
Anthony Liguori
committed
Dec 15, 2011
1 parent
a5296ca
commit a10f07a
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "sysbus.h" | ||
|
||
static int container_initfn(SysBusDevice *dev) | ||
{ | ||
return 0; | ||
} | ||
|
||
static SysBusDeviceInfo container_info = { | ||
.init = container_initfn, | ||
.qdev.name = "container", | ||
.qdev.size = sizeof(SysBusDevice), | ||
.qdev.no_user = 1, | ||
}; | ||
|
||
static void container_init(void) | ||
{ | ||
sysbus_register_withprop(&container_info); | ||
} | ||
|
||
device_init(container_init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters