1 #ifndef HW_QDEV_PROPERTIES_SYSTEM_H 2 #define HW_QDEV_PROPERTIES_SYSTEM_H 3 4 #include "hw/qdev-properties.h" 5 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_losttickpolicy; 11 extern const PropertyInfo qdev_prop_blockdev_on_error; 12 extern const PropertyInfo qdev_prop_bios_chs_trans; 13 extern const PropertyInfo qdev_prop_fdc_drive_type; 14 extern const PropertyInfo qdev_prop_drive; 15 extern const PropertyInfo qdev_prop_drive_iothread; 16 extern const PropertyInfo qdev_prop_netdev; 17 extern const PropertyInfo qdev_prop_pci_devfn; 18 extern const PropertyInfo qdev_prop_blocksize; 19 extern const PropertyInfo qdev_prop_pci_host_devaddr; 20 extern const PropertyInfo qdev_prop_uuid; 21 extern const PropertyInfo qdev_prop_audiodev; 22 extern const PropertyInfo qdev_prop_off_auto_pcibar; 23 extern const PropertyInfo qdev_prop_pcie_link_speed; 24 extern const PropertyInfo qdev_prop_pcie_link_width; 25 extern const PropertyInfo qdev_prop_cpus390entitlement; 26 27 #define DEFINE_PROP_PCI_DEVFN(_n, _s, _f, _d) \ 28 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pci_devfn, int32_t) 29 30 #define DEFINE_PROP_CHR(_n, _s, _f) \ 31 DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharBackend) 32 #define DEFINE_PROP_NETDEV(_n, _s, _f) \ 33 DEFINE_PROP(_n, _s, _f, qdev_prop_netdev, NICPeers) 34 #define DEFINE_PROP_DRIVE(_n, _s, _f) \ 35 DEFINE_PROP(_n, _s, _f, qdev_prop_drive, BlockBackend *) 36 #define DEFINE_PROP_DRIVE_IOTHREAD(_n, _s, _f) \ 37 DEFINE_PROP(_n, _s, _f, qdev_prop_drive_iothread, BlockBackend *) 38 #define DEFINE_PROP_MACADDR(_n, _s, _f) \ 39 DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr) 40 #define DEFINE_PROP_RESERVED_REGION(_n, _s, _f) \ 41 DEFINE_PROP(_n, _s, _f, qdev_prop_reserved_region, ReservedRegion) 42 #define DEFINE_PROP_MULTIFD_COMPRESSION(_n, _s, _f, _d) \ 43 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_multifd_compression, \ 44 MultiFDCompression) 45 #define DEFINE_PROP_LOSTTICKPOLICY(_n, _s, _f, _d) \ 46 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_losttickpolicy, \ 47 LostTickPolicy) 48 #define DEFINE_PROP_BLOCKDEV_ON_ERROR(_n, _s, _f, _d) \ 49 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_blockdev_on_error, \ 50 BlockdevOnError) 51 #define DEFINE_PROP_BIOS_CHS_TRANS(_n, _s, _f, _d) \ 52 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_bios_chs_trans, int) 53 #define DEFINE_PROP_BLOCKSIZE(_n, _s, _f) \ 54 DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint32_t) 55 #define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \ 56 DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress) 57 #define DEFINE_PROP_OFF_AUTO_PCIBAR(_n, _s, _f, _d) \ 58 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_off_auto_pcibar, \ 59 OffAutoPCIBAR) 60 #define DEFINE_PROP_PCIE_LINK_SPEED(_n, _s, _f, _d) \ 61 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_speed, \ 62 PCIExpLinkSpeed) 63 #define DEFINE_PROP_PCIE_LINK_WIDTH(_n, _s, _f, _d) \ 64 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_pcie_link_width, \ 65 PCIExpLinkWidth) 66 67 #define DEFINE_PROP_UUID(_name, _state, _field) \ 68 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID, \ 69 .set_default = true) 70 71 #define DEFINE_PROP_AUDIODEV(_n, _s, _f) \ 72 DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard) 73 74 #define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) \ 75 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID) 76 77 #define DEFINE_PROP_CPUS390ENTITLEMENT(_n, _s, _f, _d) \ 78 DEFINE_PROP_SIGNED(_n, _s, _f, _d, qdev_prop_cpus390entitlement, \ 79 CpuS390Entitlement) 80 81 #endif 82