Skip to content

Commit d317f8f

Browse files
authored
Merge pull request #923 from uyjulian/an986
Implementation of an986 USB Ethernet adapter module
2 parents be49dfb + 76f8890 commit d317f8f

8 files changed

Lines changed: 1617 additions & 0 deletions

File tree

iop/network/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# Review ps2sdk README & LICENSE files for further details.
88

99
SUBDIRS = \
10+
an986 \
11+
an986-uepcb \
1012
netcnf \
1113
netcnfif \
1214
netman \

iop/network/an986-uepcb/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# _____ ___ ____ ___ ____
2+
# ____| | ____| | | |____|
3+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
4+
#-----------------------------------------------------------------------
5+
# Copyright ps2dev - http://www.ps2dev.org
6+
# Licenced under Academic Free License version 2.0
7+
# Review ps2sdk README & LICENSE files for further details.
8+
9+
IOP_BIN_ALTNAMES =
10+
11+
IOP_SRC_DIR = $(PS2SDKSRC)/iop/network/an986/src/
12+
IOP_INC_DIR = $(PS2SDKSRC)/iop/network/an986/include/
13+
14+
AN986_UEPCB ?= 1
15+
16+
include $(PS2SDKSRC)/iop/network/an986/Makefile

iop/network/an986/Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# _____ ___ ____ ___ ____
2+
# ____| | ____| | | |____|
3+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
4+
#-----------------------------------------------------------------------
5+
# Copyright ps2dev - http://www.ps2dev.org
6+
# Licenced under Academic Free License version 2.0
7+
# Review ps2sdk README & LICENSE files for further details.
8+
9+
# Support the UEPCB board?
10+
AN986_UEPCB ?= 0
11+
12+
IOP_IMPORT_INCS += \
13+
network/netman \
14+
system/intrman \
15+
system/loadcore \
16+
system/stdio \
17+
system/sysclib \
18+
system/threadman \
19+
usb/usbd
20+
21+
IOP_OBJS = an986.o imports.o exports.o
22+
23+
ifneq (x$(AN986_UEPCB),x0)
24+
IOP_CFLAGS += -DAN986_UEPCB=1
25+
endif
26+
27+
include $(PS2SDKSRC)/Defs.make
28+
include $(PS2SDKSRC)/iop/Rules.bin.make
29+
include $(PS2SDKSRC)/iop/Rules.make
30+
include $(PS2SDKSRC)/iop/Rules.release

iop/network/an986/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# AN986 USB Ethernet driver
2+
3+
This module allows interfacing with the ADMtek an986 USB Ethernet hardware.
4+
5+
## Documentation
6+
7+
Datasheet: <https://stuff.mit.edu/afs/sipb/contrib/doc/specs/ic/network/an986.pdf>
8+
9+
## Configurations
10+
11+
There are multiple configurations of this library, allowing the choice of
12+
balancing between size, speed, and features.
13+
14+
* `an986` -> The recommended version.
15+
* `an986-uepcb` -> Supports UEPCB intended for System 246C/256/147/148.
16+
17+
## How to use this module in your program
18+
19+
In order to use this module in your program, use `LoadModule` or \
20+
`LoadModuleBuffer` with no arguments.

0 commit comments

Comments
 (0)