PS2SDK
PS2 Homebrew Libraries
|
#include <irx.h>
#include <defs.h>
#include <types.h>
#include <loadcore.h>
#include <intrman.h>
#include <dmacman.h>
#include <stdio.h>
#include <thbase.h>
#include <thevent.h>
#include <ioman.h>
#include "xsio2man.h"
Go to the source code of this file.
Macros | |
#define | SIO2_REG_BASE 0xbf808200 |
#define | SIO2_REG_PORT0_CTRL1 0xbf808240 |
#define | SIO2_REG_PORT0_CTRL2 0xbf808244 |
#define | SIO2_REG_DATA_OUT 0xbf808260 |
#define | SIO2_REG_DATA_IN 0xbf808264 |
#define | SIO2_REG_CTRL 0xbf808268 |
#define | SIO2_REG_STAT6C 0xbf80826c |
#define | SIO2_REG_STAT70 0xbf808270 |
#define | SIO2_REG_STAT74 0xbf808274 |
#define | SIO2_REG_UNKN78 0xbf808278 |
#define | SIO2_REG_UNKN7C 0xbf80827c |
#define | SIO2_REG_STAT 0xbf808280 |
#define | EF_PAD_TRANSFER_INIT 0x00000001 |
#define | EF_PAD_TRANSFER_READY 0x00000002 |
#define | EF_MC_TRANSFER_INIT 0x00000004 |
#define | EF_MC_TRANSFER_READY 0x00000008 |
#define | EF_TRANSFER_START 0x00000010 |
#define | EF_TRANSFER_FINISH 0x00000020 |
#define | EF_TRANSFER_RESET 0x00000040 |
#define | EF_SIO2_INTR_COMPLETE 0x00000080 |
#define | EPRINTF(format, args...) printf("%s: " format, _irx_id.n , ## args) |
Functions | |
IRX_ID ("sio2man", 1, 1) | |
int | sio2_intr_handler (void *arg) |
void | send_td (sio2_transfer_data_t *td) |
void | recv_td (sio2_transfer_data_t *td) |
void | main_thread (void *unused) |
int | create_main_thread (void) |
int | create_event_flag (void) |
void | shutdown (void) |
int | _start (int argc, char *argv[]) |
void | sio2_pad_transfer_init (void) |
void | sio2_mc_transfer_init (void) |
int | sio2_transfer (sio2_transfer_data_t *td) |
void | sio2_ctrl_set (u32 val) |
u32 | sio2_ctrl_get () |
u32 | sio2_stat6c_get () |
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 | sio2_regN_set (int N, u32 val) |
u32 | sio2_regN_get (int N) |
u32 | sio2_stat74_get () |
void | sio2_unkn78_set (u32 val) |
u32 | sio2_unkn78_get () |
void | sio2_unkn7c_set (u32 val) |
u32 | sio2_unkn7c_get () |
void | sio2_data_out (u8 val) |
u8 | sio2_data_in () |
void | sio2_stat_set (u32 val) |
u32 | sio2_stat_get () |
Variables | |
struct irx_export_table | _exp_sio2man |
int | init = 0 |
int | event_flag = -1 |
int | thid = -1 |
sio2_transfer_data_t * | transfer_data = NULL |
int(* | mtap_change_slot_cb )(s32 *) = NULL |
int(* | mtap_get_slot_max_cb )(int) = NULL |
int(* | mtap_get_slot_max2_cb )(int) = NULL |
void(* | mtap_update_slots_cb )(void) = NULL |
SIO2 logging utility.
Definition in file sio2man.c.
#define EPRINTF | ( | format, | |
args... | |||
) | printf("%s: " format, _irx_id.n , ## args) |
void send_td | ( | sio2_transfer_data_t * | td | ) |
void recv_td | ( | sio2_transfer_data_t * | td | ) |
int sio2_transfer | ( | sio2_transfer_data_t * | td | ) |
int event_flag = -1 |
sio2_transfer_data_t* transfer_data = NULL |