[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 20/20] q800: configure nubus available slots for Quadra 80
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 20/20] q800: configure nubus available slots for Quadra 800 |
Date: |
Wed, 15 Sep 2021 13:32:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 9/15/21 12:50 PM, BALATON Zoltan wrote:
> On Wed, 15 Sep 2021, Mark Cave-Ayland wrote:
>> 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(+)
>> +/*
>> + * 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 ((1UL << 0x9) | (1UL << 0xc) | \
>> + (1UL << 0xd) | (1UL << 0xe))
>
> There is a BIT(x) macro for these kind of constants that I find more
> readable as there would be less < signs and perenthesis but I don't
> insist on using it just note for consideration in case you need another
> respin for other reasons. (That macro could also be used to shorten the
> ~(1UL << nr_bits)
> values in other patches.)
Good idea.
- [PATCH v2 12/20] nubus: move nubus to its own 32-bit address space, (continued)
- [PATCH v2 12/20] nubus: move nubus to its own 32-bit address space, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 13/20] nubus-bridge: introduce separate NubusBridge structure, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 14/20] mac-nubus-bridge: rename MacNubusState to MacNubusBridge, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 15/20] nubus: move NubusBus from mac-nubus-bridge to nubus-bridge, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 17/20] nubus-bridge: make slot_available_mask a qdev property, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 18/20] nubus: add support for slot IRQs, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 16/20] nubus-bridge: embed the NubusBus object directly within nubus-bridge, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 19/20] q800: wire up nubus IRQs, Mark Cave-Ayland, 2021/09/15
- [PATCH v2 20/20] q800: configure nubus available slots for Quadra 800, Mark Cave-Ayland, 2021/09/15