dwc_otg_fdt.c (266394) | dwc_otg_fdt.c (276717) |
---|---|
1/*- 2 * Copyright (c) 2012 Hans Petter Selasky. 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. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012 Hans Petter Selasky. 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. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/dev/usb/controller/dwc_otg_fdt.c 266394 2014-05-18 09:13:29Z hselasky $"); | 27__FBSDID("$FreeBSD: head/sys/dev/usb/controller/dwc_otg_fdt.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> --- 58 unchanged lines hidden (view full) --- 94 char usb_mode[24]; 95 int err; 96 int rid; 97 98 /* initialise some bus fields */ 99 sc->sc_otg.sc_bus.parent = dev; 100 sc->sc_otg.sc_bus.devices = sc->sc_otg.sc_devices; 101 sc->sc_otg.sc_bus.devices_max = DWC_OTG_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> --- 58 unchanged lines hidden (view full) --- 94 char usb_mode[24]; 95 int err; 96 int rid; 97 98 /* initialise some bus fields */ 99 sc->sc_otg.sc_bus.parent = dev; 100 sc->sc_otg.sc_bus.devices = sc->sc_otg.sc_devices; 101 sc->sc_otg.sc_bus.devices_max = DWC_OTG_MAX_DEVICES; |
102 sc->sc_otg.sc_bus.dma_bits = 32; |
|
102 103 /* get USB mode, if any */ 104 if (OF_getprop(ofw_bus_get_node(dev), "dr_mode", 105 &usb_mode, sizeof(usb_mode)) > 0) { 106 107 /* ensure proper zero termination */ 108 usb_mode[sizeof(usb_mode) - 1] = 0; 109 --- 124 unchanged lines hidden --- | 103 104 /* get USB mode, if any */ 105 if (OF_getprop(ofw_bus_get_node(dev), "dr_mode", 106 &usb_mode, sizeof(usb_mode)) > 0) { 107 108 /* ensure proper zero termination */ 109 usb_mode[sizeof(usb_mode) - 1] = 0; 110 --- 124 unchanged lines hidden --- |