[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 20/20] q800: configure nubus available slots for Quadra 80
From: |
Laurent Vivier |
Subject: |
Re: [PATCH v4 20/20] q800: configure nubus available slots for Quadra 800 |
Date: |
Mon, 20 Sep 2021 23:40:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Le 17/09/2021 à 09:50, Mark Cave-Ayland a écrit :
> Slot 0x9 is reserved for use by the in-built framebuffer whilst only slots
> 0xc, 0xd and 0xe physically exist on the Quadra 800.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> ---
> hw/m68k/q800.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
> index fbc45a301f..63f42764eb 100644
> --- a/hw/m68k/q800.c
> +++ b/hw/m68k/q800.c
> @@ -78,6 +78,13 @@
>
> #define MAC_CLOCK 3686418
>
> +/*
> + * Slot 0x9 is reserved for use by the in-built framebuffer whilst only
> + * slots 0xc, 0xd and 0xe physically exist on the Quadra 800
> + */
> +#define Q800_NUBUS_SLOTS_AVAILABLE (BIT(0x9) | BIT(0xc) | BIT(0xd) | \
> + BIT(0xe))
> +
> /*
> * The GLUE (General Logic Unit) is an Apple custom integrated circuit chip
> * that performs a variety of functions (RAM management, clock generation,
> ...).
> @@ -392,6 +399,8 @@ static void q800_init(MachineState *machine)
> /* NuBus */
>
> dev = qdev_new(TYPE_MAC_NUBUS_BRIDGE);
> + qdev_prop_set_uint32(dev, "slot-available-mask",
> + Q800_NUBUS_SLOTS_AVAILABLE);
> sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
> sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 9 * NUBUS_SUPER_SLOT_SIZE);
> sysbus_mmio_map(SYS_BUS_DEVICE(dev), 1, NUBUS_SLOT_BASE +
>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
- [PATCH v4 12/20] nubus: move nubus to its own 32-bit address space, (continued)
- [PATCH v4 12/20] nubus: move nubus to its own 32-bit address space, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 15/20] nubus: move NubusBus from mac-nubus-bridge to nubus-bridge, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 16/20] nubus-bridge: embed the NubusBus object directly within nubus-bridge, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 17/20] nubus-bridge: make slot_available_mask a qdev property, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 18/20] nubus: add support for slot IRQs, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 19/20] q800: wire up nubus IRQs, Mark Cave-Ayland, 2021/09/17
- [PATCH v4 20/20] q800: configure nubus available slots for Quadra 800, Mark Cave-Ayland, 2021/09/17
- Re: [PATCH v4 20/20] q800: configure nubus available slots for Quadra 800,
Laurent Vivier <=