blob: fcaaa8dd68b87cdc738cb71966519801764fd1de [file] [log] [blame]
Mike Iselyd8554972006-06-26 20:58:46 -03001/*
2 *
Mike Iselyd8554972006-06-26 20:58:46 -03003 *
4 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
Mike Iselyd8554972006-06-26 20:58:46 -030015 */
16#ifndef __PVRUSB2_DEBUGIFC_H
17#define __PVRUSB2_DEBUGIFC_H
18
19struct pvr2_hdw;
20
Mike Iselyd8554972006-06-26 20:58:46 -030021/* Print general status of driver. This will also trigger a probe of
22 the USB link. Unlike print_info(), this one synchronizes with the
23 driver so the information should be self-consistent (but it will
24 hang if the driver is wedged). */
Mike Isely20ae26c2009-03-07 00:26:24 -030025int pvr2_debugifc_print_info(struct pvr2_hdw *,
26 char *buf_ptr, unsigned int buf_size);
27
28/* Non-intrusively print some useful debugging info from inside the
29 driver. This should work even if the driver appears to be
30 wedged. */
Mike Iselyd8554972006-06-26 20:58:46 -030031int pvr2_debugifc_print_status(struct pvr2_hdw *,
32 char *buf_ptr,unsigned int buf_size);
33
34/* Parse a string command into a driver action. */
35int pvr2_debugifc_docmd(struct pvr2_hdw *,
36 const char *buf_ptr,unsigned int buf_size);
37
38#endif /* __PVRUSB2_DEBUGIFC_H */