pvrusb2-debugifc.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. *
  3. * $Id$
  4. *
  5. * Copyright (C) 2005 Mike Isely <isely@pobox.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. */
  21. #ifndef __PVRUSB2_DEBUGIFC_H
  22. #define __PVRUSB2_DEBUGIFC_H
  23. struct pvr2_hdw;
  24. /* Non-intrusively print some useful debugging info from inside the
  25. driver. This should work even if the driver appears to be
  26. wedged. */
  27. int pvr2_debugifc_print_info(struct pvr2_hdw *,
  28. char *buf_ptr,unsigned int buf_size);
  29. /* Print general status of driver. This will also trigger a probe of
  30. the USB link. Unlike print_info(), this one synchronizes with the
  31. driver so the information should be self-consistent (but it will
  32. hang if the driver is wedged). */
  33. int pvr2_debugifc_print_status(struct pvr2_hdw *,
  34. char *buf_ptr,unsigned int buf_size);
  35. /* Parse a string command into a driver action. */
  36. int pvr2_debugifc_docmd(struct pvr2_hdw *,
  37. const char *buf_ptr,unsigned int buf_size);
  38. #endif /* __PVRUSB2_DEBUGIFC_H */
  39. /*
  40. Stuff for Emacs to see, in order to encourage consistent editing style:
  41. *** Local Variables: ***
  42. *** mode: c ***
  43. *** fill-column: 75 ***
  44. *** tab-width: 8 ***
  45. *** c-basic-offset: 8 ***
  46. *** End: ***
  47. */