root / hw / boards.h @ bc927e48
History | View | Annotate | Download (1.1 kB)
1 |
/* Declarations for use by board files for creating devices. */
|
---|---|
2 |
|
3 |
#ifndef HW_BOARDS_H
|
4 |
#define HW_BOARDS_H
|
5 |
|
6 |
#include "qdev.h" |
7 |
|
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); |
18 |
|
19 |
typedef void QEMUMachineResetFunc(void); |
20 |
|
21 |
typedef struct QEMUMachine { |
22 |
const char *name; |
23 |
const char *alias; |
24 |
const char *desc; |
25 |
QEMUMachineInitFunc *init; |
26 |
QEMUMachineResetFunc *reset; |
27 |
int use_scsi;
|
28 |
int max_cpus;
|
29 |
unsigned int no_serial:1, |
30 |
no_parallel:1,
|
31 |
use_virtcon:1,
|
32 |
no_floppy:1,
|
33 |
no_cdrom:1,
|
34 |
no_sdcard:1;
|
35 |
int is_default;
|
36 |
const char *default_machine_opts; |
37 |
GlobalProperty *compat_props; |
38 |
struct QEMUMachine *next;
|
39 |
const char *hw_version; |
40 |
} QEMUMachine; |
41 |
|
42 |
int qemu_register_machine(QEMUMachine *m);
|
43 |
QEMUMachine *find_default_machine(void);
|
44 |
|
45 |
extern QEMUMachine *current_machine;
|
46 |
|
47 |
#endif
|