1 #ifndef HW_QDEV_PROPERTIES_SYSTEM_H
2 #define HW_QDEV_PROPERTIES_SYSTEM_H
4 #include "hw/qdev-properties.h"
6 extern const PropertyInfo qdev_prop_chr
;
7 extern const PropertyInfo qdev_prop_macaddr
;
8 extern const PropertyInfo qdev_prop_reserved_region
;
9 extern const PropertyInfo qdev_prop_multifd_compression
;
10 extern const PropertyInfo qdev_prop_mig_mode
;
11 extern const PropertyInfo qdev_prop_losttickpolicy
;
12 extern const PropertyInfo qdev_prop_blockdev_on_error
;
13 extern const PropertyInfo qdev_prop_bios_chs_trans
;
14 extern const PropertyInfo qdev_prop_fdc_drive_type
;
15 extern const PropertyInfo qdev_prop_drive
;
16 extern const PropertyInfo qdev_prop_drive_iothread
;
17 extern const PropertyInfo qdev_prop_netdev
;
18 extern const PropertyInfo qdev_prop_pci_devfn
;
19 extern const PropertyInfo qdev_prop_blocksize
;
20 extern const PropertyInfo qdev_prop_pci_host_devaddr
;
21 extern const PropertyInfo qdev_prop_uuid
;
22 extern const PropertyInfo qdev_prop_audiodev
;
23 extern const PropertyInfo qdev_prop_off_auto_pcibar
;
24 extern const PropertyInfo qdev_prop_pcie_link_speed
;
25 extern const PropertyInfo qdev_prop_pcie_link_width
;
26 extern const PropertyInfo qdev_prop_cpus390entitlement
;
27 extern const PropertyInfo qdev_prop_iothread_vq_mapping_list
;
29 #define DEFINE_PROP_PCI_DEVFN(_n, _s, _f, _d) \
30 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pci_devfn, int32_t)
32 #define DEFINE_PROP_CHR(_n, _s, _f) \
33 DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharBackend)
34 #define DEFINE_PROP_NETDEV(_n, _s, _f) \
35 DEFINE_PROP(_n, _s, _f, qdev_prop_netdev, NICPeers)
36 #define DEFINE_PROP_DRIVE(_n, _s, _f) \
37 DEFINE_PROP(_n, _s, _f, qdev_prop_drive, BlockBackend *)
38 #define DEFINE_PROP_DRIVE_IOTHREAD(_n, _s, _f) \
39 DEFINE_PROP(_n, _s, _f, qdev_prop_drive_iothread, BlockBackend *)
40 #define DEFINE_PROP_MACADDR(_n, _s, _f) \
41 DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr)
42 #define DEFINE_PROP_RESERVED_REGION(_n, _s, _f) \
43 DEFINE_PROP(_n, _s, _f, qdev_prop_reserved_region, ReservedRegion)
44 #define DEFINE_PROP_MULTIFD_COMPRESSION(_n, _s, _f, _d) \
45 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_multifd_compression, \
47 #define DEFINE_PROP_MIG_MODE(_n, _s, _f, _d) \
48 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_mig_mode, \
50 #define DEFINE_PROP_LOSTTICKPOLICY(_n, _s, _f, _d) \
51 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_losttickpolicy, \
53 #define DEFINE_PROP_BLOCKDEV_ON_ERROR(_n, _s, _f, _d) \
54 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_blockdev_on_error, \
56 #define DEFINE_PROP_BIOS_CHS_TRANS(_n, _s, _f, _d) \
57 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_bios_chs_trans, int)
58 #define DEFINE_PROP_BLOCKSIZE(_n, _s, _f) \
59 DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint32_t)
60 #define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \
61 DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress)
62 #define DEFINE_PROP_OFF_AUTO_PCIBAR(_n, _s, _f, _d) \
63 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_off_auto_pcibar, \
65 #define DEFINE_PROP_PCIE_LINK_SPEED(_n, _s, _f, _d) \
66 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_speed, \
68 #define DEFINE_PROP_PCIE_LINK_WIDTH(_n, _s, _f, _d) \
69 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_width, \
72 #define DEFINE_PROP_UUID(_name, _state, _field) \
73 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID, \
76 #define DEFINE_PROP_AUDIODEV(_n, _s, _f) \
77 DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard)
79 #define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) \
80 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID)
82 #define DEFINE_PROP_CPUS390ENTITLEMENT(_n, _s, _f, _d) \
83 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_cpus390entitlement, \
86 #define DEFINE_PROP_IOTHREAD_VQ_MAPPING_LIST(_name, _state, _field) \
87 DEFINE_PROP(_name, _state, _field, qdev_prop_iothread_vq_mapping_list, \
88 IOThreadVirtQueueMappingList *)