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