PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xsio2man.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef __XSIO2MAN_H__
17#define __XSIO2MAN_H__
18
19#include <sio2man.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25typedef int (*sio2_mtap_change_slot_cb_t)(s32 *status);
26typedef int (*sio2_mtap_get_slot_max_cb_t)(int port);
27typedef int (*sio2_mtap_get_slot_max2_cb_t)(int port);
28typedef void (*sio2_mtap_update_slots_t)(void);
29
30void sio2_transfer_reset(void);
31void sio2_mtap_transfer_init(void);
32int sio2_transfer2(sio2_transfer_data_t *td);
33void sio2_transfer_reset2(void);
34void sio2_mtap_change_slot_set(sio2_mtap_change_slot_cb_t cb);
35void sio2_mtap_get_slot_max_set(sio2_mtap_get_slot_max_cb_t cb);
36void sio2_mtap_get_slot_max2_set(sio2_mtap_get_slot_max2_cb_t cb);
37void sio2_mtap_update_slots_set(sio2_mtap_update_slots_t cb);
38int sio2_mtap_change_slot(s32 *arg);
39int sio2_mtap_get_slot_max(int port);
40int sio2_mtap_get_slot_max2(int port);
41void sio2_mtap_update_slots(void);
42
43#define xsio2man_IMPORTS_start DECLARE_IMPORT_TABLE(sio2man, 1, 2)
44#define xsio2man_IMPORTS_end END_IMPORT_TABLE
45
46#ifndef NO_XSIO2MAN_IMPORTS
47#define I_sio2_transfer_reset DECLARE_IMPORT(26, sio2_transfer_reset)
48#define I_sio2_mtap_transfer_init DECLARE_IMPORT(48, sio2_mtap_transfer_init)
49#define I_sio2_transfer2 DECLARE_IMPORT(49, sio2_transfer2)
50#define I_sio2_transfer_reset2 DECLARE_IMPORT(50, sio2_transfer_reset2)
51#define I_sio2_mtap_change_slot_set DECLARE_IMPORT(51, sio2_mtap_change_slot_set)
52#define I_sio2_mtap_get_slot_max_set DECLARE_IMPORT(52, sio2_mtap_get_slot_max_set)
53#define I_sio2_mtap_get_slot_max2_set DECLARE_IMPORT(53, sio2_mtap_get_slot_max2_set)
54#define I_sio2_mtap_update_slots_set DECLARE_IMPORT(54, sio2_mtap_update_slots_set)
55#define I_sio2_mtap_change_slot DECLARE_IMPORT(55, sio2_mtap_change_slot)
56#define I_sio2_mtap_get_slot_max DECLARE_IMPORT(56, sio2_mtap_get_slot_max)
57#define I_sio2_mtap_get_slot_max2 DECLARE_IMPORT(57, sio2_mtap_get_slot_max2)
58#define I_sio2_mtap_update_slots DECLARE_IMPORT(58, sio2_mtap_update_slots)
59#endif
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* __XSIO2MAN_H__ */