ohci_ec.c (264219) | ohci_ec.c (276717) |
---|---|
1/*- 2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/arm/cavium/cns11xx/ohci_ec.c 264219 2014-04-07 05:33:30Z rpaulo $"); | 27__FBSDID("$FreeBSD: head/sys/arm/cavium/cns11xx/ohci_ec.c 276717 2015-01-05 20:22:18Z hselasky $"); |
28 29#include <sys/stdint.h> 30#include <sys/stddef.h> 31#include <sys/param.h> 32#include <sys/queue.h> 33#include <sys/types.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> --- 50 unchanged lines hidden (view full) --- 86 bus_space_handle_t bsh; 87 int err; 88 int rid; 89 90 /* initialise some bus fields */ 91 sc->sc_ohci.sc_bus.parent = dev; 92 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 93 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; | 28 29#include <sys/stdint.h> 30#include <sys/stddef.h> 31#include <sys/param.h> 32#include <sys/queue.h> 33#include <sys/types.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> --- 50 unchanged lines hidden (view full) --- 86 bus_space_handle_t bsh; 87 int err; 88 int rid; 89 90 /* initialise some bus fields */ 91 sc->sc_ohci.sc_bus.parent = dev; 92 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 93 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; |
94 sc->sc_ohci.sc_bus.dma_bits = 32; |
|
94 95 /* get all DMA memory */ 96 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 97 USB_GET_DMA_TAG(dev), &ohci_iterate_hw_softc)) { 98 return (ENOMEM); 99 } 100 sc->sc_ohci.sc_dev = dev; 101 --- 138 unchanged lines hidden --- | 95 96 /* get all DMA memory */ 97 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 98 USB_GET_DMA_TAG(dev), &ohci_iterate_hw_softc)) { 99 return (ENOMEM); 100 } 101 sc->sc_ohci.sc_dev = dev; 102 --- 138 unchanged lines hidden --- |