]> git.proxmox.com Git - mirror_qemu.git/blame - hw/boards.h
s390: Add default support for SCLP console
[mirror_qemu.git] / hw / boards.h
CommitLineData
87ecb68b
PB
1/* Declarations for use by board files for creating devices. */
2
3#ifndef HW_BOARDS_H
4#define HW_BOARDS_H
5
9c17d615 6#include "sysemu/blockdev.h"
b6b61144
GH
7#include "qdev.h"
8
e4ada29e
AS
9#define DEFAULT_MACHINE_OPTIONS \
10 .boot_order = "cad"
11
5f072e1f
EH
12typedef struct QEMUMachineInitArgs {
13 ram_addr_t ram_size;
14 const char *boot_device;
15 const char *kernel_filename;
16 const char *kernel_cmdline;
17 const char *initrd_filename;
18 const char *cpu_model;
19} QEMUMachineInitArgs;
20
21typedef void QEMUMachineInitFunc(QEMUMachineInitArgs *args);
87ecb68b 22
be522029
DG
23typedef void QEMUMachineResetFunc(void);
24
87ecb68b
PB
25typedef struct QEMUMachine {
26 const char *name;
3f6599e6 27 const char *alias;
87ecb68b
PB
28 const char *desc;
29 QEMUMachineInitFunc *init;
be522029 30 QEMUMachineResetFunc *reset;
2d0d2837 31 BlockInterfaceType block_default_type;
b2097003 32 int max_cpus;
2fe0ee97 33 unsigned int no_serial:1,
986c5f78
GH
34 no_parallel:1,
35 use_virtcon:1,
3ef669e1 36 use_sclp:1,
ac33f8fa
GH
37 no_floppy:1,
38 no_cdrom:1,
39 no_sdcard:1;
0c257437 40 int is_default;
67b724e6 41 const char *default_machine_opts;
e4ada29e 42 const char *boot_order;
458fb679 43 GlobalProperty *compat_props;
87ecb68b 44 struct QEMUMachine *next;
93bfef4c 45 const char *hw_version;
87ecb68b
PB
46} QEMUMachine;
47
48int qemu_register_machine(QEMUMachine *m);
2c8cffa5 49QEMUMachine *find_default_machine(void);
87ecb68b 50
6f338c34
AL
51extern QEMUMachine *current_machine;
52
87ecb68b 53#endif