xref: /freebsd/usr.sbin/usbconfig/dump.h (revision 2a63c3be)
1eabe30fcSAlfred Perlstein /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
31de7b4b8SPedro F. Giffuni  *
4eabe30fcSAlfred Perlstein  * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
5eabe30fcSAlfred Perlstein  *
6eabe30fcSAlfred Perlstein  * Redistribution and use in source and binary forms, with or without
7eabe30fcSAlfred Perlstein  * modification, are permitted provided that the following conditions
8eabe30fcSAlfred Perlstein  * are met:
9eabe30fcSAlfred Perlstein  * 1. Redistributions of source code must retain the above copyright
10eabe30fcSAlfred Perlstein  *    notice, this list of conditions and the following disclaimer.
11eabe30fcSAlfred Perlstein  * 2. Redistributions in binary form must reproduce the above copyright
12eabe30fcSAlfred Perlstein  *    notice, this list of conditions and the following disclaimer in the
13eabe30fcSAlfred Perlstein  *    documentation and/or other materials provided with the distribution.
14eabe30fcSAlfred Perlstein  *
15eabe30fcSAlfred Perlstein  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16eabe30fcSAlfred Perlstein  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17eabe30fcSAlfred Perlstein  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18eabe30fcSAlfred Perlstein  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19eabe30fcSAlfred Perlstein  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20eabe30fcSAlfred Perlstein  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21eabe30fcSAlfred Perlstein  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22eabe30fcSAlfred Perlstein  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23eabe30fcSAlfred Perlstein  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24eabe30fcSAlfred Perlstein  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25eabe30fcSAlfred Perlstein  * SUCH DAMAGE.
26eabe30fcSAlfred Perlstein  */
27eabe30fcSAlfred Perlstein 
28cf109686SAndrew Thompson #ifndef _DUMP_H_
29cf109686SAndrew Thompson #define	_DUMP_H_
30cf109686SAndrew Thompson 
31eabe30fcSAlfred Perlstein const char *dump_mode(uint8_t value);
32eabe30fcSAlfred Perlstein const char *dump_speed(uint8_t value);
33eabe30fcSAlfred Perlstein const char *dump_power_mode(uint8_t value);
34cf109686SAndrew Thompson void	dump_string_by_index(struct libusb20_device *pdev, uint8_t index);
3506d497c1SAndrew Thompson void	dump_device_info(struct libusb20_device *pdev, uint8_t show_drv);
36eabe30fcSAlfred Perlstein void	dump_be_quirk_names(struct libusb20_backend *pbe);
37eabe30fcSAlfred Perlstein void	dump_be_dev_quirks(struct libusb20_backend *pbe);
38eabe30fcSAlfred Perlstein void	dump_device_desc(struct libusb20_device *pdev);
39fa6d8b65SHans Petter Selasky void	dump_device_stats(struct libusb20_device *pdev);
40eabe30fcSAlfred Perlstein void	dump_config(struct libusb20_device *pdev, uint8_t all_cfg);
41cf109686SAndrew Thompson 
42cf109686SAndrew Thompson #endif	/* _DUMP_H_ */
43