mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Convert machine registration to use module init functions
This cleans up quite a lot of #ifdefs, extern variables, and other ugliness. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f92f8afebe
commit
f80f9ec9a6
45 changed files with 321 additions and 263 deletions
16
hw/spitz.c
16
hw/spitz.c
|
@ -1050,24 +1050,34 @@ QEMUMachine akitapda_machine = {
|
|||
.init = akita_init,
|
||||
};
|
||||
|
||||
QEMUMachine spitzpda_machine = {
|
||||
static QEMUMachine spitzpda_machine = {
|
||||
.name = "spitz",
|
||||
.desc = "Spitz PDA (PXA270)",
|
||||
.init = spitz_init,
|
||||
};
|
||||
|
||||
QEMUMachine borzoipda_machine = {
|
||||
static QEMUMachine borzoipda_machine = {
|
||||
.name = "borzoi",
|
||||
.desc = "Borzoi PDA (PXA270)",
|
||||
.init = borzoi_init,
|
||||
};
|
||||
|
||||
QEMUMachine terrierpda_machine = {
|
||||
static QEMUMachine terrierpda_machine = {
|
||||
.name = "terrier",
|
||||
.desc = "Terrier PDA (PXA270)",
|
||||
.init = terrier_init,
|
||||
};
|
||||
|
||||
static void spitz_machine_init(void)
|
||||
{
|
||||
qemu_register_machine(&akitapda_machine);
|
||||
qemu_register_machine(&spitzpda_machine);
|
||||
qemu_register_machine(&borzoipda_machine);
|
||||
qemu_register_machine(&terrierpda_machine);
|
||||
}
|
||||
|
||||
machine_init(spitz_machine_init);
|
||||
|
||||
static SSISlaveInfo corgi_ssp_info = {
|
||||
.init = corgi_ssp_init,
|
||||
.transfer = corgi_ssp_transfer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue