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
23 changes: 22 additions & 1 deletion ee/rpc/remote/include/librm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct remote_data
{
u32 status;
u32 button;
u32 front_button;
};

/**
Expand Down Expand Up @@ -97,9 +98,9 @@ struct remote_data
/** @{ */
#define RM_PS2_POWER 0x0050D1DA /* 21 */
#define RM_PS2_EJECT 0x0060D1DA
#define RM_PS2_RESET 0x0070D1DA
#define RM_PS2_POWERON 0x00E0D2DA /* 46 */
#define RM_PS2_POWEROFF 0x00F0D2DA
#define RM_PS2_RESET 0x0010D7DA
#define RM_PS2_NOLIGHT 0x0050D7DA
/** @}*/

Expand Down Expand Up @@ -199,6 +200,15 @@ struct remote_data
#define RM_DESR_FLASH_FORW 0x0050D793
/** @} */

/** @name Additional DESR remote commands that Dragon or DVRP responds to
*/
/** @{ */
#define RM_DESR_DVRP_UNK 0x00E0D493
#define RM_DESR_POWER_ON 0x00E0D293
#define RM_DESR_POWER_OFF 0x00F0D293
#define RM_DESR_NOLIGHT 0x00F0D793
/** @} */

/** @name Different modes depending on the switch for RMT-Pxxx
*/
/** @{ */
Expand All @@ -207,6 +217,17 @@ struct remote_data
#define RM_DESR_MODE_3 0x000000A3
/** @} */

/** @name Definitions for front buttons on DESR
*/
/** @{ */
#define RM_DESR_FB_HOME 0x00000001
#define RM_DESR_FB_UP 0x00000002
#define RM_DESR_FB_DOWN 0x00000003
#define RM_DESR_FB_LEFT 0x00000004
#define RM_DESR_FB_RIGHT 0x00000005
#define RM_DESR_FB_ENTER 0x00000006
/** @} */

/** @name Additional BD remote commands (from RMT-B119A)
*/
/** @{ */
Expand Down
7 changes: 5 additions & 2 deletions ee/rpc/remote/samples/Makefile.sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@
# Review ps2sdk README & LICENSE files for further details.

EE_BIN = remote_sample.elf
EE_OBJS = remote.o SIO2MAN_irx.o RMMAN_irx.o
EE_OBJS = remote.o SIO2MAN_irx.o RMMAN_irx.o RMMAN2_irx.o
EE_LIBS = -ldebug -lrm -lpatches

all: $(EE_BIN)

clean:
rm -f $(EE_BIN) $(EE_OBJS) SIO2MAN_irx.c RMMAN_irx.c
rm -f $(EE_BIN) $(EE_OBJS) SIO2MAN_irx.c RMMAN_irx.c RMMAN2_irx.c

SIO2MAN_irx.c:
bin2c $(PS2SDK)/iop/irx/rsio2man.irx SIO2MAN_irx.c SIO2MAN_irx

RMMAN_irx.c:
bin2c $(PS2SDK)/iop/irx/rmman.irx RMMAN_irx.c RMMAN_irx

RMMAN2_irx.c:
bin2c $(PS2SDK)/iop/irx/rmman2.irx RMMAN2_irx.c RMMAN2_irx

include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
Loading