uhci.c (192499) | uhci.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/uhci.c 192499 2009-05-21 00:04:17Z thompsa $"); | 29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/uhci.c 192502 2009-05-21 01:48:42Z thompsa $"); |
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 --- 23 unchanged lines hidden (view full) --- 61#define UHCI_BUS2SC(bus) \ 62 ((uhci_softc_t *)(((uint8_t *)(bus)) - \ 63 ((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) 64 65#if USB_DEBUG 66static int uhcidebug = 0; 67static int uhcinoloop = 0; 68 | 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 --- 23 unchanged lines hidden (view full) --- 61#define UHCI_BUS2SC(bus) \ 62 ((uhci_softc_t *)(((uint8_t *)(bus)) - \ 63 ((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) 64 65#if USB_DEBUG 66static int uhcidebug = 0; 67static int uhcinoloop = 0; 68 |
69SYSCTL_NODE(_hw_usb2, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci"); 70SYSCTL_INT(_hw_usb2_uhci, OID_AUTO, debug, CTLFLAG_RW, | 69SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci"); 70SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RW, |
71 &uhcidebug, 0, "uhci debug level"); | 71 &uhcidebug, 0, "uhci debug level"); |
72SYSCTL_INT(_hw_usb2_uhci, OID_AUTO, loop, CTLFLAG_RW, | 72SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RW, |
73 &uhcinoloop, 0, "uhci noloop"); 74static void uhci_dumpregs(uhci_softc_t *sc); 75static void uhci_dump_tds(uhci_td_t *td); 76 77#endif 78 79#define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ 80 BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) --- 3155 unchanged lines hidden --- | 73 &uhcinoloop, 0, "uhci noloop"); 74static void uhci_dumpregs(uhci_softc_t *sc); 75static void uhci_dump_tds(uhci_td_t *td); 76 77#endif 78 79#define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ 80 BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) --- 3155 unchanged lines hidden --- |