tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
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
#ifndef __AIC_BSP_EXPORT_H
#define __AIC_BSP_EXPORT_H
 
#define AICBSP_RESV_MEM_SUPPORT
 
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;
};
 
int aicbsp_set_subsys(int, int);
int aicbsp_get_feature(struct aicbsp_feature_t *feature);
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