sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
iopmgr.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
17
#ifndef __IOPMGR_H__
18
#define __IOPMGR_H__
19
20
#include <types.h>
21
#include <
irx.h
>
22
#ifndef __IOMANX_H__
23
#include <
ioman.h
>
24
#endif
25
#include <
loadcore.h
>
26
27
/* Module info entry. */
28
typedef
ModuleInfo_t
smod_mod_info_t
__attribute__
((deprecated));
//For backward-compatibility with older projects.
29
30
/* from smod.c */
31
extern
ModuleInfo_t
*
smod_get_next_mod
(
ModuleInfo_t
*cur_mod);
32
extern
ModuleInfo_t
*
smod_get_mod_by_name
(
const
char
*name);
33
extern
int
smod_get_modcount_by_name
(
const
char
*name);
34
extern
int
smod_get_modversion_by_name
(
const
char
*name);
35
extern
int
smod_unload_module
(
const
char
*name);
36
37
/* from slib.c */
38
extern
iop_library_t *
slib_get_lib_by_name
(
const
char
*name);
39
extern
void
*
slib_get_exportlist_by_name
(
const
char
*name);
40
extern
int
slib_get_version_by_name
(
const
char
*name);
41
extern
int
slib_release_library
(
const
char
*name);
42
43
/* from devices.c */
44
extern
iop_device_t *
iopmgr_get_iomandev
(
char
*device);
45
extern
iop_device_t *
iopmgr_get_iomanxdev
(
char
*device);
46
extern
iop_device_t *
iopmgr_get_device
(
char
*device);
47
extern
int
iopmgr_get_devicetype
(
char
*device);
48
extern
int
iopmgr_get_devicelist
(
int
man,
int
devtype,
char
*buffer);
49
50
/* from modules.c */
51
52
/* These are the types returned by the devicetype call as return values. */
53
#define IOPMGR_DEVTYPE_INVALID 0
54
#define IOPMGR_DEVTYPE_IOMAN 1
55
#define IOPMGR_DEVTYPE_IOMANX 2
56
#define IOPMGR_DEVTYPE_ALL 0xffff
57
58
/* iomgr module identifier */
59
#define IOPMGR_MODNAME "IOP_Manager"
60
#define IOPMGR_LIBNAME "iopmgr"
61
62
/* iomgr module version number, so programs can check required version is installed */
63
#define IOPMGR_VERSION_HIGH 1
64
#define IOPMGR_VERSION_LOW 1
65
66
/* defines for ioman and iomanx module identifiers , so we can locate them */
67
#define IOPMGR_IOMAN_IDENT "IO/File_Manager"
68
#define IOPMGR_IOMANX_IDENT "IOX/File_Manager"
69
70
#define iopmgr_IMPORTS_start DECLARE_IMPORT_TABLE(iopmgr, 1, 1)
71
#define iopmgr_IMPORTS_end END_IMPORT_TABLE
72
73
#define I_smod_get_next_mod DECLARE_IMPORT(4, smod_get_next_mod)
74
#define I_smod_get_mod_by_name DECLARE_IMPORT(5, smod_get_mod_by_name)
75
#define I_smod_get_modcount_by_name DECLARE_IMPORT(6, smod_get_modcount_by_name)
76
#define I_smod_get_modversion_by_name DECLARE_IMPORT(7, smod_get_modversion_by_name)
77
#define I_smod_unload_module DECLARE_IMPORT(8, smod_unload_module)
78
#define I_slib_get_lib_by_name DECLARE_IMPORT(10, slib_get_lib_by_name)
79
#define I_slib_get_exportlist_by_name DECLARE_IMPORT(11, slib_get_exportlist_by_name)
80
#define I_slib_get_version_by_name DECLARE_IMPORT(12, slib_get_version_by_name)
81
#define I_slib_release_library DECLARE_IMPORT(13, slib_release_library)
82
#define I_iopmgr_get_iomandev DECLARE_IMPORT(15, iopmgr_get_iomandev)
83
#define I_iopmgr_get_iomanxdev DECLARE_IMPORT(16, iopmgr_get_iomanxdev)
84
#define I_iopmgr_get_device DECLARE_IMPORT(17, iopmgr_get_device)
85
#define I_iopmgr_get_devicetype DECLARE_IMPORT(18, iopmgr_get_devicetype)
86
#define I_iopmgr_get_devicelist DECLARE_IMPORT(19, iopmgr_get_devicelist)
87
88
#endif
/* __IOPMGR_H__ */
iopmgr_get_iomandev
iop_device_t * iopmgr_get_iomandev(char *device)
Definition
devices.c:34
iopmgr_get_device
iop_device_t * iopmgr_get_device(char *device)
Definition
devices.c:163
slib_get_lib_by_name
iop_library_t * slib_get_lib_by_name(const char *name)
Definition
slib.c:37
iopmgr_get_iomanxdev
iop_device_t * iopmgr_get_iomanxdev(char *device)
Definition
devices.c:67
smod_get_modversion_by_name
int smod_get_modversion_by_name(const char *name)
Definition
smod.c:115
slib_release_library
int slib_release_library(const char *name)
Definition
slib.c:103
smod_get_next_mod
ModuleInfo_t * smod_get_next_mod(ModuleInfo_t *cur_mod)
Definition
smod.c:39
iopmgr_get_devicelist
int iopmgr_get_devicelist(int man, int devtype, char *buffer)
Definition
devices.c:102
smod_get_modcount_by_name
int smod_get_modcount_by_name(const char *name)
Definition
smod.c:88
smod_get_mod_by_name
ModuleInfo_t * smod_get_mod_by_name(const char *name)
Definition
smod.c:63
iopmgr_get_devicetype
int iopmgr_get_devicetype(char *device)
Definition
devices.c:184
smod_unload_module
int smod_unload_module(const char *name)
Definition
smod.c:136
slib_get_version_by_name
int slib_get_version_by_name(const char *name)
Definition
slib.c:82
slib_get_exportlist_by_name
void * slib_get_exportlist_by_name(const char *name)
Definition
slib.c:62
ioman.h
irx.h
loadcore.h
ModuleInfo_t
struct _ModuleInfo ModuleInfo_t
smod_mod_info_t
struct _smod_mod_info smod_mod_info_t
__attribute__
Definition
gif_registers.h:40
core
iopmgr
include
iopmgr.h
Generated by
1.18.0