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:
44
src/include/86box/net_3c501.h
Normal file
44
src/include/86box/net_3c501.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 86Box An emulator of (mostly) x86-based PC systems and devices,
|
||||
* using the ISA, EISA, VLB, MCA, and PCI system buses,
|
||||
* roughly spanning the era between 1981 and 1995.
|
||||
*
|
||||
* This file is part of the 86Box Project.
|
||||
*
|
||||
* Implementation of the following network controller:
|
||||
* - 3Com Etherlink 3c500/3c501 (ISA 8-bit).
|
||||
*
|
||||
*
|
||||
*
|
||||
* Based on @(#)Dev3C501.cpp Oracle (VirtualBox)
|
||||
*
|
||||
* Authors: TheCollector1995, <mariogplayer@gmail.com>
|
||||
* Oracle
|
||||
*
|
||||
* Copyright 2022 TheCollector1995.
|
||||
* Portions Copyright (C) 2022 Oracle and/or its affilitates.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the:
|
||||
*
|
||||
* Free Software Foundation, Inc.
|
||||
* 59 Temple Place - Suite 330
|
||||
* Boston, MA 02111-1307
|
||||
* USA.
|
||||
*/
|
||||
#ifndef NET_3C501_H
|
||||
#define NET_3C501_H
|
||||
|
||||
extern const device_t threec501_device;
|
||||
|
||||
#endif /*NET_3C501_H*/
|
@@ -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
1223
src/network/net_3c501.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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 = "" }
|
||||
},
|
||||
},
|
||||
|
@@ -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,
|
||||
|
@@ -647,7 +647,7 @@ NETOBJ := network.o \
|
||||
arp_table.o bootp.o cksum.o dnssearch.o if.o ip_icmp.o ip_input.o \
|
||||
ip_output.o mbuf.o misc.o sbuf.o slirp.o socket.o tcp_input.o \
|
||||
tcp_output.o tcp_subr.o tcp_timer.o udp.o util.o version.o \
|
||||
net_dp8390.o \
|
||||
net_dp8390.o net_3c501.o \
|
||||
net_3c503.o net_ne2000.o \
|
||||
net_pcnet.o net_wd8003.o \
|
||||
net_plip.o net_event.o
|
||||
|
Reference in New Issue
Block a user