joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

Make NE2000 PnP detectable #1482

Open rderooy opened 4 years ago

rderooy commented 4 years ago

Is your feature request related to a problem? Please describe. Right now the NE2000 support is not PnP detectable, and requires that you specifically scan for it for Win95 (OSR2 tested) to detect it.

This scanning can either be done during installation, when it asks if you want to scan for any additional devices, or after installation using the "Add New Hardware" option to let it scan for additional devices.

Describe the solution you'd like It would be great if the adapter was automatically detected during installation using PnP, or after installation if you enable NE2000 in you config.

joncampbell123 commented 4 years ago

Can you provide a dump of the PNP data from an ISA PnP network card?

There are tools to do this in DOSLIB. Binary releases are available.

https://github.com/joncampbell123/doslib/tree/master/hw/isapnp

If you do not have such information available, then I suppose some fake information could be synthesized from some INF files within Windows 95.

rderooy commented 4 years ago

@joncampbell123 unfortunately no. I don't have a retro DOS PC. Even back in the early '90s when I had my first home network, to run things like LANTastic, I was using 3com. And at work it was Token Ring.

rderooy commented 4 years ago

I have requested on vogons if someone has such an adapter, if they can dump the data. https://www.vogons.org/viewtopic.php?f=46&t=73613

Torinde commented 10 months ago

Related: #4698

joncampbell123 commented 10 months ago

From the INF listed, how about this RealTek ISAPNP device?

%8019pnp.DeviceDesc%   = *ne2000pls.ndi, ISAPNP\RTL8019    ; Realtek RTL8019 PnP LAN adapter

Note that the NNNDDDD format is not accidental, there's a scheme defined by the ISA PnP specification to pack three ASCII letters A-Z and 16 bits together as an ID.

Firefox_Screenshot_2023-12-23T04-25-57 845Z

http://hackipedia.org/browse.cgi/Computer/Platform/PC%2c%20IBM%20compatible/Busses/ISA/Plug%20%26%20Play/Plug%20and%20Play%20ISA%20Specification%20v1%2e0a%20%281994%2d05%2d05%29%2epdf

joncampbell123 commented 10 months ago

See also: https://github.com/joncampbell123/dosbox-x/blob/master/include/bios.h#L330

See also: https://github.com/joncampbell123/dosbox-x/blob/master/src/ints/bios.cpp#L1859