Mellvik / TLVC

Tiny Linux for Vintage Computers
Other
9 stars 0 forks source link

[net] ne2k driver enhancements #63

Closed Mellvik closed 3 months ago

Mellvik commented 3 months ago

Updated code for 8bit vs 16bit recognition.

The PROM holding the MAC address also has a dependable bus width flag, a 'B' for 8bit ISA, a 'W' for 16bit ISA. Having 4 physical interfaces at hand, one very old and one 8bit, this flag turns out to be dependable (also in QEMU BTW), which simplifies the code somewhat.

Also added support for forced 16bit mode from /bootopts, in the odd case that an interface should not have this (seemingly) standard flag.

Finally, some minor code/comment edits in the el3 driver.