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