PS2SDK
PS2 Homebrew Libraries
freemtap.c File Reference
#include "types.h"
#include "irx.h"
#include "stdio.h"
#include "loadcore.h"
#include "thevent.h"
#include "thbase.h"
#include "xsio2man.h"
#include "freemtap.h"
+ Include dependency graph for freemtap.c:

Go to the source code of this file.

Macros

#define BANNER   "FREEMTAP %s\n"
 
#define VERSION   "v1.0"
 
#define EF_UPDATE_SLOTS   0x1
 
#define EF_EXIT_THREAD   0x2
 

Functions

 IRX_ID ("multitap_manager", 2, 2)
 
s32 read_stat6c_bit (u32 bit, sio2_transfer_data_t *tdata)
 
void get_slot_number_setup_td (u32 port, u32 reg)
 
s32 get_slot_number_check_td (u32 bit)
 
s32 get_slot_number (u32 port, u32 retries)
 
void update_slot_numbers_thread (void *arg)
 
s32 change_slot_setup_td (u32 port, s32 slot, u32 reg)
 
s32 change_slot_check_td (u32 a)
 
int change_slot (s32 *arg)
 
int get_slots1 (int port)
 
int get_slots2 (int port)
 
void update_slot_numbers ()
 
int _start (int argc, char *argv[])
 
void shutdown ()
 
s32 mtapPortOpen (u32 port)
 
s32 mtapPortClose (u32 port)
 
s32 mtapGetConnection (u32 port)
 
s32 mtapGetSlotNumber (u32 port)
 
s32 mtapChangeSlot (u32 port, u32 slot)
 

Variables

struct irx_export_table _exp_mtapman
 
static s32 event_flag
 
static s32 threadid_main
 
static u32 state_open [4]
 
static u32 state_getcon [4]
 
static u32 state_slots [4]
 
static u8 in_buffer [256]
 
static u8 out_buffer [256]
 
static sio2_transfer_data_t td
 

Detailed Description

IOP multitap driver

Definition in file freemtap.c.