Deleted Added
full compact
usb_hub.c (241987) usb_hub.c (242126)
1/* $FreeBSD: head/sys/dev/usb/usb_hub.c 241987 2012-10-24 07:23:29Z hselasky $ */
1/* $FreeBSD: head/sys/dev/usb/usb_hub.c 242126 2012-10-26 06:04:47Z hselasky $ */
2/*-
3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved.
4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved.
5 * Copyright (c) 2008-2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

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

72
73#define UHUB_INTR_INTERVAL 250 /* ms */
74#define UHUB_N_TRANSFER 1
75
76#ifdef USB_DEBUG
77static int uhub_debug = 0;
78
79static SYSCTL_NODE(_hw_usb, OID_AUTO, uhub, CTLFLAG_RW, 0, "USB HUB");
2/*-
3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved.
4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved.
5 * Copyright (c) 2008-2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

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

72
73#define UHUB_INTR_INTERVAL 250 /* ms */
74#define UHUB_N_TRANSFER 1
75
76#ifdef USB_DEBUG
77static int uhub_debug = 0;
78
79static SYSCTL_NODE(_hw_usb, OID_AUTO, uhub, CTLFLAG_RW, 0, "USB HUB");
80SYSCTL_INT(_hw_usb_uhub, OID_AUTO, debug, CTLFLAG_RW, &uhub_debug, 0,
80SYSCTL_INT(_hw_usb_uhub, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN, &uhub_debug, 0,
81 "Debug level");
81 "Debug level");
82
83TUNABLE_INT("hw.usb.uhub.debug", &uhub_debug);
84#endif
85
86#if USB_HAVE_POWERD
87static int usb_power_timeout = 30; /* seconds */
88
89SYSCTL_INT(_hw_usb, OID_AUTO, power_timeout, CTLFLAG_RW,
90 &usb_power_timeout, 0, "USB power timeout");

--- 2438 unchanged lines hidden ---
82TUNABLE_INT("hw.usb.uhub.debug", &uhub_debug);
83#endif
84
85#if USB_HAVE_POWERD
86static int usb_power_timeout = 30; /* seconds */
87
88SYSCTL_INT(_hw_usb, OID_AUTO, power_timeout, CTLFLAG_RW,
89 &usb_power_timeout, 0, "USB power timeout");

--- 2438 unchanged lines hidden ---