ohci.c (192499) | ohci.c (192502) |
---|---|
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 192499 2009-05-21 00:04:17Z thompsa $"); | 29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ohci.c 192502 2009-05-21 01:48:42Z 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 --- 18 unchanged lines hidden (view full) --- 56 57#define OHCI_BUS2SC(bus) \ 58 ((ohci_softc_t *)(((uint8_t *)(bus)) - \ 59 ((uint8_t *)&(((ohci_softc_t *)0)->sc_bus)))) 60 61#if USB_DEBUG 62static int ohcidebug = 0; 63 | 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 --- 18 unchanged lines hidden (view full) --- 56 57#define OHCI_BUS2SC(bus) \ 58 ((ohci_softc_t *)(((uint8_t *)(bus)) - \ 59 ((uint8_t *)&(((ohci_softc_t *)0)->sc_bus)))) 60 61#if USB_DEBUG 62static int ohcidebug = 0; 63 |
64SYSCTL_NODE(_hw_usb2, OID_AUTO, ohci, CTLFLAG_RW, 0, "USB ohci"); 65SYSCTL_INT(_hw_usb2_ohci, OID_AUTO, debug, CTLFLAG_RW, | 64SYSCTL_NODE(_hw_usb, OID_AUTO, ohci, CTLFLAG_RW, 0, "USB ohci"); 65SYSCTL_INT(_hw_usb_ohci, OID_AUTO, debug, CTLFLAG_RW, |
66 &ohcidebug, 0, "ohci debug level"); 67static void ohci_dumpregs(ohci_softc_t *); 68static void ohci_dump_tds(ohci_td_t *); 69static uint8_t ohci_dump_td(ohci_td_t *); 70static void ohci_dump_ed(ohci_ed_t *); 71static uint8_t ohci_dump_itd(ohci_itd_t *); 72static void ohci_dump_itds(ohci_itd_t *); 73 --- 2667 unchanged lines hidden --- | 66 &ohcidebug, 0, "ohci debug level"); 67static void ohci_dumpregs(ohci_softc_t *); 68static void ohci_dump_tds(ohci_td_t *); 69static uint8_t ohci_dump_td(ohci_td_t *); 70static void ohci_dump_ed(ohci_ed_t *); 71static uint8_t ohci_dump_itd(ohci_itd_t *); 72static void ohci_dump_itds(ohci_itd_t *); 73 --- 2667 unchanged lines hidden --- |