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

Go to the source code of this file.

Data Structures

struct  t_ExecData
 
struct  _lf_iop_val_arg
 
struct  _lf_module_load_arg
 
struct  _lf_module_stop_arg
 
union  _lf_module_unload_arg
 
struct  _lf_search_module_by_name_arg
 
struct  _lf_search_module_by_address_arg
 
struct  _lf_elf_load_arg
 
struct  _lf_module_buffer_load_arg
 
union  _lf_iop_val_arg.p
 
union  _lf_iop_val_arg.val
 
union  _lf_module_load_arg.p
 
union  _lf_module_stop_arg.p
 
union  _lf_module_stop_arg.q
 
union  _lf_search_module_by_address_arg.p
 
union  _lf_module_buffer_load_arg.p
 
union  _lf_module_buffer_load_arg.q
 

Macros

#define LF_PATH_MAX   252
 
#define LF_ARG_MAX   252
 

Enumerations

enum  _lf_val_types { LF_VAL_BYTE = 0 , LF_VAL_SHORT , LF_VAL_LONG }
 
enum  _lf_functions {
  LF_F_MOD_LOAD = 0 , LF_F_ELF_LOAD , LF_F_SET_ADDR , LF_F_GET_ADDR ,
  LF_F_MG_MOD_LOAD , LF_F_MG_ELF_LOAD , LF_F_MOD_BUF_LOAD , LF_F_MOD_STOP ,
  LF_F_MOD_UNLOAD , LF_F_SEARCH_MOD_BY_NAME , LF_F_SEARCH_MOD_BY_ADDRESS , LF_F_GET_VERSION = 0xFF
}
 

Functions

struct _lf_iop_val_arg __attribute__ ((aligned(16)))
 

Variables

