On Fri, 6 Nov 2026, Helge Deller wrote:
From: Helge Deller <[email protected]>
This adds a new driver for the NC53C710 chipset. This drover is based on the
lsi53c895a driver, and thus avoids many issues of the existing ncr53c710
driver, which was written from scratch.
There's a typo "drover" above.
I asked this before but would it be possible to modify lsi53c895a.c to
also emulate the 53c710 too instead of duplicating code? This device model
is almost the same as the 53c895a or at least a large part is shared but
it's not easy to see that as it uses different names for the same
structures and functions. It would be better to at least split the reused
struct definitions from 53c895a into a shared header and use that here.
Then compare what are the differences between the functions and see if the
common parts could either be split into a common super class or if the
differences are small enough to just add conditionals in lsi53c895a.c to
also emulate 53c710 with most of the code shared instead of duplicated.
A somewhat complex example of such code sharing is hw/isa/vt82c686.c which
uses a common super class or hw/display/ati.c which has conditionals to
emulate simlar devices. I was thinking about such code sharing would be
possible for these devices too to avoid code duplication that can diverge
in the future.
Regards,
BALATON Zoltan