PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sio2man.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for sio2man.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _sio2_dma_arg
 
struct  sio2_transfer_data_t
 

Macros

#define sio2man_IMPORTS_start   DECLARE_IMPORT_TABLE(sio2man, 1, 1)
 
#define sio2man_IMPORTS_end   END_IMPORT_TABLE
 
#define I_sio2_ctrl_set   DECLARE_IMPORT(4, sio2_ctrl_set)
 
#define I_sio2_ctrl_get   DECLARE_IMPORT(5, sio2_ctrl_get)
 
#define I_sio2_stat6c_get   DECLARE_IMPORT(6, sio2_stat6c_get)
 
#define I_sio2_portN_ctrl1_set   DECLARE_IMPORT(7, sio2_portN_ctrl1_set)
 
#define I_sio2_portN_ctrl1_get   DECLARE_IMPORT(8, sio2_portN_ctrl1_get)
 
#define I_sio2_portN_ctrl2_set   DECLARE_IMPORT(9, sio2_portN_ctrl2_set)
 
#define I_sio2_portN_ctrl2_get   DECLARE_IMPORT(10, sio2_portN_ctrl2_get)
 
#define I_sio2_stat70_get   DECLARE_IMPORT(11, sio2_stat70_get)
 
#define I_sio2_regN_set   DECLARE_IMPORT(12, sio2_regN_set)
 
#define I_sio2_regN_get   DECLARE_IMPORT(13, sio2_regN_get)
 
#define I_sio2_stat74_get   DECLARE_IMPORT(14, sio2_stat74_get)
 
#define I_sio2_unkn78_set   DECLARE_IMPORT(15, sio2_unkn78_set)
 
#define I_sio2_unkn78_get   DECLARE_IMPORT(16, sio2_unkn78_get)
 
#define I_sio2_unkn7c_set   DECLARE_IMPORT(17, sio2_unkn7c_set)
 
#define I_sio2_unkn7c_get   DECLARE_IMPORT(18, sio2_unkn7c_get)
 
#define I_sio2_data_out   DECLARE_IMPORT(19, sio2_data_out)
 
#define I_sio2_data_in   DECLARE_IMPORT(20, sio2_data_in)
 
#define I_sio2_stat_set   DECLARE_IMPORT(21, sio2_stat_set)
 
#define I_sio2_stat_get   DECLARE_IMPORT(22, sio2_stat_get)
 
#define I_sio2_pad_transfer_init   DECLARE_IMPORT(23, sio2_pad_transfer_init)
 
#define I_sio2_mc_transfer_init   DECLARE_IMPORT(24, sio2_mc_transfer_init)
 
#define I_sio2_transfer   DECLARE_IMPORT(25, sio2_transfer)
 

Functions

void sio2_ctrl_set (u32 val)
 
u32 sio2_ctrl_get (void)
 
u32 sio2_stat6c_get (void)
 
void sio2_portN_ctrl1_set (int N, u32 val)
 
u32 sio2_portN_ctrl1_get (int N)
 
void sio2_portN_ctrl2_set (int N, u32 val)
 
u32 sio2_portN_ctrl2_get (int N)
 
u32 sio2_stat70_get (void)
 
void sio2_regN_set (int N, u32 val)
 
u32 sio2_regN_get (int N)
 
u32 sio2_stat74_get (void)
 
void sio2_unkn78_set (u32 val)
 
u32 sio2_unkn78_get (void)
 
void sio2_unkn7c_set (u32 val)
 
u32 sio2_unkn7c_get (void)
 
void sio2_data_out (u8 val)
 
u8 sio2_data_in (void)
 
void sio2_stat_set (u32 val)
 
u32 sio2_stat_get (void)
 
void sio2_pad_transfer_init (void)
 
void sio2_mc_transfer_init (void)
 
int sio2_transfer (sio2_transfer_data_t *td)
 

Detailed Description

rom0:SIO2MAN module definitions

Definition in file sio2man.h.


Data Structure Documentation

◆ _sio2_dma_arg

struct _sio2_dma_arg

