rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #ifndef _BT_EXP_H_ |
| 2 | #define _BT_EXP_H_ |
| 3 | |
| 4 | #include <linux/init.h> |
| 5 | #include <linux/module.h> |
| 6 | #include <linux/types.h> |
| 7 | #include <linux/kernel.h> |
| 8 | #include <linux/fs.h> |
| 9 | #include <linux/cdev.h> |
| 10 | #include <linux/sched.h> |
| 11 | #include <asm/current.h> |
| 12 | #include <linux/uaccess.h> |
| 13 | #include <linux/fcntl.h> |
| 14 | #include <linux/poll.h> |
| 15 | #include <linux/time.h> |
| 16 | #include <linux/delay.h> |
| 17 | #include <linux/device.h> |
| 18 | #include <linux/printk.h> |
| 19 | #include <linux/uio.h> |
| 20 | #include <linux/mutex.h> |
| 21 | |
| 22 | #include "wmt_exp.h" |
| 23 | #include "stp_exp.h" |
| 24 | |
| 25 | |
| 26 | #ifdef CONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH |
| 27 | #include "connsys_debug_utility.h" |
| 28 | |
| 29 | /* Flags to control BT FW log flow */ |
| 30 | #define OFF 0x00 |
| 31 | #define ON 0xff |
| 32 | |
| 33 | /* ***************************************************************************************** |
| 34 | * BT Logger Tool will send 3 levels(Low, SQC and Debug) |
| 35 | * Driver will not check its range so we can provide capability of extention. |
| 36 | ******************************************************************************************/ |
| 37 | #define DEFAULT_LEVEL 0x02 /* 0x00:OFF, 0x01: LOW POWER, 0x02: SQC, 0x03: DEBUG */ |
| 38 | |
| 39 | extern int fw_log_bt_init(void); |
| 40 | extern void fw_log_bt_exit(void); |
| 41 | extern void bt_state_notify(UINT32 on_off); |
| 42 | extern ssize_t send_hci_frame(const PUINT8 buf, size_t count); |
| 43 | |
| 44 | #endif |
| 45 | |
| 46 | enum { |
| 47 | BTDRV_FOPS_STATE_INIT = 0, |
| 48 | BTDRV_FOPS_STATE_OPENING, |
| 49 | BTDRV_FOPS_STATE_OPENED, |
| 50 | BTDRV_FOPS_STATE_CLOSING, |
| 51 | }; |
| 52 | |
| 53 | #endif |