PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
siftoo.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for siftoo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define siftoo_IMPORTS_start   DECLARE_IMPORT_TABLE(siftoo, 1, 1)
 
#define siftoo_IMPORTS_end   END_IMPORT_TABLE
 
#define I_sif2_init   DECLARE_IMPORT(4, sif2_init)
 
#define I_sif2_exit   DECLARE_IMPORT(5, sif2_exit)
 
#define I_sif2_mem_read   DECLARE_IMPORT(6, sif2_mem_read)
 
#define I_sif2_mem_write   DECLARE_IMPORT(7, sif2_mem_write)
 
#define I_sif2_pipe_create   DECLARE_IMPORT(10, sif2_pipe_create)
 
#define I_sif2_pipe_open   DECLARE_IMPORT(11, sif2_pipe_open)
 
#define I_sif2_pipe_close   DECLARE_IMPORT(12, sif2_pipe_close)
 
#define I_sif2_pipe_read   DECLARE_IMPORT(13, sif2_pipe_read)
 
#define I_sif2_pipe_write   DECLARE_IMPORT(14, sif2_pipe_write)
 

Typedefs

typedef int(* sif2_pipe_handler_t) (u32, void *, u32)
 

Enumerations

enum  sif2_errors { SIF2_E_OK , SIF2_E_INIT = 0xd700 }
 

Functions

int sif2_init (void)
 
int sif2_exit (void)
 
int sif2_mem_read (u32 addr, void *buf, u32 size)
 
int sif2_mem_write (u32 addr, void *buf, u32 size)
 
int sif2_pipe_create (u32 id, void *buf, u32 size, u32 flags, sif2_pipe_handler_t phandler)
 
int sif2_pipe_open (u32 id)
 
int sif2_pipe_close (int pd)
 
int sif2_pipe_read (int pd, void *buf, u32 size)
 
int sif2_pipe_write (int pd, void *buf, u32 size)
 

Detailed Description

SIFToo driver.

Definition in file siftoo.h.

Macro Definition Documentation

◆ siftoo_IMPORTS_start

#define siftoo_IMPORTS_start   DECLARE_IMPORT_TABLE(siftoo, 1, 1)

Definition at line 47 of file siftoo.h.

◆ siftoo_IMPORTS_end

#define siftoo_IMPORTS_end   END_IMPORT_TABLE

Definition at line 48 of file siftoo.h.

◆ I_sif2_init

#define I_sif2_init   DECLARE_IMPORT(4, sif2_init)

Definition at line 50 of file siftoo.h.

◆ I_sif2_exit

#define I_sif2_exit   DECLARE_IMPORT(5, sif2_exit)

Definition at line 51 of file siftoo.h.

◆ I_sif2_mem_read

#define I_sif2_mem_read   DECLARE_IMPORT(6, sif2_mem_read)

Definition at line 52 of file siftoo.h.

◆ I_sif2_mem_write

#define I_sif2_mem_write   DECLARE_IMPORT(7, sif2_mem_write)

Definition at line 53 of file siftoo.h.

◆ I_sif2_pipe_create

#define I_sif2_pipe_create   DECLARE_IMPORT(10, sif2_pipe_create)

Definition at line 54 of file siftoo.h.

◆ I_sif2_pipe_open

#define I_sif2_pipe_open   DECLARE_IMPORT(11, sif2_pipe_open)

Definition at line 55 of file siftoo.h.

◆ I_sif2_pipe_close

#define I_sif2_pipe_close   DECLARE_IMPORT(12, sif2_pipe_close)

Definition at line 56 of file siftoo.h.

◆ I_sif2_pipe_read

#define I_sif2_pipe_read   DECLARE_IMPORT(13, sif2_pipe_read)

Definition at line 57 of file siftoo.h.

◆ I_sif2_pipe_write

#define I_sif2_pipe_write   DECLARE_IMPORT(14, sif2_pipe_write)

Definition at line 58 of file siftoo.h.

Typedef Documentation

◆ sif2_pipe_handler_t

typedef int(* sif2_pipe_handler_t) (u32, void *, u32)

Definition at line 30 of file siftoo.h.

Enumeration Type Documentation

◆ sif2_errors

Enumerator
SIF2_E_OK 

No error.

SIF2_E_INIT 

Initialization error.

Definition at line 22 of file siftoo.h.

Function Documentation

◆ sif2_init()

int sif2_init ( void )
extern

Definition at line 78 of file siftoo.c.

◆ sif2_exit()

int sif2_exit ( void )
extern

Definition at line 90 of file siftoo.c.

◆ sif2_mem_read()

int sif2_mem_read ( u32 addr,
void * buf,
u32 size )
extern

Definition at line 103 of file siftoo.c.

◆ sif2_mem_write()

int sif2_mem_write ( u32 addr,
void * buf,
u32 size )
extern

Definition at line 112 of file siftoo.c.

◆ sif2_pipe_create()

int sif2_pipe_create ( u32 id,
void * buf,
u32 size,
u32 flags,
sif2_pipe_handler_t phandler )
extern

Definition at line 22 of file pipe.c.

◆ sif2_pipe_open()

int sif2_pipe_open ( u32 id)
extern

Definition at line 34 of file pipe.c.

◆ sif2_pipe_close()

int sif2_pipe_close ( int pd)
extern

Definition at line 41 of file pipe.c.

◆ sif2_pipe_read()

int sif2_pipe_read ( int pd,
void * buf,
u32 size )
extern

Definition at line 48 of file pipe.c.

◆ sif2_pipe_write()

int sif2_pipe_write ( int pd,
void * buf,
u32 size )
extern

Definition at line 57 of file pipe.c.