Port Realtek RTL8139C emulation from QEMU

This commit is contained in:
Cacodemon345
2023-07-31 02:04:53 +06:00
parent 9c22198a0f
commit f3233c4eb5
4 changed files with 3341 additions and 1 deletions

View File

@@ -0,0 +1 @@
extern const device_t rtl8139c_device;

View File

@@ -15,7 +15,7 @@
set(net_sources)
list(APPEND net_sources network.c net_pcap.c net_slirp.c net_dp8390.c net_3c501.c
net_3c503.c net_ne2000.c net_pcnet.c net_wd8003.c net_plip.c net_event.c net_null.c
net_eeprom_nmc93cxx.c net_tulip.c)
net_eeprom_nmc93cxx.c net_tulip.c net_rtl8139.c)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SLIRP REQUIRED IMPORTED_TARGET slirp)

3337
src/network/net_rtl8139.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -74,6 +74,7 @@
#include <86box/net_plip.h>
#include <86box/net_wd8003.h>
#include <86box/net_tulip.h>
#include <86box/net_rtl8139.h>
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
@@ -118,6 +119,7 @@ static const device_t *net_cards[] = {
&rtl8029as_device,
&pcnet_am79c960_vlb_device,
&dec_tulip_device,
&rtl8139c_device,
NULL
};