at91_ohci.c (261616) | at91_ohci.c (276717) |
---|---|
1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ohci_atmelarm.c 261616 2014-02-08 04:29:36Z imp $"); | 26__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ohci_atmelarm.c 276717 2015-01-05 20:22:18Z hselasky $"); |
27 28#include <sys/stdint.h> 29#include <sys/stddef.h> 30#include <sys/param.h> 31#include <sys/queue.h> 32#include <sys/types.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> --- 53 unchanged lines hidden (view full) --- 88 struct at91_ohci_softc *sc = device_get_softc(dev); 89 int err; 90 int rid; 91 92 /* initialise some bus fields */ 93 sc->sc_ohci.sc_bus.parent = dev; 94 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 95 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; | 27 28#include <sys/stdint.h> 29#include <sys/stddef.h> 30#include <sys/param.h> 31#include <sys/queue.h> 32#include <sys/types.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> --- 53 unchanged lines hidden (view full) --- 88 struct at91_ohci_softc *sc = device_get_softc(dev); 89 int err; 90 int rid; 91 92 /* initialise some bus fields */ 93 sc->sc_ohci.sc_bus.parent = dev; 94 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 95 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; |
96 sc->sc_ohci.sc_bus.dma_bits = 32; |
|
96 97 /* get all DMA memory */ 98 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 99 USB_GET_DMA_TAG(dev), &ohci_iterate_hw_softc)) { 100 return (ENOMEM); 101 } 102 sc->mclk = at91_pmc_clock_ref("mck"); 103 sc->iclk = at91_pmc_clock_ref("ohci_clk"); --- 138 unchanged lines hidden --- | 97 98 /* get all DMA memory */ 99 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 100 USB_GET_DMA_TAG(dev), &ohci_iterate_hw_softc)) { 101 return (ENOMEM); 102 } 103 sc->mclk = at91_pmc_clock_ref("mck"); 104 sc->iclk = at91_pmc_clock_ref("ohci_clk"); --- 138 unchanged lines hidden --- |