xls_ehci.c (228483) | xls_ehci.c (276717) |
---|---|
1/*- 2 * Copyright (c) 1998 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Lennart Augustsson (augustss@carlstedt.se) at 7 * Carlstedt Research & Technology. 8 * --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Lennart Augustsson (augustss@carlstedt.se) at 7 * Carlstedt Research & Technology. 8 * --- 15 unchanged lines hidden (view full) --- 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/mips/rmi/xls_ehci.c 228483 2011-12-14 00:28:54Z hselasky $"); | 32__FBSDID("$FreeBSD: head/sys/mips/rmi/xls_ehci.c 276717 2015-01-05 20:22:18Z hselasky $"); |
33 34#include "opt_bus.h" 35 36#include <sys/stdint.h> 37#include <sys/stddef.h> 38#include <sys/param.h> 39#include <sys/queue.h> 40#include <sys/types.h> --- 47 unchanged lines hidden (view full) --- 88{ 89 ehci_softc_t *sc = device_get_softc(self); 90 int err; 91 int rid; 92 93 sc->sc_bus.parent = self; 94 sc->sc_bus.devices = sc->sc_devices; 95 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; | 33 34#include "opt_bus.h" 35 36#include <sys/stdint.h> 37#include <sys/stddef.h> 38#include <sys/param.h> 39#include <sys/queue.h> 40#include <sys/types.h> --- 47 unchanged lines hidden (view full) --- 88{ 89 ehci_softc_t *sc = device_get_softc(self); 90 int err; 91 int rid; 92 93 sc->sc_bus.parent = self; 94 sc->sc_bus.devices = sc->sc_devices; 95 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; |
96 sc->sc_bus.dma_bits = 32; |
|
96 97 /* get all DMA memory */ 98 if (usb_bus_mem_alloc_all(&sc->sc_bus, 99 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) { 100 return (ENOMEM); 101 } 102 103 rid = 0; --- 122 unchanged lines hidden --- | 97 98 /* get all DMA memory */ 99 if (usb_bus_mem_alloc_all(&sc->sc_bus, 100 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) { 101 return (ENOMEM); 102 } 103 104 rid = 0; --- 122 unchanged lines hidden --- |