at91dci_atmelarm.c (184610) | at91dci_atmelarm.c (184824) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/at91dci_atmelarm.c 184610 2008-11-04 02:31:03Z alfred $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/at91dci_atmelarm.c 184824 2008-11-10 20:54:31Z thompsa $"); |
3 4/*- 5 * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 194 unchanged lines hidden (view full) --- 205 } 206 sc->sc_dci.sc_bus.bdev = device_add_child(dev, "usbus", -1); 207 if (!(sc->sc_dci.sc_bus.bdev)) { 208 goto error; 209 } 210 device_set_ivars(sc->sc_dci.sc_bus.bdev, &sc->sc_dci.sc_bus); 211 212 err = usb2_config_td_setup(&sc->sc_dci.sc_config_td, sc, | 3 4/*- 5 * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 194 unchanged lines hidden (view full) --- 205 } 206 sc->sc_dci.sc_bus.bdev = device_add_child(dev, "usbus", -1); 207 if (!(sc->sc_dci.sc_bus.bdev)) { 208 goto error; 209 } 210 device_set_ivars(sc->sc_dci.sc_bus.bdev, &sc->sc_dci.sc_bus); 211 212 err = usb2_config_td_setup(&sc->sc_dci.sc_config_td, sc, |
213 &sc->sc_dci.sc_bus.mtx, NULL, 0, 4); | 213 &sc->sc_dci.sc_bus.bus_mtx, NULL, 0, 4); |
214 if (err) { 215 device_printf(dev, "could not setup config thread!\n"); 216 goto error; 217 } 218#if (__FreeBSD_version >= 700031) 219 err = bus_setup_intr(dev, sc->sc_dci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, 220 NULL, (void *)at91dci_interrupt, sc, &sc->sc_dci.sc_intr_hdl); 221#else --- 140 unchanged lines hidden --- | 214 if (err) { 215 device_printf(dev, "could not setup config thread!\n"); 216 goto error; 217 } 218#if (__FreeBSD_version >= 700031) 219 err = bus_setup_intr(dev, sc->sc_dci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, 220 NULL, (void *)at91dci_interrupt, sc, &sc->sc_dci.sc_intr_hdl); 221#else --- 140 unchanged lines hidden --- |