Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/fastrpc_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ remote_handle64 get_adsp_perf1_handle(int domain);
* @returns: 0 on success, valid non-zero error code on failure
*
**/
int fastrpc_update_module_list(uint32_t req, int domain, remote_handle64 handle, remote_handle64 *local, const char *name);
int fastrpc_update_module_list(uint32_t req, int domain, remote_handle64 handle, remote_handle64 *local, const char *name, int fd);

/**
* @brief functions to wrap ioctl syscalls for downstream and upstream kernel
Expand Down
2 changes: 2 additions & 0 deletions inc/fastrpc_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ int remote_mmap64_internal(int fd, uint32_t flags, uint64_t vaddrin, int64_t siz
int fastrpc_buffer_ref(int domain, int fd, int ref, void **va, size_t *size);

#endif //FASTRPC_MEM_H

void* get_source_vaddr(int fd, int domain);
11 changes: 11 additions & 0 deletions inc/mod_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ int mod_table_register_const_handle(remote_handle handle, const char* in_name, i
*/
int mod_table_register_const_handle1(remote_handle remote, remote_handle64 local, const char* uri, int (*pfn)(remote_handle64 h, uint32 sc, remote_arg* pra));

struct parsed_uri {
const char *file;
const char *sym;
const char *ver;
int filelen;
int symlen;
int verlen;
};

int parse_uri(const char *uri, int urilen, struct parsed_uri *out);

#ifdef __cplusplus
}
#endif
Expand Down
1 change: 1 addition & 0 deletions inc/remotectl.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ __QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl_open)(const char* name, int* ha
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl_close)(int handle, char* dlerror, int dlerrorLen, int* nErr) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl_grow_heap)(uint32 phyAddr, uint32 nSize) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl_set_param)(int reqID, const uint32* params, int paramsLen) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl_open_v2)(const char* name, const char* buf, int bufLen, int* handle, char* dlerror, int dlerrorLen, int* nErr) __QAIC_HEADER_ATTRIBUTE;
#ifdef __cplusplus
}
#endif
Expand Down
1 change: 1 addition & 0 deletions inc/remotectl1.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ __QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl1_open1)(remote_handle64 _h, con
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl1_close1)(remote_handle64 _h, int handle, char* dlerror, int dlerrorLen, int* nErr) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl1_grow_heap)(remote_handle64 _h, uint32 phyAddr, uint32 nSize) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl1_set_param)(remote_handle64 _h, int reqID, const uint32* params, int paramsLen) __QAIC_HEADER_ATTRIBUTE;
__QAIC_HEADER_EXPORT int __QAIC_HEADER(remotectl1_open1_v2)(remote_handle64 _h, const char* name, const char* buf, int bufLen, int* handle, char* dlerror, int dlerrorLen, int* nErr) __QAIC_HEADER_ATTRIBUTE;
#ifndef remotectl1_URI
#define remotectl1_URI "file:///libremotectl1_skel.so?remotectl1_skel_handle_invoke&_modver=1.0"
#endif /*remotectl1_URI*/
Expand Down
Loading