162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright (C) 2005 Mike Isely <isely@pobox.com> 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci#ifndef __PVRUSB2_DEBUGIFC_H 762306a36Sopenharmony_ci#define __PVRUSB2_DEBUGIFC_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistruct pvr2_hdw; 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* Print general status of driver. This will also trigger a probe of 1262306a36Sopenharmony_ci the USB link. Unlike print_info(), this one synchronizes with the 1362306a36Sopenharmony_ci driver so the information should be self-consistent (but it will 1462306a36Sopenharmony_ci hang if the driver is wedged). */ 1562306a36Sopenharmony_ciint pvr2_debugifc_print_info(struct pvr2_hdw *, 1662306a36Sopenharmony_ci char *buf_ptr, unsigned int buf_size); 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/* Non-intrusively print some useful debugging info from inside the 1962306a36Sopenharmony_ci driver. This should work even if the driver appears to be 2062306a36Sopenharmony_ci wedged. */ 2162306a36Sopenharmony_ciint pvr2_debugifc_print_status(struct pvr2_hdw *, 2262306a36Sopenharmony_ci char *buf_ptr,unsigned int buf_size); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* Parse a string command into a driver action. */ 2562306a36Sopenharmony_ciint pvr2_debugifc_docmd(struct pvr2_hdw *, 2662306a36Sopenharmony_ci const char *buf_ptr,unsigned int buf_size); 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#endif /* __PVRUSB2_DEBUGIFC_H */ 29