Deleted Added
full compact
usb_debug.h (193644) usb_debug.h (194228)
1/* $FreeBSD: head/sys/dev/usb/usb_debug.h 193644 2009-06-07 19:41:11Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/usb_debug.h 194228 2009-06-15 01:02:43Z thompsa $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 18 unchanged lines hidden (view full) ---

28
29#ifndef _USB2_DEBUG_H_
30#define _USB2_DEBUG_H_
31
32/* Declare parent SYSCTL USB node. */
33SYSCTL_DECL(_hw_usb);
34
35/* Declare global USB debug variable. */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 18 unchanged lines hidden (view full) ---

28
29#ifndef _USB2_DEBUG_H_
30#define _USB2_DEBUG_H_
31
32/* Declare parent SYSCTL USB node. */
33SYSCTL_DECL(_hw_usb);
34
35/* Declare global USB debug variable. */
36extern int usb2_debug;
36extern int usb_debug;
37
38/* Check if USB debugging is enabled. */
39#ifdef USB_DEBUG_VAR
40#if (USB_DEBUG != 0)
41#define DPRINTFN(n,fmt,...) do { \
42 if ((USB_DEBUG_VAR) >= (n)) { \
43 printf("%s:%u: " fmt, \
44 __FUNCTION__, __LINE__,## __VA_ARGS__); \

--- 6 unchanged lines hidden (view full) ---

51#endif
52#endif
53
54struct usb_interface;
55struct usb_device;
56struct usb_endpoint;
57struct usb_xfer;
58
37
38/* Check if USB debugging is enabled. */
39#ifdef USB_DEBUG_VAR
40#if (USB_DEBUG != 0)
41#define DPRINTFN(n,fmt,...) do { \
42 if ((USB_DEBUG_VAR) >= (n)) { \
43 printf("%s:%u: " fmt, \
44 __FUNCTION__, __LINE__,## __VA_ARGS__); \

--- 6 unchanged lines hidden (view full) ---

51#endif
52#endif
53
54struct usb_interface;
55struct usb_device;
56struct usb_endpoint;
57struct usb_xfer;
58
59void usb2_dump_iface(struct usb_interface *iface);
60void usb2_dump_device(struct usb_device *udev);
61void usb2_dump_queue(struct usb_endpoint *ep);
62void usb2_dump_endpoint(struct usb_endpoint *ep);
63void usb2_dump_xfer(struct usb_xfer *xfer);
59void usb_dump_iface(struct usb_interface *iface);
60void usb_dump_device(struct usb_device *udev);
61void usb_dump_queue(struct usb_endpoint *ep);
62void usb_dump_endpoint(struct usb_endpoint *ep);
63void usb_dump_xfer(struct usb_xfer *xfer);
64
65#endif /* _USB2_DEBUG_H_ */
64
65#endif /* _USB2_DEBUG_H_ */