1 /* Declarations for use by board files for creating devices. */
6 #include "sysemu/blockdev.h"
9 #define DEFAULT_MACHINE_OPTIONS \
12 typedef struct QEMUMachineInitArgs
{
14 const char *boot_device
;
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 struct QEMUMachine
{
29 QEMUMachineInitFunc
*init
;
30 QEMUMachineResetFunc
*reset
;
31 BlockInterfaceType block_default_type
;
33 unsigned int no_serial
:1,
40 const char *default_machine_opts
;
41 const char *boot_order
;
42 GlobalProperty
*compat_props
;
43 struct QEMUMachine
*next
;
44 const char *hw_version
;
47 int qemu_register_machine(QEMUMachine
*m
);
48 QEMUMachine
*find_default_machine(void);
50 extern QEMUMachine
*current_machine
;