sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
iopmgr.h File Reference
#include <types.h>
#include <irx.h>
#include <ioman.h>
#include <loadcore.h>

Go to the source code of this file.

Macros

#define IOPMGR_DEVTYPE_INVALID   0
#define IOPMGR_DEVTYPE_IOMAN   1
#define IOPMGR_DEVTYPE_IOMANX   2
#define IOPMGR_DEVTYPE_ALL   0xffff
#define IOPMGR_MODNAME   "IOP_Manager"
#define IOPMGR_LIBNAME   "iopmgr"
#define IOPMGR_VERSION_HIGH   1
#define IOPMGR_VERSION_LOW   1
#define IOPMGR_IOMAN_IDENT   "IO/File_Manager"
#define IOPMGR_IOMANX_IDENT   "IOX/File_Manager"
#define iopmgr_IMPORTS_start   DECLARE_IMPORT_TABLE(iopmgr, 1, 1)
#define iopmgr_IMPORTS_end   END_IMPORT_TABLE
#define I_smod_get_next_mod   DECLARE_IMPORT(4, smod_get_next_mod)
#define I_smod_get_mod_by_name   DECLARE_IMPORT(5, smod_get_mod_by_name)
#define I_smod_get_modcount_by_name   DECLARE_IMPORT(6, smod_get_modcount_by_name)
#define I_smod_get_modversion_by_name   DECLARE_IMPORT(7, smod_get_modversion_by_name)
#define I_smod_unload_module   DECLARE_IMPORT(8, smod_unload_module)
#define I_slib_get_lib_by_name   DECLARE_IMPORT(10, slib_get_lib_by_name)
#define I_slib_get_exportlist_by_name   DECLARE_IMPORT(11, slib_get_exportlist_by_name)
#define I_slib_get_version_by_name   DECLARE_IMPORT(12, slib_get_version_by_name)
#define I_slib_release_library   DECLARE_IMPORT(13, slib_release_library)
#define I_iopmgr_get_iomandev   DECLARE_IMPORT(15, iopmgr_get_iomandev)
#define I_iopmgr_get_iomanxdev   DECLARE_IMPORT(16, iopmgr_get_iomanxdev)
#define I_iopmgr_get_device   DECLARE_IMPORT(17, iopmgr_get_device)
#define I_iopmgr_get_devicetype   DECLARE_IMPORT(18, iopmgr_get_devicetype)
#define I_iopmgr_get_devicelist   DECLARE_IMPORT(19, iopmgr_get_devicelist)

Typedefs

typedef ModuleInfo_t smod_mod_info_t __attribute__((deprecated))

Functions

ModuleInfo_t * smod_get_next_mod (ModuleInfo_t *cur_mod)
ModuleInfo_t * smod_get_mod_by_name (const char *name)
int smod_get_modcount_by_name (const char *name)
int smod_get_modversion_by_name (const char *name)
int smod_unload_module (const char *name)
iop_library_t * slib_get_lib_by_name (const char *name)
void * slib_get_exportlist_by_name (const char *name)
int slib_get_version_by_name (const char *name)
int slib_release_library (const char *name)
iop_device_t * iopmgr_get_iomandev (char *device)
iop_device_t * iopmgr_get_iomanxdev (char *device)
iop_device_t * iopmgr_get_device (char *device)
int iopmgr_get_devicetype (char *device)
int iopmgr_get_devicelist (int man, int devtype, char *buffer)

Detailed Description

iop manager includes

Definition in file iopmgr.h.

Macro Definition Documentation

◆ I_iopmgr_get_device

#define I_iopmgr_get_device   DECLARE_IMPORT(17, iopmgr_get_device)

Definition at line 84 of file iopmgr.h.

◆ I_iopmgr_get_devicelist

#define I_iopmgr_get_devicelist   DECLARE_IMPORT(19, iopmgr_get_devicelist)

Definition at line 86 of file iopmgr.h.

◆ I_iopmgr_get_devicetype

#define I_iopmgr_get_devicetype   DECLARE_IMPORT(18, iopmgr_get_devicetype)

Definition at line 85 of file iopmgr.h.

◆ I_iopmgr_get_iomandev

#define I_iopmgr_get_iomandev   DECLARE_IMPORT(15, iopmgr_get_iomandev)

Definition at line 82 of file iopmgr.h.

◆ I_iopmgr_get_iomanxdev

#define I_iopmgr_get_iomanxdev   DECLARE_IMPORT(16, iopmgr_get_iomanxdev)

Definition at line 83 of file iopmgr.h.

◆ I_slib_get_exportlist_by_name

#define I_slib_get_exportlist_by_name   DECLARE_IMPORT(11, slib_get_exportlist_by_name)

Definition at line 79 of file iopmgr.h.

