root / hw / boards.h @ f80f9ec9
History | View | Annotate | Download (767 Bytes)
1 |
/* Declarations for use by board files for creating devices. */
|
---|---|
2 |
|
3 |
#ifndef HW_BOARDS_H
|
4 |
#define HW_BOARDS_H
|
5 |
|
6 |
typedef void QEMUMachineInitFunc(ram_addr_t ram_size, |
7 |
const char *boot_device, |
8 |
const char *kernel_filename, |
9 |
const char *kernel_cmdline, |
10 |
const char *initrd_filename, |
11 |
const char *cpu_model); |
12 |
|
13 |
typedef struct QEMUMachine { |
14 |
const char *name; |
15 |
const char *desc; |
16 |
QEMUMachineInitFunc *init; |
17 |
int use_scsi;
|
18 |
int max_cpus;
|
19 |
struct QEMUMachine *next;
|
20 |
} QEMUMachine; |
21 |
|
22 |
int qemu_register_machine(QEMUMachine *m);
|
23 |
void register_machines(void); |
24 |
|
25 |
extern QEMUMachine *current_machine;
|
26 |
|
27 |
#endif
|