linux-user: arg_table need not have global scope
[qemu/ar7.git] / hw / boards.h
bloba2e0a544973fc79e7d6f0926a3a08f648094d3bf
1 /* Declarations for use by board files for creating devices. */
3 #ifndef HW_BOARDS_H
4 #define HW_BOARDS_H
6 #include "qdev.h"
8 typedef void QEMUMachineInitFunc(ram_addr_t ram_size,
9 const char *boot_device,
10 const char *kernel_filename,
11 const char *kernel_cmdline,
12 const char *initrd_filename,
13 const char *cpu_model);
15 typedef void QEMUMachineResetFunc(void);
17 typedef struct QEMUMachine {
18 const char *name;
19 const char *alias;
20 const char *desc;
21 QEMUMachineInitFunc *init;
22 QEMUMachineResetFunc *reset;
23 int use_scsi;
24 int max_cpus;
25 unsigned int no_serial:1,
26 no_parallel:1,
27 use_virtcon:1,
28 no_floppy:1,
29 no_cdrom:1,
30 no_sdcard:1;
31 int is_default;
32 const char *default_machine_opts;
33 GlobalProperty *compat_props;
34 struct QEMUMachine *next;
35 const char *hw_version;
36 } QEMUMachine;
38 int qemu_register_machine(QEMUMachine *m);
39 QEMUMachine *find_default_machine(void);
41 extern QEMUMachine *current_machine;
43 #endif