ohci.c (198501) | ohci.c (199675) |
---|---|
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/ohci.c 198501 2009-10-26 21:47:16Z thompsa $"); | 29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ohci.c 199675 2009-11-22 21:21:22Z thompsa $"); |
30 31/* 32 * USB Open Host Controller driver. 33 * 34 * OHCI spec: http://www.compaq.com/productinfo/development/openhci.html 35 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 36 */ 37 --- 41 unchanged lines hidden (view full) --- 79 ((uint8_t *)&(((ohci_softc_t *)0)->sc_bus)))) 80 81#ifdef USB_DEBUG 82static int ohcidebug = 0; 83 84SYSCTL_NODE(_hw_usb, OID_AUTO, ohci, CTLFLAG_RW, 0, "USB ohci"); 85SYSCTL_INT(_hw_usb_ohci, OID_AUTO, debug, CTLFLAG_RW, 86 &ohcidebug, 0, "ohci debug level"); | 30 31/* 32 * USB Open Host Controller driver. 33 * 34 * OHCI spec: http://www.compaq.com/productinfo/development/openhci.html 35 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 36 */ 37 --- 41 unchanged lines hidden (view full) --- 79 ((uint8_t *)&(((ohci_softc_t *)0)->sc_bus)))) 80 81#ifdef USB_DEBUG 82static int ohcidebug = 0; 83 84SYSCTL_NODE(_hw_usb, OID_AUTO, ohci, CTLFLAG_RW, 0, "USB ohci"); 85SYSCTL_INT(_hw_usb_ohci, OID_AUTO, debug, CTLFLAG_RW, 86 &ohcidebug, 0, "ohci debug level"); |
87 88TUNABLE_INT("hw.usb.ohci.debug", &ohcidebug); 89 |
|
87static void ohci_dumpregs(ohci_softc_t *); 88static void ohci_dump_tds(ohci_td_t *); 89static uint8_t ohci_dump_td(ohci_td_t *); 90static void ohci_dump_ed(ohci_ed_t *); 91static uint8_t ohci_dump_itd(ohci_itd_t *); 92static void ohci_dump_itds(ohci_itd_t *); 93 94#endif --- 2667 unchanged lines hidden --- | 90static void ohci_dumpregs(ohci_softc_t *); 91static void ohci_dump_tds(ohci_td_t *); 92static uint8_t ohci_dump_td(ohci_td_t *); 93static void ohci_dump_ed(ohci_ed_t *); 94static uint8_t ohci_dump_itd(ohci_itd_t *); 95static void ohci_dump_itds(ohci_itd_t *); 96 97#endif --- 2667 unchanged lines hidden --- |