Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef DIAGFWD_H |
| 14 | #define DIAGFWD_H |
| 15 | |
| 16 | #define NO_PROCESS 0 |
| 17 | #define NON_APPS_PROC -1 |
| 18 | |
| 19 | void diagfwd_init(void); |
| 20 | void diagfwd_exit(void); |
| 21 | void diag_process_hdlc(void *data, unsigned len); |
| 22 | void __diag_smd_send_req(void); |
| 23 | void __diag_smd_qdsp_send_req(void); |
| 24 | void __diag_smd_wcnss_send_req(void); |
| 25 | void diag_usb_legacy_notifier(void *, unsigned, struct diag_request *); |
| 26 | long diagchar_ioctl(struct file *, unsigned int, unsigned long); |
| 27 | int diag_device_write(void *, int, struct diag_request *); |
| 28 | int mask_request_validate(unsigned char mask_buf[]); |
Shalabh Jain | c2ec829 | 2011-10-14 12:34:55 -0700 | [diff] [blame] | 29 | void diag_clear_reg(int); |
Shalabh Jain | fb8e3c1 | 2011-10-19 17:29:42 -0700 | [diff] [blame] | 30 | int chk_apps_only(void); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 31 | /* State for diag forwarding */ |
| 32 | #ifdef CONFIG_DIAG_OVER_USB |
| 33 | int diagfwd_connect(void); |
| 34 | int diagfwd_disconnect(void); |
| 35 | #endif |
| 36 | extern int diag_debug_buf_idx; |
| 37 | extern unsigned char diag_debug_buf[1024]; |
| 38 | |
| 39 | #endif |