]> Git Repo - qemu.git/blob - hw/boards.h
janitor: do not rely on indirect inclusions of or from qemu-char.h
[qemu.git] / hw / boards.h
1 /* Declarations for use by board files for creating devices.  */
2
3 #ifndef HW_BOARDS_H
4 #define HW_BOARDS_H
5
6 #include "blockdev.h"
7 #include "qdev.h"
8
9 typedef struct QEMUMachineInitArgs {
10     ram_addr_t ram_size;
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;
17
18 typedef void QEMUMachineInitFunc(QEMUMachineInitArgs *args);
19
20 typedef void QEMUMachineResetFunc(void);
21
22 typedef struct QEMUMachine {
23     const char *name;
24     const char *alias;
25     const char *desc;
26     QEMUMachineInitFunc *init;
27     QEMUMachineResetFunc *reset;
28     BlockInterfaceType block_default_type;
29     int max_cpus;
30     unsigned int no_serial:1,
31         no_parallel:1,
32         use_virtcon:1,
33         no_floppy:1,
34         no_cdrom:1,
35         no_sdcard:1;
36     int is_default;
37     const char *default_machine_opts;
38     GlobalProperty *compat_props;
39     struct QEMUMachine *next;
40     const char *hw_version;
41 } QEMUMachine;
42
43 int qemu_register_machine(QEMUMachine *m);
44 QEMUMachine *find_default_machine(void);
45
46 extern QEMUMachine *current_machine;
47
48 #endif
This page took 0.0275879999999999 seconds and 4 git commands to generate.