old mode 100644new mode 100755.. | .. |
---|
1 | 1 | #ifndef __AIC_BSP_EXPORT_H |
---|
2 | 2 | #define __AIC_BSP_EXPORT_H |
---|
3 | 3 | |
---|
4 | | -#define AIC_BLUETOOTH 0 |
---|
5 | | -#define AIC_WIFI 1 |
---|
6 | | -#define AIC_PWR_OFF 0 |
---|
7 | | -#define AIC_PWR_ON 1 |
---|
| 4 | +#define AICBSP_RESV_MEM_SUPPORT |
---|
| 5 | + |
---|
| 6 | +enum aicbsp_subsys { |
---|
| 7 | + AIC_BLUETOOTH, |
---|
| 8 | + AIC_WIFI, |
---|
| 9 | +}; |
---|
| 10 | + |
---|
| 11 | +enum aicbsp_pwr_state { |
---|
| 12 | + AIC_PWR_OFF, |
---|
| 13 | + AIC_PWR_ON, |
---|
| 14 | +}; |
---|
| 15 | + |
---|
| 16 | +enum skb_buff_id { |
---|
| 17 | + AIC_RESV_MEM_TXDATA, |
---|
| 18 | +}; |
---|
| 19 | + |
---|
| 20 | +struct skb_buff_pool { |
---|
| 21 | + uint32_t id; |
---|
| 22 | + uint32_t size; |
---|
| 23 | + const char *name; |
---|
| 24 | + uint8_t used; |
---|
| 25 | + struct sk_buff *skb; |
---|
| 26 | +}; |
---|
8 | 27 | |
---|
9 | 28 | struct aicbsp_feature_t { |
---|
10 | | - bool band_5g_support; |
---|
| 29 | + int hwinfo; |
---|
11 | 30 | uint32_t sdio_clock; |
---|
12 | 31 | uint8_t sdio_phase; |
---|
| 32 | + bool fwlog_en; |
---|
13 | 33 | }; |
---|
14 | 34 | |
---|
15 | 35 | int aicbsp_set_subsys(int, int); |
---|
16 | 36 | int aicbsp_get_feature(struct aicbsp_feature_t *feature); |
---|
| 37 | +struct sk_buff *aicbsp_resv_mem_alloc_skb(unsigned int length, uint32_t id); |
---|
| 38 | +void aicbsp_resv_mem_kfree_skb(struct sk_buff *skb, uint32_t id); |
---|
17 | 39 | |
---|
18 | 40 | #endif |
---|