2 Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
3 Copyright 2006-2008 Polo
4 Licenced under Academic Free License version 3.0
5 Review OpenUsbLd README & LICENSE files for further details.
7 Some parts of the code are taken from HD Project by Polo
13 #define LF_PATH_MAX 252
14 #define LF_ARG_MAX 252
31 LF_F_SEARCH_MOD_BY_NAME
,
32 LF_F_SEARCH_MOD_BY_ADDRESS
,
35 struct _lf_module_load_arg
{
42 char path
[LF_PATH_MAX
];
43 char args
[LF_ARG_MAX
];
44 } __attribute__((aligned (16)));
46 struct _lf_module_buffer_load_arg
{
57 char unused
[LF_PATH_MAX
];
58 char args
[LF_ARG_MAX
];
59 } __attribute__((aligned (16)));
61 struct _lf_elf_load_arg
{
68 char path
[LF_PATH_MAX
];
69 char secname
[LF_ARG_MAX
];
70 } __attribute__((aligned (16)));
82 int LoadModule(const char *path
, int arg_len
, const char *args
);
83 int LoadModuleAsync(const char *path
, int arg_len
, const char *args
);
84 void GetIrxKernelRAM(void);
85 int LoadIRXfromKernel(void *irxkernelmem
, int irxsize
, int arglen
, char *argv
);
86 int LoadMemModule(void *modptr
, unsigned int modsize
, int arg_len
, const char *args
);
87 int LoadElf(const char *path
, t_ExecData
*data
);
88 void ChangeModuleName(const char *name
, const char *newname
);
89 void ListModules(void);