18b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project/* Declarations for use by board files for creating devices.  */
28b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
38b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project#ifndef HW_BOARDS_H
48b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project#define HW_BOARDS_H
58b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
65d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turnertypedef void QEMUMachineInitFunc(ram_addr_t ram_size,
75d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turner                                 const char *boot_device,
88b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project                                 const char *kernel_filename,
98b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project                                 const char *kernel_cmdline,
108b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project                                 const char *initrd_filename,
118b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project                                 const char *cpu_model);
128b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
138b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Projecttypedef struct QEMUMachine {
148b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project    const char *name;
158b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project    const char *desc;
168b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project    QEMUMachineInitFunc *init;
175d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turner    int use_scsi;
185d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turner    int max_cpus;
195d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turner    int is_default;
208b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project    struct QEMUMachine *next;
218b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project} QEMUMachine;
228b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
238b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Projectint qemu_register_machine(QEMUMachine *m);
248b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
255d8f37ad78fc66901af50c762029a501561f3b23David 'Digit' Turnerextern QEMUMachine *current_machine;
268b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
278b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project/* android_arm.c */
288b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Projectextern QEMUMachine android_arm_machine;
298b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project
30741dc13597ac064e6a48bb2a6ec069cbc1cd0dbbBhanu Chetlapalli/* android_mips.c */
31741dc13597ac064e6a48bb2a6ec069cbc1cd0dbbBhanu Chetlapalliextern QEMUMachine android_mips_machine;
32741dc13597ac064e6a48bb2a6ec069cbc1cd0dbbBhanu Chetlapalli
338b23a6c7e1aee255004dd19098d4c2462b61b849The Android Open Source Project#endif
34