fdc: fix FD_SR0_SEEK for initial seek on DMA transfers
[qemu/ar7.git] / hw / boards.h
blob813d0e5109010d781629b13f080f633f867a1a2a
1 /* Declarations for use by board files for creating devices. */
3 #ifndef HW_BOARDS_H
4 #define HW_BOARDS_H
6 #include "qdev.h"
8 typedef struct QEMUMachineInitArgs {
9 ram_addr_t ram_size;
10 const char *boot_device;
11 const char *kernel_filename;
12 const char *kernel_cmdline;
13 const char *initrd_filename;
14 const char *cpu_model;
15 } QEMUMachineInitArgs;
17 typedef void QEMUMachineInitFunc(QEMUMachineInitArgs *args);
19 typedef void QEMUMachineResetFunc(void);
21 typedef struct QEMUMachine {
22 const char *name;
23 const char *alias;
24 const char *desc;
25 QEMUMachineInitFunc *init;
26 QEMUMachineResetFunc *reset;
27 int use_scsi;
28 int max_cpus;
29 unsigned int no_serial:1,
30 no_parallel:1,
31 use_virtcon:1,
32 no_floppy:1,
33 no_cdrom:1,
34 no_sdcard:1;
35 int is_default;
36 const char *default_machine_opts;
37 GlobalProperty *compat_props;
38 struct QEMUMachine *next;
39 const char *hw_version;
40 } QEMUMachine;
42 int qemu_register_machine(QEMUMachine *m);
43 QEMUMachine *find_default_machine(void);
45 extern QEMUMachine *current_machine;
47 #endif