MT6620: add the new driver JB2 V1.0
[firefly-linux-kernel-4.4.55.git] / drivers / mtk_wcn_combo / drv_fm / inc / fm_patch.h
1 #ifndef __FM_PATCH_H__
2 #define __FM_PATCH_H__
3
4 enum {
5     FM_ROM_V1 = 0,
6     FM_ROM_V2 = 1,
7     FM_ROM_V3 = 2,
8     FM_ROM_V4 = 3,
9     FM_ROM_V5 = 4,
10     FM_ROM_MAX
11 };
12
13 struct fm_patch_tbl {
14     fm_s32 idx;
15     fm_s8 *patch;
16     fm_s8 *coeff;
17     fm_s8 *rom;
18     fm_s8 *hwcoeff;
19 };
20
21 extern fm_s32 fm_file_exist(const fm_s8 *filename);
22
23 extern fm_s32 fm_file_read(const fm_s8 *filename, fm_u8* dst, fm_s32 len, fm_s32 position);
24
25 extern fm_s32 fm_file_write(const fm_s8 *filename, fm_u8* dst, fm_s32 len, fm_s32 *ppos);
26
27
28 #endif //__FM_PATCH_H__
29