Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions iop/network/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Review ps2sdk README & LICENSE files for further details.

SUBDIRS = \
an986 \
an986-uepcb \
netcnf \
netcnfif \
netman \
Expand Down
16 changes: 16 additions & 0 deletions iop/network/an986-uepcb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

IOP_BIN_ALTNAMES =

IOP_SRC_DIR = $(PS2SDKSRC)/iop/network/an986/src/
IOP_INC_DIR = $(PS2SDKSRC)/iop/network/an986/include/

AN986_UEPCB ?= 1

include $(PS2SDKSRC)/iop/network/an986/Makefile
30 changes: 30 additions & 0 deletions iop/network/an986/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

# Support the UEPCB board?
AN986_UEPCB ?= 0

IOP_IMPORT_INCS += \
network/netman \
system/intrman \
system/loadcore \
system/stdio \
system/sysclib \
system/threadman \
usb/usbd

IOP_OBJS = an986.o imports.o exports.o

ifneq (x$(AN986_UEPCB),x0)
IOP_CFLAGS += -DAN986_UEPCB=1
endif

include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/iop/Rules.bin.make
include $(PS2SDKSRC)/iop/Rules.make
include $(PS2SDKSRC)/iop/Rules.release
20 changes: 20 additions & 0 deletions iop/network/an986/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AN986 USB Ethernet driver

This module allows interfacing with the ADMtek an986 USB Ethernet hardware.

## Documentation

Datasheet: <https://stuff.mit.edu/afs/sipb/contrib/doc/specs/ic/network/an986.pdf>

## Configurations

There are multiple configurations of this library, allowing the choice of
balancing between size, speed, and features.

* `an986` -> The recommended version.
* `an986-uepcb` -> Supports UEPCB intended for System 246C/256/147/148.

## How to use this module in your program

In order to use this module in your program, use `LoadModule` or \
`LoadModuleBuffer` with no arguments.
Loading