sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
sio2man_hook.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 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
# taken from MX4SIO driver for simplicity.
11
# all credits go to maximus32
12
*/
13
18
#ifndef SIO2MAN_HOOK_H
19
#define SIO2MAN_HOOK_H
20
21
#ifndef SIO2MAN_HOOK_SUPPORT_SET_INTR_HANDLER
22
#define SIO2MAN_HOOK_SUPPORT_SET_INTR_HANDLER 0
23
#endif
24
25
extern
int
sio2man_hook_init();
26
extern
void
sio2man_hook_deinit();
27
28
// Lock all communication to SIO2MAN
29
// this is needed for drivers that communicate directly to sio2, like mx4sio.
30
// Do NOT lock for long duration, only for single (high speed) transfers
31
extern
void
sio2man_hook_sio2_lock();
32
extern
void
sio2man_hook_sio2_unlock();
33
#if SIO2MAN_HOOK_SUPPORT_SET_INTR_HANDLER
34
extern
void
sio2man_hook_sio2_set_intr_handler(
int
(*handler)(
void
*userdata),
void
*userdata);
35
#endif
36
37
#endif
core
mx4sio_bd
src
sio2man_hook.h
Generated by
1.18.0