18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci *  Copyright (C) 2005 Mike Isely <isely@pobox.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#ifndef __PVRUSB2_DEBUGIFC_H
78c2ecf20Sopenharmony_ci#define __PVRUSB2_DEBUGIFC_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct pvr2_hdw;
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* Print general status of driver.  This will also trigger a probe of
128c2ecf20Sopenharmony_ci   the USB link.  Unlike print_info(), this one synchronizes with the
138c2ecf20Sopenharmony_ci   driver so the information should be self-consistent (but it will
148c2ecf20Sopenharmony_ci   hang if the driver is wedged). */
158c2ecf20Sopenharmony_ciint pvr2_debugifc_print_info(struct pvr2_hdw *,
168c2ecf20Sopenharmony_ci			     char *buf_ptr, unsigned int buf_size);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci/* Non-intrusively print some useful debugging info from inside the
198c2ecf20Sopenharmony_ci   driver.  This should work even if the driver appears to be
208c2ecf20Sopenharmony_ci   wedged. */
218c2ecf20Sopenharmony_ciint pvr2_debugifc_print_status(struct pvr2_hdw *,
228c2ecf20Sopenharmony_ci			       char *buf_ptr,unsigned int buf_size);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci/* Parse a string command into a driver action. */
258c2ecf20Sopenharmony_ciint pvr2_debugifc_docmd(struct pvr2_hdw *,
268c2ecf20Sopenharmony_ci			const char *buf_ptr,unsigned int buf_size);
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif /* __PVRUSB2_DEBUGIFC_H */
29