union { 
 
u32 iop_addr
 
int result
 
p 
 
int type
 
union { 
 
u8 b
 
u16 s
 
u32 l
 
val 
 
int modres
 
char path [LF_PATH_MAX]
 
char args [LF_ARG_MAX]
 
union { 
 
int arg_len
 
int modres
 
q 
 
char dummy [LF_PATH_MAX]
 
int id
 
int result
 
int dummy1
 
char name [LF_PATH_MAX]
 
char dummy2 [LF_ARG_MAX]
 
u32 epc
 
u32 gp
 
char secname [LF_ARG_MAX]
 
char unused [LF_PATH_MAX]
 

Detailed Description

Common definitions for loadfile between the client and server sides of the LOADFILE protocol.

Definition in file loadfile-common.h.


Data Structure Documentation

◆ t_ExecData

struct t_ExecData

Definition at line 53 of file loadfile-common.h.

Data Fields
u32 epc
u32 gp
u32 sp
u32 dummy

◆ _lf_iop_val_arg

struct _lf_iop_val_arg

Definition at line 61 of file loadfile-common.h.

Data Fields
union _lf_iop_val_arg.p p
int type
union _lf_iop_val_arg.val val

◆ _lf_module_load_arg

struct _lf_module_load_arg

Definition at line 77 of file loadfile-common.h.

Data Fields
union _lf_module_load_arg.p p
int modres
char path[LF_PATH_MAX]
char args[LF_ARG_MAX]

◆ _lf_module_stop_arg

struct _lf_module_stop_arg

Definition at line 89 of file loadfile-common.h.

Data Fields
union _lf_module_stop_arg.p p
union _lf_module_stop_arg.q q
char dummy[LF_PATH_MAX]
char args[LF_ARG_MAX]

◆ _lf_module_unload_arg

union _lf_module_unload_arg

Definition at line 105 of file loadfile-common.h.

Data Fields
int id
int result

◆ _lf_search_module_by_name_arg

struct _lf_search_module_by_name_arg

Definition at line 111 of file loadfile-common.h.

Data Fields
int id
int dummy1
char name[LF_PATH_MAX]
char dummy2[LF_ARG_MAX]

◆ _lf_search_module_by_address_arg

struct _lf_search_module_by_address_arg

Definition at line 119 of file loadfile-common.h.

Data Fields
union _lf_search_module_by_address_arg.p p

◆ _lf_elf_load_arg

struct _lf_elf_load_arg

Definition at line 128 of file loadfile-common.h.

Data Fields
u32 epc
u32 gp
char path[LF_PATH_MAX]
char secname[LF_ARG_MAX]

◆ _lf_module_buffer_load_arg

struct _lf_module_buffer_load_arg

Definition at line 136 of file loadfile-common.h.

Data Fields
union _lf_module_buffer_load_arg.p p
union _lf_module_buffer_load_arg.q q
char unused[LF_PATH_MAX]
char args[LF_ARG_MAX]

◆ _lf_iop_val_arg.p

union _lf_iop_val_arg.p

Definition at line 63 of file loadfile-common.h.

Data Fields
u32 iop_addr
int result

◆ _lf_iop_val_arg.val

union _lf_iop_val_arg.val

Definition at line 69 of file loadfile-common.h.

Data Fields
u8 b
u16 s
u32 l

◆ _lf_module_load_arg.p

union _lf_module_load_arg.p

Definition at line 79 of file loadfile-common.h.

Data Fields
int arg_len
int result

◆ _lf_module_stop_arg.p

union _lf_module_stop_arg.p

Definition at line 91 of file loadfile-common.h.

Data Fields
int id
int result

◆ _lf_module_stop_arg.q

union _lf_module_stop_arg.q

Definition at line 96 of file loadfile-common.h.

Data Fields
int arg_len
int modres

◆ _lf_search_module_by_address_arg.p

union _lf_search_module_by_address_arg.p

Definition at line 121 of file loadfile-common.h.

Data Fields
const void * ptr
int id

◆ _lf_module_buffer_load_arg.p

union _lf_module_buffer_load_arg.p

Definition at line 138 of file loadfile-common.h.

Data Fields
void * ptr
int result

◆ _lf_module_buffer_load_arg.q

union _lf_module_buffer_load_arg.q

Definition at line 143 of file loadfile-common.h.

Data Fields
int arg_len
int modres

Macro Definition Documentation

◆ LF_PATH_MAX

#define LF_PATH_MAX   252

Definition at line 23 of file loadfile-common.h.

◆ LF_ARG_MAX

#define LF_ARG_MAX   252

Definition at line 24 of file loadfile-common.h.

Enumeration Type Documentation

◆ _lf_val_types

enum _lf_val_types

Definition at line 26 of file loadfile-common.h.

◆ _lf_functions

enum _lf_functions

Definition at line 32 of file loadfile-common.h.

Variable Documentation

◆ type

int type

Definition at line 5 of file loadfile-common.h.

◆ modres

int modres

Definition at line 5 of file loadfile-common.h.

◆ path

char path

Definition at line 6 of file loadfile-common.h.

◆ args

char args

Definition at line 7 of file loadfile-common.h.

◆ dummy

char dummy[LF_PATH_MAX]

Definition at line 10 of file loadfile-common.h.

◆ id

int id

Definition at line 0 of file loadfile-common.h.

◆ result

int result

Definition at line 1 of file loadfile-common.h.

◆ dummy1

int dummy1

Definition at line 1 of file loadfile-common.h.

◆ name

char name[LF_PATH_MAX]

Definition at line 2 of file loadfile-common.h.

◆ dummy2

char dummy2[LF_ARG_MAX]

Definition at line 3 of file loadfile-common.h.

◆ epc

u32 epc

Definition at line 0 of file loadfile-common.h.

◆ gp

u32 gp

Definition at line 1 of file loadfile-common.h.

◆ secname

char secname[LF_ARG_MAX]

Definition at line 3 of file loadfile-common.h.

◆ unused

char unused[LF_PATH_MAX]

Definition at line 10 of file loadfile-common.h.