uark.c (212122) | uark.c (214761) |
---|---|
1/* $OpenBSD: uark.c,v 1.1 2006/08/14 08:30:22 jsg Exp $ */ 2 3/* 4 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * | 1/* $OpenBSD: uark.c,v 1.1 2006/08/14 08:30:22 jsg Exp $ */ 2 3/* 4 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * |
18 * $FreeBSD: head/sys/dev/usb/serial/uark.c 212122 2010-09-01 23:47:53Z thompsa $ | 18 * $FreeBSD: head/sys/dev/usb/serial/uark.c 214761 2010-11-03 21:50:49Z n_hibma $ |
19 */ 20 21/* 22 * NOTE: all function names beginning like "uark_cfg_" can only 23 * be called from within the config thread function ! 24 */ 25 26 --- 207 unchanged lines hidden (view full) --- 234 return (ENXIO); /* failure */ 235} 236 237static int 238uark_detach(device_t dev) 239{ 240 struct uark_softc *sc = device_get_softc(dev); 241 | 19 */ 20 21/* 22 * NOTE: all function names beginning like "uark_cfg_" can only 23 * be called from within the config thread function ! 24 */ 25 26 --- 207 unchanged lines hidden (view full) --- 234 return (ENXIO); /* failure */ 235} 236 237static int 238uark_detach(device_t dev) 239{ 240 struct uark_softc *sc = device_get_softc(dev); 241 |
242 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1); | 242 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); |
243 usbd_transfer_unsetup(sc->sc_xfer, UARK_N_TRANSFER); 244 mtx_destroy(&sc->sc_mtx); 245 246 return (0); 247} 248 249static void 250uark_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error) --- 193 unchanged lines hidden --- | 243 usbd_transfer_unsetup(sc->sc_xfer, UARK_N_TRANSFER); 244 mtx_destroy(&sc->sc_mtx); 245 246 return (0); 247} 248 249static void 250uark_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error) --- 193 unchanged lines hidden --- |