• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Declarations for use by board files for creating devices.  */
2 
3 #ifndef HW_BOARDS_H
4 #define HW_BOARDS_H
5 
6 #include "exec/cpu-common.h"
7 
8 typedef void QEMUMachineInitFunc(ram_addr_t ram_size,
9                                  const char *boot_device,
10                                  const char *kernel_filename,
11                                  const char *kernel_cmdline,
12                                  const char *initrd_filename,
13                                  const char *cpu_model);
14 
15 typedef struct QEMUMachine {
16     const char *name;
17     const char *desc;
18     QEMUMachineInitFunc *init;
19     int use_scsi;
20     int max_cpus;
21     int is_default;
22     struct QEMUMachine *next;
23 } QEMUMachine;
24 
25 int qemu_register_machine(QEMUMachine *m);
26 
27 extern QEMUMachine *current_machine;
28 
29 /* android_arm.c */
30 extern QEMUMachine android_arm_machine;
31 
32 /* android_mips.c */
33 extern QEMUMachine android_mips_machine;
34 
35 #endif
36