sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
SifIopRebootBuffer.c File Reference
#include "kernel.h"
#include "iopcontrol.h"
#include "iopcontrol_special.h"
#include "loadfile.h"
#include "iopheap.h"
#include "sifdma.h"
#include "sifrpc.h"
#include "string.h"
#include "sbv_patches.h"

Go to the source code of this file.

Classes

struct  romdir
struct  extinfo
struct  iopbtconf_img

Macros

#define IMGDRV_IRX_SIZE   ((size__imgdrv_irx + 15) & ~15)
#define IOPBTCONF_IOP_MAX_SIZE   0x400
#define SifLoadModuleSpecial(path, arg_len, args, dontwait)
#define SifLoadModuleEncryptedSpecial(path, arg_len, args, dontwait)

Typedefs

typedef struct romdir romdir_t
typedef struct extinfo extinfo_t

Enumerations

enum  EXTINFO_TYPE { EXTINFO_TYPE_DATE = 1 , EXTINFO_TYPE_VERSION , EXTINFO_TYPE_COMMENT , EXTINFO_TYPE_FIXED = 0x7F }

Functions

void init_imgdrv_offsets (void)
u8 iopbtconf_img[IOPBTCONF_IOP_MAX_SIZE] __attribute__ ((aligned(64)))
int SifIopRebootBufferEncrypted (const void *udnl, int size)
int SifIopRebootBuffer (const void *ioprp, int size)

Variables

int _iop_reboot_count
u8 iopbtconf_img [IOPBTCONF_IOP_MAX_SIZE]
unsigned char _imgdrv_irx []
unsigned int size__imgdrv_irx
int imgdrv_offset_ioprpimg = 0
int imgdrv_offset_ioprpsiz = 0

Detailed Description

Special IOP Reboot routines for rebooting with an IOPRP image/encrypted UDNL module in a buffer.

Definition in file SifIopRebootBuffer.c.

Macro Definition Documentation

◆ IMGDRV_IRX_SIZE

#define IMGDRV_IRX_SIZE   ((size__imgdrv_irx + 15) & ~15)

Definition at line 25 of file SifIopRebootBuffer.c.

◆ IOPBTCONF_IOP_MAX_SIZE

#define IOPBTCONF_IOP_MAX_SIZE   0x400

Definition at line 26 of file SifIopRebootBuffer.c.

◆ SifLoadModuleEncryptedSpecial

#define SifLoadModuleEncryptedSpecial ( path,
arg_len,
args,
dontwait )
Value:
_SifLoadModule(path, arg_len, args, NULL, LF_F_MG_MOD_LOAD, dontwait);
int _SifLoadModule(const char *path, int arg_len, const char *args, int *modres, int fno, int dontwait)
Definition loadfile.c:64

Definition at line 63 of file SifIopRebootBuffer.c.

◆ SifLoadModuleSpecial

#define SifLoadModuleSpecial ( path,
arg_len,
args,
dontwait )
Value:
_SifLoadModule(path, arg_len, args, NULL, LF_F_MOD_LOAD, dontwait);

Definition at line 60 of file SifIopRebootBuffer.c.

Enumeration Type Documentation

◆ EXTINFO_TYPE

enum EXTINFO_TYPE

Definition at line 218 of file SifIopRebootBuffer.c.

Function Documentation

◆ init_imgdrv_offsets()

void init_imgdrv_offsets ( void )
extern

Definition at line 43 of file SifIopRebootBuffer.c.

◆ SifIopRebootBuffer()

int SifIopRebootBuffer ( const void * ioprp,
int size )

Resets IOP Reboots the IOP with an IOPRP image. If the image contains an IOPBTCONF file, the IOPBTCONF file will be automatically split off into its own image

Parameters
ioprpPointer to IOPRP image to reboot with.
sizeSize of the IOPRP image in bytes.
Returns
1 for success or 0 for failure.

Definition at line 136 of file SifIopRebootBuffer.c.

◆ SifIopRebootBufferEncrypted()

int SifIopRebootBufferEncrypted ( const void * udnl,
int size )

Resets IOP Reboots the IOP with an encrypted UDNL module.

Parameters
udnlPointer to UDNL module to reboot with.
sizeSize of UDNL module in bytes.
Returns
1 for success or 0 for failure.

Definition at line 66 of file SifIopRebootBuffer.c.

Variable Documentation

◆ _iop_reboot_count

int _iop_reboot_count
extern

Definition at line 28 of file iopcontrol.c.

◆ imgdrv_offset_ioprpimg

int imgdrv_offset_ioprpimg = 0

Definition at line 40 of file SifIopRebootBuffer.c.

◆ imgdrv_offset_ioprpsiz

int imgdrv_offset_ioprpsiz = 0

Definition at line 41 of file SifIopRebootBuffer.c.

◆ size__imgdrv_irx

unsigned int size__imgdrv_irx
extern

Definition at line 4 of file imgdrv_irx.c.