public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Emulated PCI devices?
@ 2016-10-18 21:45 Mouse
  2016-10-18 22:50 ` Stas Sergeev
  0 siblings, 1 reply; 8+ messages in thread
From: Mouse @ 2016-10-18 21:45 UTC (permalink / raw)
  To: linux-msdos

I'm working with dosemu and would like to add an emulated PCI device to
the emulated DOS machine.  Obviously, I know enough about the hardware
I want to emulate to believe I can write an emulation of it.

But I'm not sure where to hook it in.  (I'm working based on commit
18f6f5cdf1beceae8c7532718bfaf423e4a44f6a.)  I found
src/base/async/pci_bios.c and src/base/dev/misc/pci.c, but they appear
to be all about giving the emulated machine access to real PCI hardware
on the real machine.  That's not what I want; I'm trying to supply the
emulated machine with hardware that is not actually present.

There is src/env/video/matrox.c, which appears to be monkeying with PCI
stuff, but even that checks the real machine's /proc/pci and doesn't
run unless there's real hardware backing it (see matroxProbe(), which
incidentally is incorrectly commented as being MGAProbe).

Is this something that's already got hooks supporting it, or am I
breaking new ground here?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse@rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-22 20:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 21:45 Emulated PCI devices? Mouse
2016-10-18 22:50 ` Stas Sergeev
2016-10-19  0:03   ` Mouse
2016-10-19 22:45     ` Stas Sergeev
2016-10-20  2:36       ` Mouse
2016-10-20 22:36         ` Stas Sergeev
2016-10-22 13:34           ` Mouse
2016-10-22 20:23             ` Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox