Skip to content

Commit bd1cb22

Browse files
authored
Merge pull request #709 from uyjulian/sio2man_feature_update
sio2man feature update
2 parents e20d5d1 + c02b4b3 commit bd1cb22

File tree

18 files changed

+665
-521
lines changed

18 files changed

+665
-521
lines changed

common/include/iop_mmio_hwport.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ typedef struct sio0_1_mmio_hwport_
102102

103103
typedef struct sio2_mmio_hwport_
104104
{
105-
vu8 send3_buf[0x40];
106-
vu8 send1_2_buf[0x20];
107-
vu32 out_fifo; /* PCSX2 says in */
108-
vu32 in_fifo; /* PCSX2 says out */
105+
vu32 send3_buf[16];
106+
vu32 send1_2_buf[8];
107+
vu8 out_fifo; /* PCSX2 says in */
108+
u8 pad1[3];
109+
vu8 in_fifo; /* PCSX2 says out */
110+
u8 pad2[3];
109111
vu32 ctrl;
110112
vu32 recv1;
111113
vu32 recv2;

iop/system/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ SUBDIRS = \
3434
rmmanx \
3535
rmtapman \
3636
rpadman \
37-
rsio2man \
3837
sbusintr \
3938
sifcmd \
4039
sifinit \
4140
sifman \
4241
siftoo \
4342
sio2log \
4443
sio2man \
45-
sio2man-old \
44+
sio2man-nano \
4645
ssbusc \
4746
stdio \
4847
sysclib \

iop/system/padman/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ endif
3636

3737
ifneq (x$(PADMAN_BUILDING_XPADMAN_V2),x0)
3838
IOP_CFLAGS += -DBUILDING_XPADMAN_V2
39-
IOP_INCS += -I$(PS2SDKSRC)/iop/system/rsio2man/include
4039
endif
4140

4241
include $(PS2SDKSRC)/Defs.make

iop/system/rmman/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ IOP_INCS += \
1111
-I$(PS2SDKSRC)/iop/system/intrman/include \
1212
-I$(PS2SDKSRC)/iop/system/iomanx/include \
1313
-I$(PS2SDKSRC)/iop/system/loadcore/include \
14-
-I$(PS2SDKSRC)/iop/system/rsio2man/include \
1514
-I$(PS2SDKSRC)/iop/system/sifcmd/include \
1615
-I$(PS2SDKSRC)/iop/system/sifman/include \
1716
-I$(PS2SDKSRC)/iop/system/sio2man/include \

iop/system/rmtapman/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ IOP_SRC_DIR = $(PS2SDKSRC)/iop/system/mtapman/src/
1212

1313
IOP_CFLAGS += -DSIO2MAN_V2
1414

15-
IOP_INCS += \
16-
-I$(PS2SDKSRC)/iop/system/rsio2man/include/
17-
1815
include $(PS2SDKSRC)/iop/system/mtapman/Makefile

iop/system/rsio2man/README

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# ____| | ____| | | |____|
33
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
44
#-----------------------------------------------------------------------
5-
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
5+
# Copyright ps2dev - http://www.ps2dev.org
66
# Licenced under Academic Free License version 2.0
77
# Review ps2sdk README & LICENSE files for further details.
88

@@ -11,8 +11,8 @@ IOP_BIN_ALTNAMES =
1111
IOP_SRC_DIR = $(PS2SDKSRC)/iop/system/sio2man/src/
1212
IOP_INC_DIR = $(PS2SDKSRC)/iop/system/sio2man/include/
1313

14-
IOP_BIN ?= rsio2man.irx
14+
IOP_BIN ?= sio2man-nano.irx
1515

16-
SIO2MAN_BUILDING_XSIO2MAN_V2 ?= 1
16+
SIO2MAN_ENABLE_NANO ?= 1
1717

1818
include $(PS2SDKSRC)/iop/system/sio2man/Makefile

iop/system/sio2man-old/Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

iop/system/sio2man/Makefile

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
# ____| | ____| | | |____|
33
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
44
#-----------------------------------------------------------------------
5-
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
5+
# Copyright ps2dev - http://www.ps2dev.org
66
# Licenced under Academic Free License version 2.0
77
# Review ps2sdk README & LICENSE files for further details.
88

9-
# Build the newer version of the SIO2 module with support for multitap?
10-
SIO2MAN_BUILDING_XSIO2MAN ?= 1
11-
12-
# Build the newer version of the SIO2 module with support for remote and PDA devices?
13-
SIO2MAN_BUILDING_XSIO2MAN_V2 ?= 0
14-
159
# Enable logging?
1610
SIO2MAN_ENABLE_LOGGING ?= 0
1711

18-
IOP_BIN_ALTNAMES ?= freesio2.irx
12+
# Build nano version?
13+
SIO2MAN_ENABLE_NANO ?= 0
14+
15+
IOP_BIN_ALTNAMES ?= freesio2.irx rsio2man.irx sio2man-old.irx
1916

2017
IOP_INCS += \
2118
-I$(PS2SDKSRC)/iop/system/dmacman/include \
@@ -28,18 +25,14 @@ IOP_INCS += \
2825

2926
IOP_OBJS = sio2man.o log.o imports.o exports.o
3027

31-
ifneq (x$(SIO2MAN_BUILDING_XSIO2MAN),x0)
32-
IOP_CFLAGS += -DBUILDING_XSIO2MAN
33-
endif
34-
35-
ifneq (x$(SIO2MAN_BUILDING_XSIO2MAN_V2),x0)
36-
IOP_CFLAGS += -DBUILDING_XSIO2MAN_V2
37-
endif
38-
3928
ifneq (x$(SIO2MAN_ENABLE_LOGGING),x0)
4029
IOP_CFLAGS += -DSIO2LOG
4130
endif
4231

32+
ifneq (x$(SIO2MAN_ENABLE_NANO),x0)
33+
IOP_CFLAGS += -DSIO2MAN_NANO
34+
endif
35+
4336
include $(PS2SDKSRC)/Defs.make
4437
include $(PS2SDKSRC)/iop/Rules.bin.make
4538
include $(PS2SDKSRC)/iop/Rules.make

iop/system/sio2man/README

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)