Deleted Added
full compact
uss820dci_atmelarm.c (184610) uss820dci_atmelarm.c (184824)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/uss820dci_atmelarm.c 184610 2008-11-04 02:31:03Z alfred $");
2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/uss820dci_atmelarm.c 184824 2008-11-10 20:54:31Z thompsa $");
3
4/*-
5 * Copyright (c) 2008 Hans Petter Selasky <hselasky@freebsd.org>
6 * 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:

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

166 }
167 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
168 if (!(sc->sc_bus.bdev)) {
169 goto error;
170 }
171 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
172
173 err = usb2_config_td_setup(&sc->sc_config_td, sc,
3
4/*-
5 * Copyright (c) 2008 Hans Petter Selasky <hselasky@freebsd.org>
6 * 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:

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

166 }
167 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
168 if (!(sc->sc_bus.bdev)) {
169 goto error;
170 }
171 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
172
173 err = usb2_config_td_setup(&sc->sc_config_td, sc,
174 &sc->sc_bus.mtx, NULL, 0, 4);
174 &sc->sc_bus.bus_mtx, NULL, 0, 4);
175 if (err) {
176 device_printf(dev, "could not setup config thread!\n");
177 goto error;
178 }
179#if (__FreeBSD_version >= 700031)
180 err = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
181 NULL, (void *)uss820dci_interrupt, sc, &sc->sc_intr_hdl);
182#else

--- 65 unchanged lines hidden ---
175 if (err) {
176 device_printf(dev, "could not setup config thread!\n");
177 goto error;
178 }
179#if (__FreeBSD_version >= 700031)
180 err = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
181 NULL, (void *)uss820dci_interrupt, sc, &sc->sc_intr_hdl);
182#else

--- 65 unchanged lines hidden ---