qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v6 04/20] nubus: use bitmap to manage available slots


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v6 04/20] nubus: use bitmap to manage available slots
Date: Fri, 24 Sep 2021 11:02:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 9/24/21 09:37, Mark Cave-Ayland wrote:
Convert nubus_device_realize() to use a bitmap to manage available slots to 
allow
for future Nubus devices to be plugged into arbitrary slots from the command 
line
using a new qdev "slot" parameter for nubus devices.

Update mac_nubus_bridge_init() to only allow slots 0x9 to 0xe on Macintosh 
machines
as documented in "Designing Cards and Drivers for the Macintosh Family".

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
---
  hw/nubus/mac-nubus-bridge.c         |  4 ++++
  hw/nubus/nubus-bus.c                |  5 +++--
  hw/nubus/nubus-device.c             | 29 ++++++++++++++++++++++++-----
  include/hw/nubus/mac-nubus-bridge.h |  4 ++++
  include/hw/nubus/nubus.h            | 13 ++++++-------
  5 files changed, 41 insertions(+), 14 deletions(-)

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



reply via email to

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