Open PS2 Loader / loader / modmgr.h

/*
  Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
  Copyright 2006-2008 Polo
  Licenced under Academic Free License version 3.0
  Review OpenUsbLd README & LICENSE files for further details.
  
  Some parts of the code are taken from HD Project by Polo
*/

#ifndef MODMGR_H
#define MODMGR_H

#define LF_PATH_MAX	252
#define LF_ARG_MAX	252

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,
};

struct _lf_module_load_arg {
 union
 {
  int arg_len;
  int	result;
 } p;
 int  modres;
 char path[LF_PATH_MAX];
 char args[LF_ARG_MAX];
}  __attribute__((aligned (16)));

struct _lf_module_buffer_load_arg {
 union
 {
  void *ptr;
  int   result;
 } p;
 union
 {
  int arg_len;
  int modres;
 } q;
 char unused[LF_PATH_MAX];
 char args[LF_ARG_MAX];
} __attribute__((aligned (16)));

struct _lf_elf_load_arg {
 union
 {
  u32 epc;
  int result;
 } p;
 u32  gp;
 char path[LF_PATH_MAX];
 char secname[LF_ARG_MAX];
} __attribute__((aligned (16)));

#endif /* MODMGR */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.