PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
rsio2man.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
17#ifndef __RSIO2MAN_H__
18#define __RSIO2MAN_H__
19
20#define NO_XSIO2MAN_V2_CONFLICTING_IMPORTS
21#include <xsio2man.h>
22#undef NO_XSIO2MAN_V2_CONFLICTING_IMPORTS
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28extern void sio2_rm_transfer_init(void);
29extern void sio2_imode_transfer_init(void);
30
31// The following was added in SDK 2.4.
32extern void sio2_pad2_transfer_init(void);
33extern void sio2_transfer_reset3(void);
34
35// The following was added with export version 2.4 in SDK 2.6.
36extern void sio2_mc2_transfer_init(void);
37
38// The following was added with export version 2.7 in SDK 3.0.3.
39extern void sio2_set_intr_handler(int (*handler)(void *), void *userdata);
40extern void sio2_set_ctrl_c(void);
41extern void sio2_set_ctrl_1(void);
42extern void sio2_wait_for_intr(void);
43
44#define rsio2man_IMPORTS_start DECLARE_IMPORT_TABLE(sio2man, 2, 3)
45#define rsio2man_IMPORTS_end END_IMPORT_TABLE
46
47#define I_sio2_rm_transfer_init DECLARE_IMPORT(49, sio2_rm_transfer_init)
48#define I_sio2_imode_transfer_init DECLARE_IMPORT(50, sio2_imode_transfer_init)
49#define I_sio2_transfer2 DECLARE_IMPORT(51, sio2_transfer2)
50#define I_sio2_transfer_reset2 DECLARE_IMPORT(52, sio2_transfer_reset2)
51#define I_sio2_mtap_change_slot_set DECLARE_IMPORT(53, sio2_mtap_change_slot_set)
52#define I_sio2_mtap_get_slot_max_set DECLARE_IMPORT(54, sio2_mtap_get_slot_max_set)
53#define I_sio2_mtap_get_slot_max2_set DECLARE_IMPORT(55, sio2_mtap_get_slot_max2_set)
54#define I_sio2_mtap_update_slots_set DECLARE_IMPORT(56, sio2_mtap_update_slots_set)
55#define I_sio2_mtap_change_slot DECLARE_IMPORT(57, sio2_mtap_change_slot)
56#define I_sio2_mtap_get_slot_max DECLARE_IMPORT(58, sio2_mtap_get_slot_max)
57#define I_sio2_mtap_get_slot_max2 DECLARE_IMPORT(59, sio2_mtap_get_slot_max2)
58#define I_sio2_mtap_update_slots DECLARE_IMPORT(60, sio2_mtap_update_slots)
59#define I_sio2_pad2_transfer_init DECLARE_IMPORT(61, sio2_pad2_transfer_init)
60#define I_sio2_transfer_reset3 DECLARE_IMPORT(62, sio2_transfer_reset3)
61#define I_sio2_mc2_transfer_init DECLARE_IMPORT(63, sio2_mc2_transfer_init)
62#define I_sio2_set_intr_handler DECLARE_IMPORT(64, sio2_set_intr_handler)
63#define I_sio2_set_ctrl_c DECLARE_IMPORT(65, sio2_set_ctrl_c)
64#define I_sio2_set_ctrl_1 DECLARE_IMPORT(66, sio2_set_ctrl_1)
65#define I_sio2_wait_for_intr DECLARE_IMPORT(67, sio2_wait_for_intr)
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* __RSIO2MAN_H__ */