diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-25 14:36:42 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-16 14:25:07 +0100 |
| commit | 47dfd350fbf80bdfc7dcc102974fad328bf3e993 (patch) | |
| tree | 7b84f8f1580f57bca982b067cc8dcc431f130f14 /include | |
| parent | 45683d1e7c622b1e9c0a41054847f519cd2aaa45 (diff) | |
| download | focaccia-qemu-47dfd350fbf80bdfc7dcc102974fad328bf3e993.tar.gz focaccia-qemu-47dfd350fbf80bdfc7dcc102974fad328bf3e993.zip | |
hw/sysbus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE
Some TYPE_SYS_BUS_DEVICEs can be optionally dynamically plugged on the TYPE_PLATFORM_BUS_DEVICE. Rather than sometimes noting that with comment around the 'user_creatable = true' line in each DeviceRealize handler, introduce an abstract TYPE_DYNAMIC_SYS_BUS_DEVICE class. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alexander Graf <graf@amazon.com> Reviewed-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com> Message-Id: <20250125181343.59151-4-philmd@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/sysbus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h index c9b1e0e90e..81bbda10d3 100644 --- a/include/hw/sysbus.h +++ b/include/hw/sysbus.h @@ -19,6 +19,8 @@ DECLARE_INSTANCE_CHECKER(BusState, SYSTEM_BUS, OBJECT_DECLARE_TYPE(SysBusDevice, SysBusDeviceClass, SYS_BUS_DEVICE) +#define TYPE_DYNAMIC_SYS_BUS_DEVICE "dynamic-sysbus-device" + /** * SysBusDeviceClass: * |