PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sio2Cmds.c File Reference
#include "irx.h"
#include "types.h"
#include "sio2Cmds.h"
+ Include dependency graph for sio2Cmds.c:

Go to the source code of this file.

Data Structures

struct  sio2Cmds_t
 

Functions

void sio2cmdReset (void)
 
static int SetupCmds (const sio2Cmds_t *s)
 
static void FindPadsReadData (u8 *a)
 
static u32 FindPadsGetPortCtrl1 (u32 a, u32 b)
 
static u32 FindPadsGetPortCtrl2 (u32 a)
 
static u32 FindPadsGetSize1 (void)
 
static u32 FindPadsGetSize2 (void)
 
static u32 FindPadsRegData (void)
 
static u32 FindPadsEnterConfigMode (u8 *a)
 
void sio2cmdInitFindPads (void)
 
static void MouseReadData (u8 *a)
 
static u32 MouseGetPortCtrl1 (u32 a, u32 b)
 
static u32 MouseGetPortCtrl2 (u32 a)
 
static u32 MouseRegData (void)
 
static u32 MouseSize1 (void)
 
static u32 MouseSize2 (void)
 
static u32 MouseEnterConfigMode (u8 *a)
 
void sio2cmdInitMouse (void)
 
static void NegiconReadData (u8 *a)
 
static u32 NegiconGetPortCtrl1 (u32 a, u32 b)
 
static u32 NegiconGetPortCtrl2 (u32 a)
 
static u32 NegiconRegData (void)
 
static u32 NegiconSize1 (void)
 
static u32 NegiconSize2 (void)
 
static u32 NegiconEnterConfigMode (u8 *a)
 
void sio2cmdInitNegicon (void)
 
static void KonamiGunReadData (u8 *a)
 
static u32 KonamiGunGetPortCtrl1 (u32 a, u32 b)
 
static u32 KonamiGunGetPortCtrl2 (u32 a)
 
static u32 KonamiGunRegData (void)
 
static u32 KonamiGunSize1 (void)
 
static u32 KonamiGunSize2 (void)
 
static u32 KonamiGunEnterConfigMode (u8 *a)
 
void sio2cmdInitKonamiGun (void)
 
static void DigitalReadData (u8 *a)
 
static u32 DigitalGetPortCtrl1 (u32 a, u32 b)
 
static u32 DigitalGetPortCtrl2 (u32 a)
 
static u32 DigitalRegData (void)
 
static u32 DigitalSize1 (void)
 
static u32 DigitalSize2 (void)
 
static u32 DigitalEnterConfigMode (u8 *a)
 
void sio2cmdInitDigital (void)
 
static void JoystickReadData (u8 *a)
 
static u32 JoystickGetPortCtrl1 (u32 a, u32 b)
 
static u32 JoystickGetPortCtrl2 (u32 a)
 
static u32 JoystickRegData (void)
 
static u32 JoystickSize1 (void)
 
static u32 JoystickSize2 (void)
 
static u32 JoystickEnterConfigMode (u8 *a)
 
void sio2cmdInitJoystick (void)
 
static void NamcoGunReadData (u8 *a)
 
static u32 NamcoGunGetPortCtrl1 (u32 a, u32 b)
 
static u32 NamcoGunGetPortCtrl2 (u32 a)
 
static u32 NamcoGunRegData (void)
 
static u32 NamcoGunSize1 (void)
 
static u32 NamcoGunSize2 (void)
 
static u32 NamcoGunEnterConfigMode (u8 *a)
 
void sio2cmdInitNamcoGun (void)
 
static void AnalogReadData (u8 *a)
 
static u32 AnalogGetPortCtrl1 (u32 a, u32 b)
 
static u32 AnalogGetPortCtrl2 (u32 a)
 
static u32 AnalogEnterConfigMode (u8 *a)
 
void sio2cmdInitAnalog (void)
 
static void JogconReadData (u8 *a)
 
static u32 JogconGetPortCtrl1 (u32 a, u32 b)
 
static u32 JogconGetPortCtrl2 (u32 a)
 
static u32 JogconRegData (void)
 
static u32 JogconSize1 (void)
 
static u32 JogconSize2 (void)
 
static u32 JogconEnterConfigMode (u8 *a)
 
void sio2cmdInitJogcon (void)
 
static void ConfigReadData (u8 *a)
 
static u32 ConfigGetPortCtrl1 (u32 a, u32 b)
 
static u32 ConfigGetPortCtrl2 (u32 a)
 
