qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 17/20] nubus-bridge: make slot_available_mask a qdev prope


From: Mark Cave-Ayland
Subject: Re: [PATCH v5 17/20] nubus-bridge: make slot_available_mask a qdev property
Date: Fri, 24 Sep 2021 08:09:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 23/09/2021 10:52, Philippe Mathieu-Daudé wrote:

On 9/23/21 11:13, Mark Cave-Ayland wrote:
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>
---
  hw/nubus/nubus-bridge.c | 7 +++++++
  1 file changed, 7 insertions(+)

+static Property nubus_bridge_properties[] = {
+    DEFINE_PROP_UINT32("slot-available-mask", NubusBridge,
+                       bus.slot_available_mask, 0xffff),

What about using DEFINE_PROP_UINT16() here and uint16_t in
patch 04/20 "nubus: use bitmap to manage available slots"?

Regardless:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Yes, that seems to work fine so I'll make this change in v6.

+    DEFINE_PROP_END_OF_LIST()
+};


ATB,

Mark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]