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