d637e1dc6d
qbus: Rename qbus_create_inplace() to qbus_init()
...
Rename qbus_create_inplace() to qbus_init(); this is more in line
with our usual naming convention for functions that in-place
initialize objects.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 20210923121153.23754-5-peter.maydell@linaro.org
2021-09-30 13:42:10 +01:00
d2cf28a0c6
nubus: add support for slot IRQs
...
Each Nubus slot has an IRQ line that can be used to request service from the
CPU. Connect the IRQs to the Nubus bridge so that they can be wired up using qdev
gpios accordingly, and introduce a new nubus_set_irq() function that can be used
by Nubus devices to control the slot IRQ.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20210924073808.1041-19-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
094f5b2b09
nubus-bridge: make slot_available_mask a qdev property
...
This is to allow Macintosh machines to further specify which slots are available
since the number of addressable slots may not match the number of physical slots
present in the machine.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20210924073808.1041-18-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
d585d89de1
nubus-bridge: embed the NubusBus object directly within nubus-bridge
...
Since nubus-bridge is a container for NubusBus then it should be embedded
directly within the bridge device using qbus_create_inplace().
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20210924073808.1041-17-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
1fa04232db
nubus: move NubusBus from mac-nubus-bridge to nubus-bridge
...
Now that Nubus has its own address space rather than mapping directly into the
system bus, move the Nubus reference from MacNubusBridge to NubusBridge.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20210924073808.1041-16-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
9bf674bc71
nubus-bridge: introduce separate NubusBridge structure
...
This is to allow the Nubus bridge to store its own additional state. Also update
the comment in the file header to reflect that nubus-bridge is not specific to
the Macintosh.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20210924073808.1041-14-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-09-29 10:45:19 +02:00
fa2ba3b80e
hw/m68k: add Nubus support
...
This patch adds basic support for the NuBus bus. This is used by 680x0
Macintosh.
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: Thomas Huth <huth@tuxfamily.org >
Message-Id: <20191026164546.30020-8-laurent@vivier.eu >
2019-10-28 19:06:47 +01:00