blob: f6733b7cc9e21e5f944201dd8070a8853b200574 [file] [log] [blame]
pbrook87ecb682007-11-17 17:14:51 +00001/* Declarations for use by board files for creating devices. */
2
3#ifndef HW_BOARDS_H
4#define HW_BOARDS_H
5
Paul Brookfbe1b592009-05-13 17:56:25 +01006typedef void QEMUMachineInitFunc(ram_addr_t ram_size,
aliguori3023f332009-01-16 19:04:14 +00007 const char *boot_device,
blueswir1b881c2c2007-11-18 08:46:58 +00008 const char *kernel_filename,
9 const char *kernel_cmdline,
10 const char *initrd_filename,
11 const char *cpu_model);
pbrook87ecb682007-11-17 17:14:51 +000012
13typedef struct QEMUMachine {
14 const char *name;
15 const char *desc;
16 QEMUMachineInitFunc *init;
blueswir1c9b1ae22008-09-28 18:55:17 +000017 int use_scsi;
aliguorib2097002008-10-07 20:39:39 +000018 int max_cpus;
Anthony Liguori0c257432009-05-21 20:41:01 -050019 int is_default;
pbrook87ecb682007-11-17 17:14:51 +000020 struct QEMUMachine *next;
21} QEMUMachine;
22
23int qemu_register_machine(QEMUMachine *m);
24
aliguori6f338c32009-02-11 15:21:54 +000025extern QEMUMachine *current_machine;
26
pbrook87ecb682007-11-17 17:14:51 +000027#endif