e0591bf1a5
macfb: don't register declaration ROM
...
The macfb device is an on-board framebuffer and so is initialised by the
system declaration ROM included within the MacOS toolbox ROM.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20210924073808.1041-10-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
69b66e4977
hw/display/macfb: Classify the "nubus-macfb" as display device
...
The "nubus-macfb" currently shows up as uncategorized device in
the output of "-device help". Put it into the display category
to fix this ugliness.
Signed-off-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20210531073255.46286-1-thuth@redhat.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-06-05 21:21:56 +02:00
001040158d
nubus: Rename class type checking macros
...
Rename the existing class type checking macros to be consistent
with the type name and instance type checking macro. Use a
NUBUS_MACFB prefix instead of MACFB_NUBUS.
This will make future conversion to OBJECT_DECLARE* easier.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Acked-by: Laurent Vivier <laurent@vivier.eu >
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com >
Message-Id: <20200825192110.3528606-44-ehabkost@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-08-27 14:04:55 -04:00
b9fc4f6e62
hw/display: Let devices own the MemoryRegion they create
...
Avoid orphan memory regions being added in the /unattached QOM
container.
This commit was produced with the Coccinelle script
scripts/coccinelle/memory-region-housekeeping.cocci.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2020-03-17 15:18:48 +01:00
4f67d30b5e
qdev: set properties with device_class_set_props()
...
The following patch will need to handle properties registration during
class_init time. Let's use a device_class_set_props() setter.
spatch --macro-file scripts/cocci-macro-file.h --sp-file
./scripts/coccinelle/qdev-set-props.cocci --keep-comments --in-place
--dir .
@@
typedef DeviceClass;
DeviceClass *d;
expression val;
@@
- d->props = val
+ device_class_set_props(d, val)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20200110153039.1379601-20-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-01-24 20:59:15 +01:00
8ac919a065
hw/m68k: add Nubus macfb video card
...
This patch adds support for a graphic framebuffer device.
This device can be added as a sysbus device or as a NuBus device.
It is accessed as a framebuffer but the color palette can be set.
Co-developed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org >
Reviewed-by: Thomas Huth <huth@tuxfamily.org >
Message-Id: <20191026164546.30020-9-laurent@vivier.eu >
2019-10-28 19:06:49 +01:00