1 /* Declarations for use by board files for creating devices. */
8 typedef struct QEMUMachineInitArgs
{
10 const char *boot_device
;
11 const char *kernel_filename
;
12 const char *kernel_cmdline
;
13 const char *initrd_filename
;
14 const char *cpu_model
;
15 } QEMUMachineInitArgs
;
17 typedef void QEMUMachineInitFunc(QEMUMachineInitArgs
*args
);
19 typedef void QEMUMachineResetFunc(void);
21 typedef struct QEMUMachine
{
25 QEMUMachineInitFunc
*init
;
26 QEMUMachineResetFunc
*reset
;
29 unsigned int no_serial
:1,
36 const char *default_machine_opts
;
37 GlobalProperty
*compat_props
;
38 struct QEMUMachine
*next
;
39 const char *hw_version
;
42 int qemu_register_machine(QEMUMachine
*m
);
43 QEMUMachine
*find_default_machine(void);
45 extern QEMUMachine
*current_machine
;