2007-11-17 20:14:51 +03:00
|
|
|
/* Declarations for use by board files for creating devices. */
|
|
|
|
|
|
|
|
#ifndef HW_BOARDS_H
|
|
|
|
#define HW_BOARDS_H
|
|
|
|
|
2009-07-15 15:48:21 +04:00
|
|
|
#include "qdev.h"
|
|
|
|
|
2009-05-13 20:56:25 +04:00
|
|
|
typedef void QEMUMachineInitFunc(ram_addr_t ram_size,
|
2009-01-16 22:04:14 +03:00
|
|
|
const char *boot_device,
|
2007-11-18 11:46:58 +03:00
|
|
|
const char *kernel_filename,
|
|
|
|
const char *kernel_cmdline,
|
|
|
|
const char *initrd_filename,
|
|
|
|
const char *cpu_model);
|
2007-11-17 20:14:51 +03:00
|
|
|
|
|
|
|
typedef struct QEMUMachine {
|
|
|
|
const char *name;
|
|
|
|
const char *desc;
|
|
|
|
QEMUMachineInitFunc *init;
|
2008-09-28 22:55:17 +04:00
|
|
|
int use_scsi;
|
2008-10-08 00:39:39 +04:00
|
|
|
int max_cpus;
|
2009-05-22 05:41:01 +04:00
|
|
|
int is_default;
|
2009-07-15 15:48:21 +04:00
|
|
|
CompatProperty *compat_props;
|
2007-11-17 20:14:51 +03:00
|
|
|
struct QEMUMachine *next;
|
|
|
|
} QEMUMachine;
|
|
|
|
|
|
|
|
int qemu_register_machine(QEMUMachine *m);
|
|
|
|
|
2009-02-11 18:21:54 +03:00
|
|
|
extern QEMUMachine *current_machine;
|
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
#endif
|