Make -acpi-enable a machine specific option
[qemu/aliguori-queue.git] / hw / boards.h
blob18b6b8fe2cf1abedee1ab07f10f46c1bf1909eb4
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 struct QEMUMachine QEMUMachine;
10 typedef void QEMUMachineInitFunc(QEMUMachine *machine, QemuOpts *opts);
12 struct QEMUMachine {
13 const char *name;
14 const char *alias;
15 const char *desc;
16 QEMUMachineInitFunc *init;
17 int use_scsi;
18 int max_cpus;
19 unsigned int no_serial:1,
20 no_parallel:1,
21 use_virtcon:1,
22 no_vga:1,
23 no_floppy:1,
24 no_cdrom:1,
25 no_sdcard:1;
26 int is_default;
27 GlobalProperty *compat_props;
28 QemuOptDesc *opts_desc;
29 struct QEMUMachine *next;
32 int qemu_register_machine(QEMUMachine *m);
34 extern QEMUMachine *current_machine;
36 #define COMMON_MACHINE_OPTS() \
37 { \
38 .name = "ram_size", \
39 .type = QEMU_OPT_NUMBER, \
40 }, \
41 { \
42 .name = "kernel", \
43 .type = QEMU_OPT_STRING, \
44 }, \
45 { \
46 .name = "cmdline", \
47 .type = QEMU_OPT_STRING, \
48 }, \
49 { \
50 .name = "initrd", \
51 .type = QEMU_OPT_STRING, \
52 }, \
53 { \
54 .name = "boot_device", \
55 .type = QEMU_OPT_STRING, \
56 }, \
57 { \
58 .name = "cpu", \
59 .type = QEMU_OPT_STRING, \
62 #endif