Merge pull request #3509 from Cacodemon345/rtl8139c-port
Port Realtek RTL8139C+ emulation from QEMU
This commit is contained in:
1
src/include/86box/net_rtl8139.h
Normal file
1
src/include/86box/net_rtl8139.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
extern const device_t rtl8139c_plus_device;
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
set(net_sources)
|
set(net_sources)
|
||||||
list(APPEND net_sources network.c net_pcap.c net_slirp.c net_dp8390.c net_3c501.c
|
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_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)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(SLIRP REQUIRED IMPORTED_TARGET slirp)
|
pkg_check_modules(SLIRP REQUIRED IMPORTED_TARGET slirp)
|
||||||
|
|||||||
3337
src/network/net_rtl8139.c
Normal file
3337
src/network/net_rtl8139.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -74,6 +74,7 @@
|
|||||||
#include <86box/net_plip.h>
|
#include <86box/net_plip.h>
|
||||||
#include <86box/net_wd8003.h>
|
#include <86box/net_wd8003.h>
|
||||||
#include <86box/net_tulip.h>
|
#include <86box/net_tulip.h>
|
||||||
|
#include <86box/net_rtl8139.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
@@ -118,6 +119,7 @@ static const device_t *net_cards[] = {
|
|||||||
&rtl8029as_device,
|
&rtl8029as_device,
|
||||||
&pcnet_am79c960_vlb_device,
|
&pcnet_am79c960_vlb_device,
|
||||||
&dec_tulip_device,
|
&dec_tulip_device,
|
||||||
|
&rtl8139c_plus_device,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user