uhci.c (241987) | uhci.c (242126) |
---|---|
1/*- 2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/uhci.c 241987 2012-10-24 07:23:29Z hselasky $"); | 29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/uhci.c 242126 2012-10-26 06:04:47Z hselasky $"); |
30 31/* 32 * USB Universal Host Controller driver. 33 * Handles e.g. PIIX3 and PIIX4. 34 * 35 * UHCI spec: http://developer.intel.com/design/USB/UHCI11D.htm 36 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 37 * PIIXn spec: ftp://download.intel.com/design/intarch/datashts/29055002.pdf --- 43 unchanged lines hidden (view full) --- 81 ((uhci_softc_t *)(((uint8_t *)(bus)) - \ 82 ((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) 83 84#ifdef USB_DEBUG 85static int uhcidebug = 0; 86static int uhcinoloop = 0; 87 88static SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci"); | 30 31/* 32 * USB Universal Host Controller driver. 33 * Handles e.g. PIIX3 and PIIX4. 34 * 35 * UHCI spec: http://developer.intel.com/design/USB/UHCI11D.htm 36 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 37 * PIIXn spec: ftp://download.intel.com/design/intarch/datashts/29055002.pdf --- 43 unchanged lines hidden (view full) --- 81 ((uhci_softc_t *)(((uint8_t *)(bus)) - \ 82 ((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) 83 84#ifdef USB_DEBUG 85static int uhcidebug = 0; 86static int uhcinoloop = 0; 87 88static SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci"); |
89SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RW, | 89SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN, |
90 &uhcidebug, 0, "uhci debug level"); | 90 &uhcidebug, 0, "uhci debug level"); |
91SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RW, 92 &uhcinoloop, 0, "uhci noloop"); 93 | |
94TUNABLE_INT("hw.usb.uhci.debug", &uhcidebug); | 91TUNABLE_INT("hw.usb.uhci.debug", &uhcidebug); |
92SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RW | CTLFLAG_TUN, 93 &uhcinoloop, 0, "uhci noloop"); |
|
95TUNABLE_INT("hw.usb.uhci.loop", &uhcinoloop); 96 97static void uhci_dumpregs(uhci_softc_t *sc); 98static void uhci_dump_tds(uhci_td_t *td); 99 100#endif 101 102#define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ --- 3124 unchanged lines hidden --- | 94TUNABLE_INT("hw.usb.uhci.loop", &uhcinoloop); 95 96static void uhci_dumpregs(uhci_softc_t *sc); 97static void uhci_dump_tds(uhci_td_t *td); 98 99#endif 100 101#define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ --- 3124 unchanged lines hidden --- |