lib_loader.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2021 Alibaba Group. All rights reserved.
  3. * License-Identifier: Apache-2.0
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  6. * not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. */
  18. #ifndef _LIB_LOADER_H
  19. #define _LIB_LOADER_H
  20. #include <stdint.h>
  21. #include <xt_library_loader.h>
  22. #include "ialgo.h"
  23. typedef struct lib_loader_info{
  24. union
  25. {
  26. xtlib_ovl_info ovl_info;
  27. xtlib_pil_info pil_info;
  28. };
  29. uint8_t code_memory_num;
  30. uint8_t data_memory_num;
  31. void* code_memory[4];
  32. int code_size[4];
  33. void* data_memory[4];
  34. int data_size[4];
  35. }lib_loader_info_t;
  36. extern wrapper_func csi_dsp_load_flo(void* obj,lib_loader_info_t *info);
  37. extern void csi_dsp_unload_flo(lib_loader_info_t *info);
  38. extern wrapper_func csi_dsp_load_pilsl(void* obj,lib_loader_info_t *info);
  39. extern void csi_dsp_unload_pilsl(lib_loader_info_t *info);
  40. #endif /* */