hc
2024-11-01 7e970c18f85f99acc678d90128b6e01dce1bf273
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef __AIC_BSP_EXPORT_H
#define __AIC_BSP_EXPORT_H
 
enum aicbsp_subsys {
   AIC_BLUETOOTH,
   AIC_WIFI,
};
 
enum aicbsp_pwr_state {
   AIC_PWR_OFF,
   AIC_PWR_ON,
};
 
enum skb_buff_id {
   AIC_RESV_MEM_TXDATA,
};
 
struct skb_buff_pool {
   uint32_t id;
   uint32_t size;
   const char *name;
   uint8_t used;
   struct sk_buff *skb;
};
 
struct aicbsp_feature_t {
   int      hwinfo;
   uint32_t sdio_clock;
   uint8_t  sdio_phase;
   bool     fwlog_en;
   uint8_t  irqf;
};
 
#ifdef CONFIG_DPD
typedef struct {
    uint32_t bit_mask[3];
    uint32_t reserved;
    uint32_t dpd_high[96];
    uint32_t dpd_11b[96];
    uint32_t dpd_low[96];
    uint32_t idac_11b[48];
    uint32_t idac_high[48];
    uint32_t idac_low[48];
    uint32_t loft_res[18];
    uint32_t rx_iqim_res[16];
} rf_misc_ram_t;
 
typedef struct {
    uint32_t bit_mask[4];
    uint32_t dpd_high[96];
    uint32_t loft_res[18];
} rf_misc_ram_lite_t;
 
#define MEMBER_SIZE(type, member)   sizeof(((type *)0)->member)
#define DPD_RESULT_SIZE_8800DC      sizeof(rf_misc_ram_lite_t)
 
extern rf_misc_ram_lite_t dpd_res;
#endif
 
int aicbsp_set_subsys(int, int);
int aicbsp_get_feature(struct aicbsp_feature_t *feature, char *fw_path);
struct sk_buff *aicbsp_resv_mem_alloc_skb(unsigned int length, uint32_t id);
void aicbsp_resv_mem_kfree_skb(struct sk_buff *skb, uint32_t id);
 
#endif