^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2005 Mike Isely <isely@pobox.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef __PVRUSB2_DEBUGIFC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define __PVRUSB2_DEBUGIFC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct pvr2_hdw;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /* Print general status of driver. This will also trigger a probe of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) the USB link. Unlike print_info(), this one synchronizes with the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) driver so the information should be self-consistent (but it will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) hang if the driver is wedged). */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int pvr2_debugifc_print_info(struct pvr2_hdw *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) char *buf_ptr, unsigned int buf_size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /* Non-intrusively print some useful debugging info from inside the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) driver. This should work even if the driver appears to be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) wedged. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int pvr2_debugifc_print_status(struct pvr2_hdw *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) char *buf_ptr,unsigned int buf_size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) /* Parse a string command into a driver action. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int pvr2_debugifc_docmd(struct pvr2_hdw *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) const char *buf_ptr,unsigned int buf_size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* __PVRUSB2_DEBUGIFC_H */