Deleted Added
full compact
uftdi.c (214761) uftdi.c (214843)
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 214761 2010-11-03 21:50:49Z n_hibma $");
33__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uftdi.c 214843 2010-11-05 19:12:48Z 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

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

327 FTDI_SIO_SET_DATA_PARITY_NONE |
328 FTDI_SIO_SET_DATA_BITS(8));
329
330 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
331 &uftdi_callback, &sc->sc_mtx);
332 if (error) {
333 goto detach;
334 }
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

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

327 FTDI_SIO_SET_DATA_PARITY_NONE |
328 FTDI_SIO_SET_DATA_BITS(8));
329
330 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc,
331 &uftdi_callback, &sc->sc_mtx);
332 if (error) {
333 goto detach;
334 }
335 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev);
336
335 return (0); /* success */
336
337detach:
338 uftdi_detach(dev);
339 return (ENXIO);
340}
341
342static int

--- 482 unchanged lines hidden ---
337 return (0); /* success */
338
339detach:
340 uftdi_detach(dev);
341 return (ENXIO);
342}
343
344static int

--- 482 unchanged lines hidden ---