1 /* Declarations for use by board files for creating devices. */
6 #include "sysemu/blockdev.h"
9 typedef struct QEMUMachineInitArgs
{
11 const char *boot_device
;
12 const char *kernel_filename
;
13 const char *kernel_cmdline
;
14 const char *initrd_filename
;
15 const char *cpu_model
;
16 } QEMUMachineInitArgs
;
18 typedef void QEMUMachineInitFunc(QEMUMachineInitArgs
*args
);
20 typedef void QEMUMachineResetFunc(void);
22 typedef struct QEMUMachine
{
26 QEMUMachineInitFunc
*init
;
27 QEMUMachineResetFunc
*reset
;
28 BlockInterfaceType block_default_type
;
30 unsigned int no_serial
:1,
37 const char *default_machine_opts
;
38 GlobalProperty
*compat_props
;
39 struct QEMUMachine
*next
;
40 const char *hw_version
;
43 int qemu_register_machine(QEMUMachine
*m
);
44 QEMUMachine
*find_default_machine(void);
46 extern QEMUMachine
*current_machine
;