uftdi.c (213876) | uftdi.c (214761) |
---|---|
1/* $NetBSD: uftdi.c,v 1.13 2002/09/23 05:51:23 simonb Exp $ */ 2 3/*- 4 * Copyright (c) 2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Lennart Augustsson (lennart@augustsson.net). --- 16 unchanged lines hidden (view full) --- 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/* $NetBSD: uftdi.c,v 1.13 2002/09/23 05:51:23 simonb Exp $ */ 2 3/*- 4 * Copyright (c) 2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Lennart Augustsson (lennart@augustsson.net). --- 16 unchanged lines hidden (view full) --- 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uftdi.c 213876 2010-10-14 21:53:42Z hselasky $"); | 33__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uftdi.c 214761 2010-11-03 21:50:49Z n_hibma $"); |
34 35/* 36 * NOTE: all function names beginning like "uftdi_cfg_" can only 37 * be called from within the config thread function ! 38 */ 39 40/* 41 * FTDI FT8U100AX serial adapter driver --- 297 unchanged lines hidden (view full) --- 339 return (ENXIO); 340} 341 342static int 343uftdi_detach(device_t dev) 344{ 345 struct uftdi_softc *sc = device_get_softc(dev); 346 | 34 35/* 36 * NOTE: all function names beginning like "uftdi_cfg_" can only 37 * be called from within the config thread function ! 38 */ 39 40/* 41 * FTDI FT8U100AX serial adapter driver --- 297 unchanged lines hidden (view full) --- 339 return (ENXIO); 340} 341 342static int 343uftdi_detach(device_t dev) 344{ 345 struct uftdi_softc *sc = device_get_softc(dev); 346 |
347 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1); | 347 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); |
348 usbd_transfer_unsetup(sc->sc_xfer, UFTDI_N_TRANSFER); 349 mtx_destroy(&sc->sc_mtx); 350 351 return (0); 352} 353 354static void 355uftdi_cfg_open(struct ucom_softc *ucom) --- 469 unchanged lines hidden --- | 348 usbd_transfer_unsetup(sc->sc_xfer, UFTDI_N_TRANSFER); 349 mtx_destroy(&sc->sc_mtx); 350 351 return (0); 352} 353 354static void 355uftdi_cfg_open(struct ucom_softc *ucom) --- 469 unchanged lines hidden --- |