blob: 9b9c0f553480c7de433d8df32fd58458d1bc1dd3 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 *
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 */
6#ifndef __PVRUSB2_DEBUGIFC_H
7#define __PVRUSB2_DEBUGIFC_H
8
9struct 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). */
15int 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. */
21int 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. */
25int pvr2_debugifc_docmd(struct pvr2_hdw *,
26 const char *buf_ptr,unsigned int buf_size);
27
28#endif /* __PVRUSB2_DEBUGIFC_H */