]>
Commit | Line | Data |
---|---|---|
87ecb68b PB |
1 | /* Declarations for use by board files for creating devices. */ |
2 | ||
3 | #ifndef HW_BOARDS_H | |
4 | #define HW_BOARDS_H | |
5 | ||
b6b61144 GH |
6 | #include "qdev.h" |
7 | ||
5f072e1f EH |
8 | typedef struct QEMUMachineInitArgs { |
9 | ram_addr_t ram_size; | |
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; | |
16 | ||
17 | typedef void QEMUMachineInitFunc(QEMUMachineInitArgs *args); | |
87ecb68b | 18 | |
be522029 DG |
19 | typedef void QEMUMachineResetFunc(void); |
20 | ||
87ecb68b PB |
21 | typedef struct QEMUMachine { |
22 | const char *name; | |
3f6599e6 | 23 | const char *alias; |
87ecb68b PB |
24 | const char *desc; |
25 | QEMUMachineInitFunc *init; | |
be522029 | 26 | QEMUMachineResetFunc *reset; |
c9b1ae2c | 27 | int use_scsi; |
b2097003 | 28 | int max_cpus; |
2fe0ee97 | 29 | unsigned int no_serial:1, |
986c5f78 GH |
30 | no_parallel:1, |
31 | use_virtcon:1, | |
ac33f8fa GH |
32 | no_floppy:1, |
33 | no_cdrom:1, | |
34 | no_sdcard:1; | |
0c257437 | 35 | int is_default; |
67b724e6 | 36 | const char *default_machine_opts; |
458fb679 | 37 | GlobalProperty *compat_props; |
87ecb68b | 38 | struct QEMUMachine *next; |
93bfef4c | 39 | const char *hw_version; |
87ecb68b PB |
40 | } QEMUMachine; |
41 | ||
42 | int qemu_register_machine(QEMUMachine *m); | |
2c8cffa5 | 43 | QEMUMachine *find_default_machine(void); |
87ecb68b | 44 | |
6f338c34 AL |
45 | extern QEMUMachine *current_machine; |
46 | ||
87ecb68b | 47 | #endif |