◆ I_slib_get_lib_by_name

#define I_slib_get_lib_by_name   DECLARE_IMPORT(10, slib_get_lib_by_name)

Definition at line 78 of file iopmgr.h.

◆ I_slib_get_version_by_name

#define I_slib_get_version_by_name   DECLARE_IMPORT(12, slib_get_version_by_name)

Definition at line 80 of file iopmgr.h.

◆ I_slib_release_library

#define I_slib_release_library   DECLARE_IMPORT(13, slib_release_library)

Definition at line 81 of file iopmgr.h.

◆ I_smod_get_mod_by_name

#define I_smod_get_mod_by_name   DECLARE_IMPORT(5, smod_get_mod_by_name)

Definition at line 74 of file iopmgr.h.

◆ I_smod_get_modcount_by_name

#define I_smod_get_modcount_by_name   DECLARE_IMPORT(6, smod_get_modcount_by_name)

Definition at line 75 of file iopmgr.h.

◆ I_smod_get_modversion_by_name

#define I_smod_get_modversion_by_name   DECLARE_IMPORT(7, smod_get_modversion_by_name)

Definition at line 76 of file iopmgr.h.

◆ I_smod_get_next_mod

#define I_smod_get_next_mod   DECLARE_IMPORT(4, smod_get_next_mod)

Definition at line 73 of file iopmgr.h.

◆ I_smod_unload_module

#define I_smod_unload_module   DECLARE_IMPORT(8, smod_unload_module)

Definition at line 77 of file iopmgr.h.

◆ IOPMGR_DEVTYPE_ALL

#define IOPMGR_DEVTYPE_ALL   0xffff

Definition at line 56 of file iopmgr.h.

◆ IOPMGR_DEVTYPE_INVALID

#define IOPMGR_DEVTYPE_INVALID   0

Definition at line 53 of file iopmgr.h.

◆ IOPMGR_DEVTYPE_IOMAN

#define IOPMGR_DEVTYPE_IOMAN   1

Definition at line 54 of file iopmgr.h.

◆ IOPMGR_DEVTYPE_IOMANX

#define IOPMGR_DEVTYPE_IOMANX   2

Definition at line 55 of file iopmgr.h.

◆ iopmgr_IMPORTS_end

#define iopmgr_IMPORTS_end   END_IMPORT_TABLE

Definition at line 71 of file iopmgr.h.

◆ iopmgr_IMPORTS_start

#define iopmgr_IMPORTS_start   DECLARE_IMPORT_TABLE(iopmgr, 1, 1)

Definition at line 70 of file iopmgr.h.

◆ IOPMGR_IOMAN_IDENT

#define IOPMGR_IOMAN_IDENT   "IO/File_Manager"

Definition at line 67 of file iopmgr.h.

◆ IOPMGR_IOMANX_IDENT

#define IOPMGR_IOMANX_IDENT   "IOX/File_Manager"

Definition at line 68 of file iopmgr.h.

◆ IOPMGR_LIBNAME

#define IOPMGR_LIBNAME   "iopmgr"

Definition at line 60 of file iopmgr.h.

◆ IOPMGR_MODNAME

#define IOPMGR_MODNAME   "IOP_Manager"

Definition at line 59 of file iopmgr.h.

◆ IOPMGR_VERSION_HIGH

#define IOPMGR_VERSION_HIGH   1

Definition at line 63 of file iopmgr.h.

◆ IOPMGR_VERSION_LOW

#define IOPMGR_VERSION_LOW   1

Definition at line 64 of file iopmgr.h.

Typedef Documentation

◆ __attribute__

__attribute__
inline

for sceCdDiskReady() (s-cmd)

for sceCdSearchFile() (n-cmd)

Init the timer

Start the interruption handler for getting the system time This function should be called at beginning of your program

Finish the timer

Stops the interruption handler for getting the system time This function should be called when ending your program

Stop the profiler. If the profiler is not running, this function does nothing.

Parameters
filenameThe name of the file to write the profiling data to.
should_dumpIf 1, the profiling data will be written to the file. If 0, the profiling data will be discarded.

Initializes pg library

After calculating the text size, __gprof_init() allocates enough memory to allow fastest access to arc structures, and some more for sampling statistics. Note that this also installs a timer that runs at 1000 hert.

Writes gmon.out dump file and stops profiling Called from _libcglue_deinit() function; will dump out a gmon.out file at cwd with all collected information.

Internal C handler for _mcount()

Parameters
frompcpc address of caller
selfpcpc address of current function

Called from mcount.S to make life a bit easier. __mcount is called right before a function starts. GCC generates a tiny stub at the very beginning of each compiled routine, which eventually brings the control to here.

Definition at line 28 of file iopmgr.h.