rt305x_dotg.c (228483) | rt305x_dotg.c (276717) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/mips/rt305x/rt305x_dotg.c 228483 2011-12-14 00:28:54Z hselasky $"); | 2__FBSDID("$FreeBSD: head/sys/mips/rt305x/rt305x_dotg.c 276717 2015-01-05 20:22:18Z hselasky $"); |
3 4/*- 5 * Copyright (c) 2010,2011 Aleksandr Rybalko. All rights reserved. 6 * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 76 unchanged lines hidden (view full) --- 87 88 /* setup controller interface softc */ 89 90 /* initialise some bus fields */ 91 sc->sc_dci.sc_dev = dev; 92 sc->sc_dci.sc_bus.parent = dev; 93 sc->sc_dci.sc_bus.devices = sc->sc_dci.sc_devices; 94 sc->sc_dci.sc_bus.devices_max = DOTG_MAX_DEVICES; | 3 4/*- 5 * Copyright (c) 2010,2011 Aleksandr Rybalko. All rights reserved. 6 * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 76 unchanged lines hidden (view full) --- 87 88 /* setup controller interface softc */ 89 90 /* initialise some bus fields */ 91 sc->sc_dci.sc_dev = dev; 92 sc->sc_dci.sc_bus.parent = dev; 93 sc->sc_dci.sc_bus.devices = sc->sc_dci.sc_devices; 94 sc->sc_dci.sc_bus.devices_max = DOTG_MAX_DEVICES; |
95 sc->sc_dci.sc_bus.dma_bits = 32; |
|
95 96 /* get all DMA memory */ 97 if (usb_bus_mem_alloc_all(&sc->sc_dci.sc_bus, 98 USB_GET_DMA_TAG(dev), NULL)) { 99 printf("No mem\n"); 100 return (ENOMEM); 101 } 102 sc->sc_dci.sc_mem_rid = 0; --- 128 unchanged lines hidden --- | 96 97 /* get all DMA memory */ 98 if (usb_bus_mem_alloc_all(&sc->sc_dci.sc_bus, 99 USB_GET_DMA_TAG(dev), NULL)) { 100 printf("No mem\n"); 101 return (ENOMEM); 102 } 103 sc->sc_dci.sc_mem_rid = 0; --- 128 unchanged lines hidden --- |