root / hw / boards.h @ fa2ddcb4
History | View | Annotate | Download (1.1 kB)
1 | 87ecb68b | pbrook | /* Declarations for use by board files for creating devices. */
|
---|---|---|---|
2 | 87ecb68b | pbrook | |
3 | 87ecb68b | pbrook | #ifndef HW_BOARDS_H
|
4 | 87ecb68b | pbrook | #define HW_BOARDS_H
|
5 | 87ecb68b | pbrook | |
6 | b6b61144 | Gerd Hoffmann | #include "qdev.h" |
7 | b6b61144 | Gerd Hoffmann | |
8 | c227f099 | Anthony Liguori | typedef void QEMUMachineInitFunc(ram_addr_t ram_size, |
9 | 3023f332 | aliguori | const char *boot_device, |
10 | b881c2c6 | blueswir1 | const char *kernel_filename, |
11 | b881c2c6 | blueswir1 | const char *kernel_cmdline, |
12 | b881c2c6 | blueswir1 | const char *initrd_filename, |
13 | b881c2c6 | blueswir1 | const char *cpu_model); |
14 | 87ecb68b | pbrook | |
15 | be522029 | David Gibson | typedef void QEMUMachineResetFunc(void); |
16 | be522029 | David Gibson | |
17 | 87ecb68b | pbrook | typedef struct QEMUMachine { |
18 | 87ecb68b | pbrook | const char *name; |
19 | 3f6599e6 | Mark McLoughlin | const char *alias; |
20 | 87ecb68b | pbrook | const char *desc; |
21 | 87ecb68b | pbrook | QEMUMachineInitFunc *init; |
22 | be522029 | David Gibson | QEMUMachineResetFunc *reset; |
23 | c9b1ae2c | blueswir1 | int use_scsi;
|
24 | b2097003 | aliguori | int max_cpus;
|
25 | 2fe0ee97 | Blue Swirl | unsigned int no_serial:1, |
26 | 986c5f78 | Gerd Hoffmann | no_parallel:1,
|
27 | 986c5f78 | Gerd Hoffmann | use_virtcon:1,
|
28 | ac33f8fa | Gerd Hoffmann | no_floppy:1,
|
29 | ac33f8fa | Gerd Hoffmann | no_cdrom:1,
|
30 | ac33f8fa | Gerd Hoffmann | no_sdcard:1;
|
31 | 0c257437 | Anthony Liguori | int is_default;
|
32 | 67b724e6 | Anthony PERARD | const char *default_machine_opts; |
33 | 458fb679 | Gerd Hoffmann | GlobalProperty *compat_props; |
34 | 87ecb68b | pbrook | struct QEMUMachine *next;
|
35 | 93bfef4c | Crístian Viana | const char *hw_version; |
36 | 87ecb68b | pbrook | } QEMUMachine; |
37 | 87ecb68b | pbrook | |
38 | 87ecb68b | pbrook | int qemu_register_machine(QEMUMachine *m);
|
39 | 2c8cffa5 | Jordan Justen | QEMUMachine *find_default_machine(void);
|
40 | 87ecb68b | pbrook | |
41 | 6f338c34 | aliguori | extern QEMUMachine *current_machine;
|
42 | 6f338c34 | aliguori | |
43 | 87ecb68b | pbrook | #endif |