Definition at line 22 of file sio2man.h.

Data Fields
void * addr
int size
int count

◆ sio2_transfer_data_t

struct sio2_transfer_data_t

Definition at line 28 of file sio2man.h.

+ Collaboration diagram for sio2_transfer_data_t:
Data Fields
u32 stat6c
u32 port_ctrl1[4]
u32 port_ctrl2[4]
u32 stat70
u32 regdata[16]
u32 stat74
u32 in_size
u32 out_size
u8 * in
u8 * out
struct _sio2_dma_arg in_dma
struct _sio2_dma_arg out_dma

Macro Definition Documentation

◆ sio2man_IMPORTS_start

#define sio2man_IMPORTS_start   DECLARE_IMPORT_TABLE(sio2man, 1, 1)

Definition at line 72 of file sio2man.h.

◆ sio2man_IMPORTS_end

#define sio2man_IMPORTS_end   END_IMPORT_TABLE

Definition at line 73 of file sio2man.h.

◆ I_sio2_ctrl_set

#define I_sio2_ctrl_set   DECLARE_IMPORT(4, sio2_ctrl_set)

Definition at line 75 of file sio2man.h.

◆ I_sio2_ctrl_get

#define I_sio2_ctrl_get   DECLARE_IMPORT(5, sio2_ctrl_get)

Definition at line 76 of file sio2man.h.

◆ I_sio2_stat6c_get

#define I_sio2_stat6c_get   DECLARE_IMPORT(6, sio2_stat6c_get)

Definition at line 77 of file sio2man.h.

◆ I_sio2_portN_ctrl1_set

#define I_sio2_portN_ctrl1_set   DECLARE_IMPORT(7, sio2_portN_ctrl1_set)

Definition at line 78 of file sio2man.h.

◆ I_sio2_portN_ctrl1_get

#define I_sio2_portN_ctrl1_get   DECLARE_IMPORT(8, sio2_portN_ctrl1_get)

Definition at line 79 of file sio2man.h.

◆ I_sio2_portN_ctrl2_set

#define I_sio2_portN_ctrl2_set   DECLARE_IMPORT(9, sio2_portN_ctrl2_set)

Definition at line 80 of file sio2man.h.

◆ I_sio2_portN_ctrl2_get

#define I_sio2_portN_ctrl2_get   DECLARE_IMPORT(10, sio2_portN_ctrl2_get)

Definition at line 81 of file sio2man.h.

◆ I_sio2_stat70_get

#define I_sio2_stat70_get   DECLARE_IMPORT(11, sio2_stat70_get)

Definition at line 82 of file sio2man.h.

◆ I_sio2_regN_set

#define I_sio2_regN_set   DECLARE_IMPORT(12, sio2_regN_set)

Definition at line 83 of file sio2man.h.

◆ I_sio2_regN_get

#define I_sio2_regN_get   DECLARE_IMPORT(13, sio2_regN_get)

Definition at line 84 of file sio2man.h.

◆ I_sio2_stat74_get

#define I_sio2_stat74_get   DECLARE_IMPORT(14, sio2_stat74_get)

Definition at line 85 of file sio2man.h.

◆ I_sio2_unkn78_set

#define I_sio2_unkn78_set   DECLARE_IMPORT(15, sio2_unkn78_set)

Definition at line 86 of file sio2man.h.

◆ I_sio2_unkn78_get

#define I_sio2_unkn78_get   DECLARE_IMPORT(16, sio2_unkn78_get)

Definition at line 87 of file sio2man.h.

◆ I_sio2_unkn7c_set

#define I_sio2_unkn7c_set   DECLARE_IMPORT(17, sio2_unkn7c_set)

Definition at line 88 of file sio2man.h.

◆ I_sio2_unkn7c_get

#define I_sio2_unkn7c_get   DECLARE_IMPORT(18, sio2_unkn7c_get)

Definition at line 89 of file sio2man.h.

◆ I_sio2_data_out

#define I_sio2_data_out   DECLARE_IMPORT(19, sio2_data_out)

Definition at line 90 of file sio2man.h.

