source: mainline/uspace/drv/bus/usb/xhci/debug.h@ 3692678

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3692678 was e0a5d4c, checked in by Ondřej Hlavatý <aearsis@…>, 7 years ago

usb: update copyrights

The data was generated by a script, guided manually. If you feel your
name is missing somewhere, please add it!

The semi-automated process was roughly:

1) Changes per file and author (limited to our team) were counted
2) Trivial numbers were thrown away
3) Authors were sorted by lines added to file
4) All previous copyrights were replaced by the newly generated one
5) Hunks changing only year were discarded

It seems that a lot of my copyrights were added. It is due to me being
both sticking my nose everywhere and lazy to update the copyright right
away :)

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/*
2 * Copyright (c) 2018 Ondrej Hlavaty, Jan Hrach
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28/** @addtogroup drvusbxhci
29 * @{
30 */
31/** @file
32 *
33 * Utility functions for debugging and logging purposes.
34 */
35
36#ifndef XHCI_DEBUG_H
37#define XHCI_DEBUG_H
38
39/**
40 * As the debug header is likely to be included in every file, avoid including
41 * all headers of xhci to support "include what you use".
42 */
43struct xhci_hc;
44struct xhci_cap_regs;
45struct xhci_port_regs;
46struct xhci_trb;
47struct xhci_extcap;
48struct xhci_slot_ctx;
49struct xhci_endpoint_ctx;
50struct xhci_input_ctx;
51
52extern void xhci_dump_cap_regs(const struct xhci_cap_regs *);
53extern void xhci_dump_port(const struct xhci_port_regs *);
54extern void xhci_dump_state(const struct xhci_hc *);
55extern void xhci_dump_ports(const struct xhci_hc *);
56
57extern const char *xhci_trb_str_type(unsigned);
58extern void xhci_dump_trb(const struct xhci_trb *trb);
59
60extern const char *xhci_ec_str_id(unsigned);
61extern void xhci_dump_extcap(const struct xhci_extcap *);
62
63extern void xhci_dump_slot_ctx(const struct xhci_slot_ctx *);
64extern void xhci_dump_endpoint_ctx(const struct xhci_endpoint_ctx *);
65extern void xhci_dump_input_ctx(const struct xhci_hc *, const struct xhci_input_ctx *);
66
67#endif
68/**
69 * @}
70 */
Note: See TracBrowser for help on using the repository browser.