tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_bsp/aic_bsp_export.h
old mode 100644new mode 100755
....@@ -1,18 +1,40 @@
11 #ifndef __AIC_BSP_EXPORT_H
22 #define __AIC_BSP_EXPORT_H
33
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
+};
827
928 struct aicbsp_feature_t {
10
- bool band_5g_support;
29
+ int hwinfo;
1130 uint32_t sdio_clock;
1231 uint8_t sdio_phase;
32
+ bool fwlog_en;
1333 };
1434
1535 int aicbsp_set_subsys(int, int);
1636 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);
1739
1840 #endif