/***************************************************************** *Copyright (C) 2021 Seekwave Tech Inc. *Filename : skw_usb.h *Authors:seekwave platform * * This software is licensed under the terms of the the GNU * General Public License version 2, as published by the Free * Software Foundation, and may be copied, distributed, and * modified under those terms. * * This program is distributed in the hope that it will be usefull, * but without any warranty;without even the implied warranty of * merchantability or fitness for a partcular purpose. See the * GUN General Public License for more details. * **************************************************************/ #ifndef WCN_USB_H #define WCN_USB_H #include #include #include #include #include #include #include #include #include #include #include #include "../skwutil/skw_boot.h" #define skwusb_log(fmt, args...) \ pr_info("[SKW_USB]:" fmt, ## args) #define skwusb_err(fmt, args...) \ pr_err("[SKW_USB_ERR]:" fmt, ## args) #define skwusb_data_pr(level, prefix_str, prefix_type, rowsize,\ groupsize, buf, len, asscii)\ do{if(loglevel) \ print_hex_dump(level, prefix_str, prefix_type, rowsize,\ groupsize, buf, len, asscii);\ }while(0) #define USB_RX_TASK_PRIO 90 #define SKW_CHIP_ID_LENGTH 16 //SV6160 chip id lenght int skw_usb_recovery_debug(int disable); int skw_usb_recovery_debug_status(void); void reboot_to_change_bt_uart1(char *mode); int skw_usb_debug_log_open(void); int skw_usb_debug_log_close(void); #endif /* WCN_USB_H */