qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 10/20] nubus-device: remove nubus_register_rom() and nubus


From: Mark Cave-Ayland
Subject: Re: [PATCH v3 10/20] nubus-device: remove nubus_register_rom() and nubus_register_format_block()
Date: Tue, 21 Sep 2021 08:24:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 19/09/2021 22:10, Philippe Mathieu-Daudé wrote:

On 9/16/21 12:05, Mark Cave-Ayland wrote:
Since there is no need to generate a dummy declaration ROM, remove both
nubus_register_rom() and nubus_register_format_block(). These will shortly be
replaced with a mechanism to optionally load a declaration ROM from disk to
allow real images to be used within QEMU.

Nubus neophyte question: is it OK to load a device without
optional ROM nor dummy?

Yes, since the physical existence of the card is determined by whether the card accesses generate a bus fault, as per the Apple documentation, which is fixed in patch 8. The macfb device is an example of this since at least for the Quadra ROM its resources are not on the card itself, but stored in the MacOS toolbox ROM (normally referenced as slot 0xf).

Having said that, without a declaration ROM being present then your driver would have to be able to identify the card the hard way, and at least Linux attempts to parse the MacOS resources during enumeration. So I'd expect declaration ROMs to be required for nubus devices that don't have corresponding drivers included in a standard MacOS toolbox ROM which is likely to be the majority of cases.


ATB,

Mark.



reply via email to

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