ehci_pci.c (275137) | ehci_pci.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/dev/usb/controller/ehci_pci.c 275137 2014-11-26 20:34:05Z adrian $"); | 32__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci_pci.c 276717 2015-01-05 20:22:18Z hselasky $"); |
33 34/* 35 * USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller. 36 * 37 * The EHCI 1.0 spec can be found at 38 * http://developer.intel.com/technology/usb/download/ehci-r10.pdf 39 * and the USB 2.0 spec at 40 * http://www.usb.org/developers/docs/usb_20.zip --- 236 unchanged lines hidden (view full) --- 277 ehci_softc_t *sc = device_get_softc(self); 278 int err; 279 int rid; 280 281 /* initialise some bus fields */ 282 sc->sc_bus.parent = self; 283 sc->sc_bus.devices = sc->sc_devices; 284 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; | 33 34/* 35 * USB Enhanced Host Controller Driver, a.k.a. USB 2.0 controller. 36 * 37 * The EHCI 1.0 spec can be found at 38 * http://developer.intel.com/technology/usb/download/ehci-r10.pdf 39 * and the USB 2.0 spec at 40 * http://www.usb.org/developers/docs/usb_20.zip --- 236 unchanged lines hidden (view full) --- 277 ehci_softc_t *sc = device_get_softc(self); 278 int err; 279 int rid; 280 281 /* initialise some bus fields */ 282 sc->sc_bus.parent = self; 283 sc->sc_bus.devices = sc->sc_devices; 284 sc->sc_bus.devices_max = EHCI_MAX_DEVICES; |
285 sc->sc_bus.dma_bits = 32; |
|
285 286 /* get all DMA memory */ 287 if (usb_bus_mem_alloc_all(&sc->sc_bus, 288 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) { 289 return (ENOMEM); 290 } 291 292 pci_enable_busmaster(self); --- 289 unchanged lines hidden --- | 286 287 /* get all DMA memory */ 288 if (usb_bus_mem_alloc_all(&sc->sc_bus, 289 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) { 290 return (ENOMEM); 291 } 292 293 pci_enable_busmaster(self); --- 289 unchanged lines hidden --- |