1 /* Declarations for use by board files for creating devices. */
6 #include "sysemu/blockdev.h"
9 typedef struct QEMUMachine QEMUMachine
;
11 typedef struct QEMUMachineInitArgs
{
12 const QEMUMachine
*machine
;
14 const char *boot_order
;
15 const char *kernel_filename
;
16 const char *kernel_cmdline
;
17 const char *initrd_filename
;
18 const char *cpu_model
;
19 } QEMUMachineInitArgs
;
21 typedef void QEMUMachineInitFunc(QEMUMachineInitArgs
*args
);
23 typedef void QEMUMachineResetFunc(void);
25 typedef void QEMUMachineHotAddCPUFunc(const int64_t id
, Error
**errp
);
31 QEMUMachineInitFunc
*init
;
32 QEMUMachineResetFunc
*reset
;
33 QEMUMachineHotAddCPUFunc
*hot_add_cpu
;
34 BlockInterfaceType block_default_type
;
36 unsigned int no_serial
:1,
44 const char *default_machine_opts
;
45 const char *default_boot_order
;
46 GlobalProperty
*compat_props
;
47 struct QEMUMachine
*next
;
48 const char *hw_version
;
51 int qemu_register_machine(QEMUMachine
*m
);
52 QEMUMachine
*find_default_machine(void);
54 extern QEMUMachine
*current_machine
;