On 28/1/25 11:45, Peter Maydell wrote:
Do a minimal conversion of the omap_mmc device model to QDev.
In this commit we do the bare minimum to produce a working device:
* add the SysBusDevice parent_obj and the usual type boilerplate
* omap_mmc_init() now returns a DeviceState*
* reset is h
On Tue, 28 Jan 2025 at 18:51, Richard Henderson
wrote:
>
> On 1/28/25 02:45, Peter Maydell wrote:
> > +static const TypeInfo omap_mmc_info = {
> > +.name = TYPE_OMAP_MMC,
> > +.parent = TYPE_SYS_BUS_DEVICE,
> > +.instance_size = sizeof(OMAPMMCState),
> > +.instance_init = omap_mmc_
On 1/28/25 02:45, Peter Maydell wrote:
+static const TypeInfo omap_mmc_info = {
+.name = TYPE_OMAP_MMC,
+.parent = TYPE_SYS_BUS_DEVICE,
+.instance_size = sizeof(OMAPMMCState),
+.instance_init = omap_mmc_initfn,
+.class_init = omap_mmc_class_init,
+};
+
+static void omap_mmc_re
Do a minimal conversion of the omap_mmc device model to QDev.
In this commit we do the bare minimum to produce a working device:
* add the SysBusDevice parent_obj and the usual type boilerplate
* omap_mmc_init() now returns a DeviceState*
* reset is handled by sysbus reset, so the SoC reset fun