static u32 ConfigRegData (void)
 
static u32 ConfigSize1 (void)
 
static u32 ConfigSize2 (void)
 
static u32 ConfigExitConfigMode (u8 *a)
 
static u32 ConfigQueryModel (u8 *a)
 
static u32 ConfigQueryAct (u8 *a)
 
static u32 ConfigQueryComb (u8 *a)
 
static u32 ConfigQueryMode (u8 *a)
 
static u32 ConfigQueryButtonMask (u8 *a)
 
static u32 ConfigSetButtonInfo (u8 *a)
 
static u32 ConfigSetVrefParam (u8 *a)
 
static u32 ConfigSetMainMode (u8 *a)
 
static u32 ConfigSetSetActAlign (u8 *a)
 
void sio2cmdInitConfig (void)
 
u32 sio2cmdCheckId (u8 id)
 
u32 sio2CmdGetPortCtrl1 (u8 id, u32 b, u8 c)
 
u32 sio2CmdGetPortCtrl2 (u32 id, u32 b)
 
void sio2CmdSetReadData (u32 id, u8 *buf)
 
u32 sio2CmdSetEnterConfigMode (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryModel (u32 id, u8 *buf)
 
u32 sio2CmdSetSetMainMode (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryAct (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryComb (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryMode (u32 id, u8 *buf)
 
u32 sio2CmdSetExitConfigMode (u32 id, u8 *buf)
 
u32 sio2CmdSetSetActAlign (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryButtonMask (u32 id, u8 *buf)
 
u32 sio2CmdSetSetVrefParam (u32 id, u8 *buf)
 
u32 sio2CmdSetSetButtonInfo (u32 id, u8 *buf)
 

Variables

static sio2Cmds_t sio2Cmds [SIO2_CMD_MAX]
 
static int numControllers
 

Detailed Description

IOP pad driver

Definition in file sio2Cmds.c.

Function Documentation

◆ sio2cmdReset()

void sio2cmdReset ( void  )

Definition at line 42 of file sio2Cmds.c.

◆ SetupCmds()

static int SetupCmds ( const sio2Cmds_t s)
static

Definition at line 52 of file sio2Cmds.c.

◆ FindPadsReadData()

static void FindPadsReadData ( u8 *  a)
static

Definition at line 106 of file sio2Cmds.c.

◆ FindPadsGetPortCtrl1()

static u32 FindPadsGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 115 of file sio2Cmds.c.

◆ FindPadsGetPortCtrl2()

static u32 FindPadsGetPortCtrl2 ( u32  a)
static

Definition at line 125 of file sio2Cmds.c.

◆ FindPadsGetSize1()

static u32 FindPadsGetSize1 ( void  )
static

Definition at line 133 of file sio2Cmds.c.

◆ FindPadsGetSize2()

static u32 FindPadsGetSize2 ( void  )
static

Definition at line 138 of file sio2Cmds.c.

◆ FindPadsRegData()

static u32 FindPadsRegData ( void  )
static

Definition at line 143 of file sio2Cmds.c.

◆ FindPadsEnterConfigMode()

static u32 FindPadsEnterConfigMode ( u8 *  a)
static

Definition at line 158 of file sio2Cmds.c.

◆ sio2cmdInitFindPads()

void sio2cmdInitFindPads ( void  )

Definition at line 165 of file sio2Cmds.c.

◆ MouseReadData()

static void MouseReadData ( u8 *  a)
static

Definition at line 196 of file sio2Cmds.c.

◆ MouseGetPortCtrl1()

static u32 MouseGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 207 of file sio2Cmds.c.

◆ MouseGetPortCtrl2()

static u32 MouseGetPortCtrl2 ( u32  a)
static

Definition at line 217 of file sio2Cmds.c.

◆ MouseRegData()

static u32 MouseRegData ( void  )
static

Definition at line 225 of file sio2Cmds.c.

◆ MouseSize1()

static u32 MouseSize1 ( void  )
static

Definition at line 230 of file sio2Cmds.c.

◆ MouseSize2()

static u32 MouseSize2 ( void  )
static

Definition at line 235 of file sio2Cmds.c.

◆ MouseEnterConfigMode()

static u32 MouseEnterConfigMode ( u8 *  a)
static

Definition at line 240 of file sio2Cmds.c.

◆ sio2cmdInitMouse()

void sio2cmdInitMouse ( void  )

Definition at line 253 of file sio2Cmds.c.

◆ NegiconReadData()

static void NegiconReadData ( u8 *  a)
static

Definition at line 285 of file sio2Cmds.c.

◆ NegiconGetPortCtrl1()

static u32 NegiconGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 298 of file sio2Cmds.c.

◆ NegiconGetPortCtrl2()

static u32 NegiconGetPortCtrl2 ( u32  a)
static

Definition at line 309 of file sio2Cmds.c.

◆ NegiconRegData()

static u32 NegiconRegData ( void  )
static

Definition at line 317 of file sio2Cmds.c.

◆ NegiconSize1()

static u32 NegiconSize1 ( void  )
static

Definition at line 322 of file sio2Cmds.c.

◆ NegiconSize2()

static u32 NegiconSize2 ( void  )
static

Definition at line 327 of file sio2Cmds.c.

◆ NegiconEnterConfigMode()

static u32 NegiconEnterConfigMode ( u8 *  a)
static

Definition at line 332 of file sio2Cmds.c.

◆ sio2cmdInitNegicon()

void sio2cmdInitNegicon ( void  )

Definition at line 347 of file sio2Cmds.c.

◆ KonamiGunReadData()

static void KonamiGunReadData ( u8 *  a)
static

Definition at line 378 of file sio2Cmds.c.

◆ KonamiGunGetPortCtrl1()

static u32 KonamiGunGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 387 of file sio2Cmds.c.

◆ KonamiGunGetPortCtrl2()

static u32 KonamiGunGetPortCtrl2 ( u32  a)
static

Definition at line 397 of file sio2Cmds.c.

◆ KonamiGunRegData()

static u32 KonamiGunRegData ( void  )
static

Definition at line 405 of file sio2Cmds.c.

◆ KonamiGunSize1()

static u32 KonamiGunSize1 ( void  )
static

Definition at line 410 of file sio2Cmds.c.

◆ KonamiGunSize2()

static u32 KonamiGunSize2 ( void  )
static

Definition at line 415 of file sio2Cmds.c.

◆ KonamiGunEnterConfigMode()

static u32 KonamiGunEnterConfigMode ( u8 *  a)
static

Definition at line 420 of file sio2Cmds.c.

◆ sio2cmdInitKonamiGun()

void sio2cmdInitKonamiGun ( void  )

Definition at line 431 of file sio2Cmds.c.

◆ DigitalReadData()

static void DigitalReadData ( u8 *  a)
static

Definition at line 462 of file sio2Cmds.c.

◆ DigitalGetPortCtrl1()

static u32 DigitalGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 471 of file sio2Cmds.c.

◆ DigitalGetPortCtrl2()

static u32 DigitalGetPortCtrl2 ( u32  a)
static

Definition at line 481 of file sio2Cmds.c.

◆ DigitalRegData()

static u32 DigitalRegData ( void  )
static

Definition at line 489 of file sio2Cmds.c.

◆ DigitalSize1()

static u32 DigitalSize1 ( void  )
static

Definition at line 494 of file sio2Cmds.c.

◆ DigitalSize2()

static u32 DigitalSize2 ( void  )
static

Definition at line 499 of file sio2Cmds.c.

◆ DigitalEnterConfigMode()

static u32 DigitalEnterConfigMode ( u8 *  a)
static

Definition at line 504 of file sio2Cmds.c.

◆ sio2cmdInitDigital()

void sio2cmdInitDigital ( void  )

Definition at line 515 of file sio2Cmds.c.

◆ JoystickReadData()

static void JoystickReadData ( u8 *  a)
static

Definition at line 546 of file sio2Cmds.c.

◆ JoystickGetPortCtrl1()

static u32 JoystickGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 559 of file sio2Cmds.c.

◆ JoystickGetPortCtrl2()

static u32 JoystickGetPortCtrl2 ( u32  a)
static

Definition at line 569 of file sio2Cmds.c.

◆ JoystickRegData()

static u32 JoystickRegData ( void  )
static

Definition at line 577 of file sio2Cmds.c.

◆ JoystickSize1()

static u32 JoystickSize1 ( void  )
static

Definition at line 582 of file sio2Cmds.c.

◆ JoystickSize2()

static u32 JoystickSize2 ( void  )
static

Definition at line 587 of file sio2Cmds.c.

◆ JoystickEnterConfigMode()

static u32 JoystickEnterConfigMode ( u8 *  a)
static

Definition at line 592 of file sio2Cmds.c.

◆ sio2cmdInitJoystick()

void sio2cmdInitJoystick ( void  )

Definition at line 607 of file sio2Cmds.c.

◆ NamcoGunReadData()

static void NamcoGunReadData ( u8 *  a)
static

Definition at line 638 of file sio2Cmds.c.

◆ NamcoGunGetPortCtrl1()

static u32 NamcoGunGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 651 of file sio2Cmds.c.

◆ NamcoGunGetPortCtrl2()

static u32 NamcoGunGetPortCtrl2 ( u32  a)
static

Definition at line 661 of file sio2Cmds.c.

◆ NamcoGunRegData()

static u32 NamcoGunRegData ( void  )
static

Definition at line 669 of file sio2Cmds.c.

◆ NamcoGunSize1()

static u32 NamcoGunSize1 ( void  )
static

Definition at line 674 of file sio2Cmds.c.

◆ NamcoGunSize2()

static u32 NamcoGunSize2 ( void  )
static

Definition at line 679 of file sio2Cmds.c.

◆ NamcoGunEnterConfigMode()

static u32 NamcoGunEnterConfigMode ( u8 *  a)
static

Definition at line 684 of file sio2Cmds.c.

◆ sio2cmdInitNamcoGun()

void sio2cmdInitNamcoGun ( void  )

Definition at line 699 of file sio2Cmds.c.

◆ AnalogReadData()

static void AnalogReadData ( u8 *  a)
static

Definition at line 730 of file sio2Cmds.c.

◆ AnalogGetPortCtrl1()

static u32 AnalogGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 749 of file sio2Cmds.c.

◆ AnalogGetPortCtrl2()

static u32 AnalogGetPortCtrl2 ( u32  a)
static

Definition at line 783 of file sio2Cmds.c.

◆ AnalogEnterConfigMode()

static u32 AnalogEnterConfigMode ( u8 *  a)
static

Definition at line 791 of file sio2Cmds.c.

◆ sio2cmdInitAnalog()

void sio2cmdInitAnalog ( void  )

Definition at line 812 of file sio2Cmds.c.

◆ JogconReadData()

static void JogconReadData ( u8 *  a)
static

Definition at line 843 of file sio2Cmds.c.

◆ JogconGetPortCtrl1()

static u32 JogconGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 860 of file sio2Cmds.c.

◆ JogconGetPortCtrl2()

static u32 JogconGetPortCtrl2 ( u32  a)
static

Definition at line 870 of file sio2Cmds.c.

◆ JogconRegData()

static u32 JogconRegData ( void  )
static

Definition at line 878 of file sio2Cmds.c.

◆ JogconSize1()

static u32 JogconSize1 ( void  )
static

Definition at line 883 of file sio2Cmds.c.

◆ JogconSize2()

static u32 JogconSize2 ( void  )
static

Definition at line 888 of file sio2Cmds.c.

◆ JogconEnterConfigMode()

static u32 JogconEnterConfigMode ( u8 *  a)
static

Definition at line 893 of file sio2Cmds.c.

◆ sio2cmdInitJogcon()

void sio2cmdInitJogcon ( void  )

Definition at line 912 of file sio2Cmds.c.

◆ ConfigReadData()

static void ConfigReadData ( u8 *  a)
static

Definition at line 943 of file sio2Cmds.c.

◆ ConfigGetPortCtrl1()

static u32 ConfigGetPortCtrl1 ( u32  a,
u32  b 
)
static

Definition at line 956 of file sio2Cmds.c.

◆ ConfigGetPortCtrl2()

static u32 ConfigGetPortCtrl2 ( u32  a)
static

Definition at line 966 of file sio2Cmds.c.

◆ ConfigRegData()

static u32 ConfigRegData ( void  )
static

Definition at line 974 of file sio2Cmds.c.

◆ ConfigSize1()

static u32 ConfigSize1 ( void  )
static

Definition at line 979 of file sio2Cmds.c.

◆ ConfigSize2()

static u32 ConfigSize2 ( void  )
static

Definition at line 984 of file sio2Cmds.c.

◆ ConfigExitConfigMode()

static u32 ConfigExitConfigMode ( u8 *  a)
static

Definition at line 989 of file sio2Cmds.c.

◆ ConfigQueryModel()

static u32 ConfigQueryModel ( u8 *  a)
static

Definition at line 1004 of file sio2Cmds.c.

◆ ConfigQueryAct()

static u32 ConfigQueryAct ( u8 *  a)
static

Definition at line 1019 of file sio2Cmds.c.

◆ ConfigQueryComb()

static u32 ConfigQueryComb ( u8 *  a)
static

Definition at line 1034 of file sio2Cmds.c.

◆ ConfigQueryMode()

static u32 ConfigQueryMode ( u8 *  a)
static

Definition at line 1049 of file sio2Cmds.c.

◆ ConfigQueryButtonMask()

static u32 ConfigQueryButtonMask ( u8 *  a)
static

Definition at line 1064 of file sio2Cmds.c.

◆ ConfigSetButtonInfo()

static u32 ConfigSetButtonInfo ( u8 *  a)
static

Definition at line 1079 of file sio2Cmds.c.

◆ ConfigSetVrefParam()

static u32 ConfigSetVrefParam ( u8 *  a)
static

Definition at line 1094 of file sio2Cmds.c.

◆ ConfigSetMainMode()

static u32 ConfigSetMainMode ( u8 *  a)
static

Definition at line 1109 of file sio2Cmds.c.

◆ ConfigSetSetActAlign()

static u32 ConfigSetSetActAlign ( u8 *  a)
static

Definition at line 1124 of file sio2Cmds.c.

◆ sio2cmdInitConfig()

void sio2cmdInitConfig ( void  )

Definition at line 1139 of file sio2Cmds.c.

◆ sio2cmdCheckId()

u32 sio2cmdCheckId ( u8  id)

Definition at line 1169 of file sio2Cmds.c.

◆ sio2CmdGetPortCtrl1()

u32 sio2CmdGetPortCtrl1 ( u8  id,
u32  b,
u8  c 
)

Definition at line 1184 of file sio2Cmds.c.

◆ sio2CmdGetPortCtrl2()

u32 sio2CmdGetPortCtrl2 ( u32  id,
u32  b 
)

Definition at line 1201 of file sio2Cmds.c.

◆ sio2CmdSetReadData()

void sio2CmdSetReadData ( u32  id,
u8 *  buf 
)

Definition at line 1218 of file sio2Cmds.c.

◆ sio2CmdSetEnterConfigMode()

u32 sio2CmdSetEnterConfigMode ( u32  id,
u8 *  buf 
)

Definition at line 1236 of file sio2Cmds.c.

◆ sio2CmdSetQueryModel()

u32 sio2CmdSetQueryModel ( u32  id,
u8 *  buf 
)

Definition at line 1254 of file sio2Cmds.c.

◆ sio2CmdSetSetMainMode()

u32 sio2CmdSetSetMainMode ( u32  id,
u8 *  buf 
)

Definition at line 1271 of file sio2Cmds.c.

◆ sio2CmdSetQueryAct()

u32 sio2CmdSetQueryAct ( u32  id,
u8 *  buf 
)

Definition at line 1288 of file sio2Cmds.c.

◆ sio2CmdSetQueryComb()

u32 sio2CmdSetQueryComb ( u32  id,
u8 *  buf 
)

Definition at line 1305 of file sio2Cmds.c.

◆ sio2CmdSetQueryMode()

u32 sio2CmdSetQueryMode ( u32  id,
u8 *  buf 
)

Definition at line 1322 of file sio2Cmds.c.

◆ sio2CmdSetExitConfigMode()

u32 sio2CmdSetExitConfigMode ( u32  id,
u8 *  buf 
)

Definition at line 1339 of file sio2Cmds.c.

◆ sio2CmdSetSetActAlign()

u32 sio2CmdSetSetActAlign ( u32  id,
u8 *  buf 
)

Definition at line 1356 of file sio2Cmds.c.

◆ sio2CmdSetQueryButtonMask()

u32 sio2CmdSetQueryButtonMask ( u32  id,
u8 *  buf 
)

Definition at line 1373 of file sio2Cmds.c.

◆ sio2CmdSetSetVrefParam()

u32 sio2CmdSetSetVrefParam ( u32  id,
u8 *  buf 
)

Definition at line 1390 of file sio2Cmds.c.

◆ sio2CmdSetSetButtonInfo()

u32 sio2CmdSetSetButtonInfo ( u32  id,
u8 *  buf 
)

Definition at line 1408 of file sio2Cmds.c.

Variable Documentation

◆ sio2Cmds

sio2Cmds_t sio2Cmds[SIO2_CMD_MAX]
static

Definition at line 39 of file sio2Cmds.c.

◆ numControllers

int numControllers
static

Definition at line 40 of file sio2Cmds.c.