root / hw / boards.h @ f40070c3
History | View | Annotate | Download (757 Bytes)
1 | 87ecb68b | pbrook | /* Declarations for use by board files for creating devices. */
|
---|---|---|---|
2 | 87ecb68b | pbrook | |
3 | 87ecb68b | pbrook | #ifndef HW_BOARDS_H
|
4 | 87ecb68b | pbrook | #define HW_BOARDS_H
|
5 | 87ecb68b | pbrook | |
6 | fbe1b595 | Paul Brook | typedef void QEMUMachineInitFunc(ram_addr_t ram_size, |
7 | 3023f332 | aliguori | const char *boot_device, |
8 | b881c2c6 | blueswir1 | const char *kernel_filename, |
9 | b881c2c6 | blueswir1 | const char *kernel_cmdline, |
10 | b881c2c6 | blueswir1 | const char *initrd_filename, |
11 | b881c2c6 | blueswir1 | const char *cpu_model); |
12 | 87ecb68b | pbrook | |
13 | 87ecb68b | pbrook | typedef struct QEMUMachine { |
14 | 87ecb68b | pbrook | const char *name; |
15 | 87ecb68b | pbrook | const char *desc; |
16 | 87ecb68b | pbrook | QEMUMachineInitFunc *init; |
17 | c9b1ae2c | blueswir1 | int use_scsi;
|
18 | b2097003 | aliguori | int max_cpus;
|
19 | 0c257437 | Anthony Liguori | int is_default;
|
20 | 87ecb68b | pbrook | struct QEMUMachine *next;
|
21 | 87ecb68b | pbrook | } QEMUMachine; |
22 | 87ecb68b | pbrook | |
23 | 87ecb68b | pbrook | int qemu_register_machine(QEMUMachine *m);
|
24 | 87ecb68b | pbrook | |
25 | 6f338c34 | aliguori | extern QEMUMachine *current_machine;
|
26 | 6f338c34 | aliguori | |
27 | 87ecb68b | pbrook | #endif |