Ported the 3c500/3c501 nic from VirtualBox.

Added IRQ's 10 and 11 to the AMD PCnet ISA/VLB nics.
This commit is contained in:
TC1995
2022-11-21 17:08:50 +01:00
parent e167988a92
commit b04aa3ce4e
6 changed files with 1276 additions and 3 deletions

View File

@@ -13,8 +13,8 @@
# Copyright 2020,2021 David Hrdlička.
#
add_library(net OBJECT network.c net_pcap.c net_slirp.c net_dp8390.c net_3c503.c
net_ne2000.c net_pcnet.c net_wd8003.c net_plip.c net_event.c)
add_library(net OBJECT 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)
option(SLIRP_EXTERNAL "Link against the system-provided libslirp library" OFF)
mark_as_advanced(SLIRP_EXTERNAL)

1223
src/network/net_3c501.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -3065,6 +3065,8 @@ static const device_config_t pcnet_isa_config[] = {
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 9", .value = 9 },
{ .description = "IRQ 10", .value = 10 },
{ .description = "IRQ 11", .value = 11 },
{ .description = "" }
},
},
@@ -3124,6 +3126,8 @@ static const device_config_t pcnet_vlb_config[] = {
{ .description = "IRQ 4", .value = 4 },
{ .description = "IRQ 5", .value = 5 },
{ .description = "IRQ 9", .value = 9 },
{ .description = "IRQ 10", .value = 10 },
{ .description = "IRQ 11", .value = 11 },
{ .description = "" }
},
},

View File

@@ -67,6 +67,7 @@
#include <86box/ui.h>
#include <86box/timer.h>
#include <86box/network.h>
#include <86box/net_3c501.h>
#include <86box/net_3c503.h>
#include <86box/net_ne2000.h>
#include <86box/net_pcnet.h>
@@ -95,6 +96,7 @@ static const device_t net_none_device = {
static const device_t *net_cards[] = {
&net_none_device,
&threec501_device,
&threec503_device,
&pcnet_am79c960_device,
&pcnet_am79c961_device,