|
PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Include dependency graph for smod.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | _smod_mod_info |
Typedefs | |
| typedef struct _smod_mod_info | smod_mod_info_t |
Functions | |
| int | smod_get_next_mod (smod_mod_info_t *cur_mod, smod_mod_info_t *next_mod) |
| int | smod_get_mod_by_name (const char *name, smod_mod_info_t *info) |
Sub-CPU module interface.
Definition in file smod.h.
| struct _smod_mod_info |
Module info entry.
Most of the fields are self-explanatory. I don't know what the *flags fields do, and they don't seem to be important.
Collaboration diagram for _smod_mod_info:| Data Fields | ||
|---|---|---|
| struct _smod_mod_info * | next | |
| char * | name |
A pointer to the name in IOP RAM, this must be smem_read(). |
| u16 | version | |
| u16 | newflags |
For MODLOAD shipped with games. The old MODLOAD module from boot ROMs do not use a flags field. |
| u16 | id | |
| u16 | unused | |
| u32 | entry |
_start |
| u32 | gp | |
| u32 | text_start | |
| u32 | text_size | |
| u32 | data_size | |
| u32 | bss_size | |
| u32 | unused1 | |
| u32 | unused2 | |
| typedef struct _smod_mod_info smod_mod_info_t |
Module info entry.
Most of the fields are self-explanatory. I don't know what the *flags fields do, and they don't seem to be important.
| int smod_get_next_mod | ( | smod_mod_info_t * | cur_mod, |
| smod_mod_info_t * | next_mod | ||
| ) |
| int smod_get_mod_by_name | ( | const char * | name, |
| smod_mod_info_t * | info | ||
| ) |
Find and retreive a module by it's module name.
Definition at line 54 of file smod.c.
Referenced by list_devices_ioman(), and list_devices_iomanx().