fm_patch.h 514 B

123456789101112131415161718192021222324252627
  1. #ifndef __FM_PATCH_H__
  2. #define __FM_PATCH_H__
  3. enum {
  4. FM_ROM_V1 = 0,
  5. FM_ROM_V2 = 1,
  6. FM_ROM_V3 = 2,
  7. FM_ROM_V4 = 3,
  8. FM_ROM_V5 = 4,
  9. FM_ROM_MAX
  10. };
  11. struct fm_patch_tbl {
  12. fm_s32 idx;
  13. fm_s8 *patch;
  14. fm_s8 *coeff;
  15. fm_s8 *rom;
  16. fm_s8 *hwcoeff;
  17. };
  18. extern fm_s32 fm_file_exist(const fm_s8 *filename);
  19. extern fm_s32 fm_file_read(const fm_s8 *filename, fm_u8 *dst, fm_s32 len, fm_s32 position);
  20. extern fm_s32 fm_file_write(const fm_s8 *filename, fm_u8 *dst, fm_s32 len, fm_s32 *ppos);
  21. #endif /* __FM_PATCH_H__ */