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

Go to the source code of this file.

Classes

struct  ioprpgen_ctx
struct  ioprpgen_memwrite_ctx
struct  ioprpgen_entry

Typedefs

typedef int(*) ioprpgen_write_cb_t(void *userdata, const struct ioprpgen_ctx *ctx, const void *buf, u32 size)

Functions

void ioprpgen_setup_membuf (struct ioprpgen_ctx *ctx, struct ioprpgen_memwrite_ctx *memwrite_ctx, void *buf, u32 size)
u32 ioprpgen_write_ioprp (const struct ioprpgen_ctx *ctx, const struct ioprpgen_entry *entries)

Detailed Description

Definitions for IOPRP generation library.

Definition in file ioprpgen.h.

Typedef Documentation

◆ ioprpgen_write_cb_t

typedef int(*) ioprpgen_write_cb_t(void *userdata, const struct ioprpgen_ctx *ctx, const void *buf, u32 size)

Definition at line 28 of file ioprpgen.h.

Function Documentation

◆ ioprpgen_setup_membuf()

void ioprpgen_setup_membuf ( struct ioprpgen_ctx * ctx,
struct ioprpgen_memwrite_ctx * memwrite_ctx,
void * buf,
u32 size )
extern

Setup ioprpgen context

Parameters
ctxPointer to context
memwrite_ctxPointer to memwrite context (ensure it has the same lifetime as ctx)
bufOutput buffer
sizeSize of the output buffer
Returns
1 on success, 0 on failure.

Definition at line 40 of file ioprpgen.c.

◆ ioprpgen_write_ioprp()

u32 ioprpgen_write_ioprp ( const struct ioprpgen_ctx * ctx,
const struct ioprpgen_entry * entries )
extern

Generate IOPRP image using provided entries

Parameters
ctxPointer to context prepared by ioprpgen_setup_membuf
entriesPointer to NULL-terminated list of entries
Returns
0 on failure, other value for size

Definition at line 81 of file ioprpgen.c.