Deleted Added
full compact
ehci_mv.c (209131) ehci_mv.c (217072)
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 20 unchanged lines hidden (view full) ---

29 * SUCH DAMAGE.
30 */
31
32/*
33 * FDT attachment driver for the USB Enhanced Host Controller.
34 */
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 20 unchanged lines hidden (view full) ---

29 * SUCH DAMAGE.
30 */
31
32/*
33 * FDT attachment driver for the USB Enhanced Host Controller.
34 */
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci_mv.c 209131 2010-06-13 13:28:53Z raj $");
37__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci_mv.c 217072 2011-01-06 21:08:06Z jhb $");
38
39#include "opt_bus.h"
40
41#include <sys/stdint.h>
42#include <sys/stddef.h>
43#include <sys/param.h>
44#include <sys/queue.h>
45#include <sys/types.h>

--- 174 unchanged lines hidden (view full) ---

220 device_printf(self, "Could not add USB device\n");
221 goto error;
222 }
223 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
224 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
225
226 sprintf(sc->sc_vendor, "Marvell");
227
38
39#include "opt_bus.h"
40
41#include <sys/stdint.h>
42#include <sys/stddef.h>
43#include <sys/param.h>
44#include <sys/queue.h>
45#include <sys/types.h>

--- 174 unchanged lines hidden (view full) ---

220 device_printf(self, "Could not add USB device\n");
221 goto error;
222 }
223 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
224 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
225
226 sprintf(sc->sc_vendor, "Marvell");
227
228 err = bus_setup_intr(self, irq_err, INTR_FAST | INTR_TYPE_BIO,
228 err = bus_setup_intr(self, irq_err, INTR_TYPE_BIO,
229 err_intr, NULL, sc, &ih_err);
230 if (err) {
231 device_printf(self, "Could not setup error irq, %d\n", err);
232 ih_err = NULL;
233 goto error;
234 }
235
236 EWRITE4(sc, USB_BRIDGE_INTR_MASK, MV_USB_ADDR_DECODE_ERR |

--- 155 unchanged lines hidden ---
229 err_intr, NULL, sc, &ih_err);
230 if (err) {
231 device_printf(self, "Could not setup error irq, %d\n", err);
232 ih_err = NULL;
233 goto error;
234 }
235
236 EWRITE4(sc, USB_BRIDGE_INTR_MASK, MV_USB_ADDR_DECODE_ERR |

--- 155 unchanged lines hidden ---