◆ I_sio2_data_in

#define I_sio2_data_in   DECLARE_IMPORT(20, sio2_data_in)

Definition at line 91 of file sio2man.h.

◆ I_sio2_stat_set

#define I_sio2_stat_set   DECLARE_IMPORT(21, sio2_stat_set)

Definition at line 92 of file sio2man.h.

◆ I_sio2_stat_get

#define I_sio2_stat_get   DECLARE_IMPORT(22, sio2_stat_get)

Definition at line 93 of file sio2man.h.

◆ I_sio2_pad_transfer_init

#define I_sio2_pad_transfer_init   DECLARE_IMPORT(23, sio2_pad_transfer_init)

Definition at line 94 of file sio2man.h.

◆ I_sio2_mc_transfer_init

#define I_sio2_mc_transfer_init   DECLARE_IMPORT(24, sio2_mc_transfer_init)

Definition at line 95 of file sio2man.h.

◆ I_sio2_transfer

#define I_sio2_transfer   DECLARE_IMPORT(25, sio2_transfer)

Definition at line 96 of file sio2man.h.

Function Documentation

◆ sio2_ctrl_set()

void sio2_ctrl_set ( u32  val)

Definition at line 500 of file sio2man.c.

◆ sio2_ctrl_get()

u32 sio2_ctrl_get ( void  )

Definition at line 501 of file sio2man.c.

◆ sio2_stat6c_get()

u32 sio2_stat6c_get ( void  )

Definition at line 502 of file sio2man.c.

◆ sio2_portN_ctrl1_set()

void sio2_portN_ctrl1_set ( int  N,
u32  val 
)

Definition at line 503 of file sio2man.c.

◆ sio2_portN_ctrl1_get()

u32 sio2_portN_ctrl1_get ( int  N)

Definition at line 504 of file sio2man.c.

◆ sio2_portN_ctrl2_set()

void sio2_portN_ctrl2_set ( int  N,
u32  val 
)

Definition at line 505 of file sio2man.c.

◆ sio2_portN_ctrl2_get()

u32 sio2_portN_ctrl2_get ( int  N)

Definition at line 506 of file sio2man.c.

◆ sio2_stat70_get()

u32 sio2_stat70_get ( void  )

Definition at line 507 of file sio2man.c.

◆ sio2_regN_set()

void sio2_regN_set ( int  N,
u32  val 
)

Definition at line 508 of file sio2man.c.

◆ sio2_regN_get()

u32 sio2_regN_get ( int  N)

Definition at line 509 of file sio2man.c.

◆ sio2_stat74_get()

u32 sio2_stat74_get ( void  )

Definition at line 510 of file sio2man.c.

◆ sio2_unkn78_set()

void sio2_unkn78_set ( u32  val)

Definition at line 511 of file sio2man.c.

◆ sio2_unkn78_get()

u32 sio2_unkn78_get ( void  )

Definition at line 512 of file sio2man.c.

◆ sio2_unkn7c_set()

void sio2_unkn7c_set ( u32  val)

Definition at line 513 of file sio2man.c.

◆ sio2_unkn7c_get()

u32 sio2_unkn7c_get ( void  )

Definition at line 514 of file sio2man.c.

◆ sio2_data_out()

void sio2_data_out ( u8  val)

Definition at line 515 of file sio2man.c.

◆ sio2_data_in()

u8 sio2_data_in ( void  )

Definition at line 516 of file sio2man.c.

◆ sio2_stat_set()

void sio2_stat_set ( u32  val)

Definition at line 517 of file sio2man.c.

◆ sio2_stat_get()

u32 sio2_stat_get ( void  )

Definition at line 518 of file sio2man.c.

◆ sio2_pad_transfer_init()

void sio2_pad_transfer_init ( void  )

Definition at line 385 of file sio2man.c.

◆ sio2_mc_transfer_init()

void sio2_mc_transfer_init ( void  )

Definition at line 393 of file sio2man.c.

◆ sio2_transfer()

int sio2_transfer ( sio2_transfer_data_t td)

Definition at line 411 of file sio2man.c.