qdev: add creation function that may fail
[qemu/mdroth.git] / arch_init.h
blob17c9164d394bbb64fb91103eb546ceb57a853d83
1 #ifndef QEMU_ARCH_INIT_H
2 #define QEMU_ARCH_INIT_H
4 extern const char arch_config_name[];
6 enum {
7 QEMU_ARCH_ALL = -1,
8 QEMU_ARCH_ALPHA = 1,
9 QEMU_ARCH_ARM = 2,
10 QEMU_ARCH_CRIS = 4,
11 QEMU_ARCH_I386 = 8,
12 QEMU_ARCH_M68K = 16,
13 QEMU_ARCH_MICROBLAZE = 32,
14 QEMU_ARCH_MIPS = 64,
15 QEMU_ARCH_PPC = 128,
16 QEMU_ARCH_S390X = 256,
17 QEMU_ARCH_SH4 = 512,
18 QEMU_ARCH_SPARC = 1024,
21 extern const uint32_t arch_type;
23 void select_soundhw(const char *optarg);
24 int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque);
25 int ram_load(QEMUFile *f, void *opaque, int version_id);
26 void do_acpitable_option(const char *optarg);
27 void do_smbios_option(const char *optarg);
28 void cpudef_init(void);
29 int audio_available(void);
30 void audio_init(qemu_irq *isa_pic, PCIBus *pci_bus);
31 int kvm_available(void);
32 int xen_available(void);
34 #endif