blob: cc24cbc42eb39b4212c02a108990004fc6f0138f [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* 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
19void diagfwd_init(void);
20void diagfwd_exit(void);
21void diag_process_hdlc(void *data, unsigned len);
22void __diag_smd_send_req(void);
23void __diag_smd_qdsp_send_req(void);
24void __diag_smd_wcnss_send_req(void);
25void diag_usb_legacy_notifier(void *, unsigned, struct diag_request *);
26long diagchar_ioctl(struct file *, unsigned int, unsigned long);
27int diag_device_write(void *, int, struct diag_request *);
28int mask_request_validate(unsigned char mask_buf[]);
29int chk_config_get_id(void);
30/* State for diag forwarding */
31#ifdef CONFIG_DIAG_OVER_USB
32int diagfwd_connect(void);
33int diagfwd_disconnect(void);
34#endif
35extern int diag_debug_buf_idx;
36extern unsigned char diag_debug_buf[1024];
37
38#endif