Skip to content

Commit 3cea633

Browse files
authored
Merge pull request #706 from uyjulian/igreeting_impl
Implementation of igreeting module
2 parents 8367a37 + 868ff03 commit 3cea633

File tree

7 files changed

+713
-0
lines changed

7 files changed

+713
-0
lines changed

iop/system/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ SUBDIRS = \
1414
eesync-nano \
1515
excepman \
1616
heaplib \
17+
igreeting \
18+
igreeting-dtlt \
1719
intrman \
1820
intrmanp \
1921
ioman \

iop/system/igreeting-dtlt/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/system/igreeting/src/
12+
IOP_INC_DIR = $(PS2SDKSRC)/iop/system/igreeting/include/
13+
14+
IGREETING_DTL_T ?= 1
15+
16+
include $(PS2SDKSRC)/iop/system/igreeting/Makefile

iop/system/igreeting/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
# Build DTL-T variant?
10+
IGREETING_DTL_T ?= 0
11+
12+
IOP_INCS += \
13+
-I$(PS2SDKSRC)/iop/system/intrman/include \
14+
-I$(PS2SDKSRC)/iop/system/ioman/include \
15+
-I$(PS2SDKSRC)/iop/system/loadcore/include \
16+
-I$(PS2SDKSRC)/iop/system/stdio/include \
17+
-I$(PS2SDKSRC)/iop/system/sysclib/include \
18+
-I$(PS2SDKSRC)/iop/system/sysmem/include
19+
20+
IOP_OBJS = igreeting.o imports.o
21+
22+
ifneq (x$(IGREETING_DTL_T),x0)
23+
IOP_CFLAGS += -DIGREETING_DTL_T
24+
endif
25+
26+
include $(PS2SDKSRC)/Defs.make
27+
include $(PS2SDKSRC)/iop/Rules.bin.make
28+
include $(PS2SDKSRC)/iop/Rules.make
29+
include $(PS2SDKSRC)/iop/Rules.release

iop/system/igreeting/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# IOP Greeting
2+
3+
This module will print the following information:
4+
5+
* Reboot type (hard reset boot/soft reboot/update reboot/update reboot complete)
6+
* Board type (DTL-T only)
7+
* Board info (DTL-T only)
8+
* ROMGEN string
9+
* CPUID value
10+
* CACH_CONFIG value
11+
* Memory size in MB
12+
* Whether in PS or IOP mode (IOP only)
13+
* Whether using Flash ROM or ROM (DTL-T only)
14+
* EXTINFO comment
15+
* DIP switches (DTL-T only)
16+
* EE boot parameter (DTL-T only)
17+
* IOP boot parameter (DTL-T only)
18+
* DMA_WIDE_CH value (DTL-T only)
19+
20+
Additionally, it will enable SSBUS if DIP switch 5 is enabled (DTL-T only)
21+
22+
## Configurations
23+
24+
There are multiple configurations of this library, allowing the choice of
25+
balancing between size, speed, and features.
26+
27+
* `igreeting` -> The recommended version.
28+
* `igreeting-dtlt` -> For DTL-T systems.
29+
30+
## How to use this module in your program
31+
32+
In order to use this module in your program, you must integrate the module into
33+
an IOPRP image, then load the image with `UDNL`.\
34+
Using `LoadModule` or `LoadModuleBuffer` directly will not work, because the
35+
module is already loaded at IOP boot.

0 commit comments

Comments
 (0)