Deleted Added
full compact
uvscom.c (214761) uvscom.c (214843)
1/* $NetBSD: usb/uvscom.c,v 1.1 2002/03/19 15:08:42 augustss Exp $ */
2
3#include <sys/cdefs.h>
1/* $NetBSD: usb/uvscom.c,v 1.1 2002/03/19 15:08:42 augustss Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uvscom.c 214761 2010-11-03 21:50:49Z n_hibma $");
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uvscom.c 214843 2010-11-05 19:12:48Z n_hibma $");
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

316 usbd_xfer_set_stall(sc->sc_xfer[UVSCOM_BULK_DT_RD]);
317 mtx_unlock(&sc->sc_mtx);
318
319 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
320 &uvscom_callback, &sc->sc_mtx);
321 if (error) {
322 goto detach;
323 }
5
6/*-
7 * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:

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

316 usbd_xfer_set_stall(sc->sc_xfer[UVSCOM_BULK_DT_RD]);
317 mtx_unlock(&sc->sc_mtx);
318
319 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
320 &uvscom_callback, &sc->sc_mtx);
321 if (error) {
322 goto detach;
323 }
324 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev);
325
324 /* start interrupt pipe */
325 mtx_lock(&sc->sc_mtx);
326 usbd_transfer_start(sc->sc_xfer[UVSCOM_INTR_DT_RD]);
327 mtx_unlock(&sc->sc_mtx);
328
329 return (0);
330
331detach:

--- 414 unchanged lines hidden ---
326 /* start interrupt pipe */
327 mtx_lock(&sc->sc_mtx);
328 usbd_transfer_start(sc->sc_xfer[UVSCOM_INTR_DT_RD]);
329 mtx_unlock(&sc->sc_mtx);
330
331 return (0);
332
333detach:

--- 414 unchanged lines hidden ---