xref: /OK3568_Linux_fs/kernel/drivers/media/usb/pvrusb2/pvrusb2-debugifc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  *  Copyright (C) 2005 Mike Isely <isely@pobox.com>
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun #ifndef __PVRUSB2_DEBUGIFC_H
7*4882a593Smuzhiyun #define __PVRUSB2_DEBUGIFC_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun struct pvr2_hdw;
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun /* Print general status of driver.  This will also trigger a probe of
12*4882a593Smuzhiyun    the USB link.  Unlike print_info(), this one synchronizes with the
13*4882a593Smuzhiyun    driver so the information should be self-consistent (but it will
14*4882a593Smuzhiyun    hang if the driver is wedged). */
15*4882a593Smuzhiyun int pvr2_debugifc_print_info(struct pvr2_hdw *,
16*4882a593Smuzhiyun 			     char *buf_ptr, unsigned int buf_size);
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun /* Non-intrusively print some useful debugging info from inside the
19*4882a593Smuzhiyun    driver.  This should work even if the driver appears to be
20*4882a593Smuzhiyun    wedged. */
21*4882a593Smuzhiyun int pvr2_debugifc_print_status(struct pvr2_hdw *,
22*4882a593Smuzhiyun 			       char *buf_ptr,unsigned int buf_size);
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /* Parse a string command into a driver action. */
25*4882a593Smuzhiyun int pvr2_debugifc_docmd(struct pvr2_hdw *,
26*4882a593Smuzhiyun 			const char *buf_ptr,unsigned int buf_size);
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* __PVRUSB2_DEBUGIFC_H */
29