uvscom.c (186730) | uvscom.c (187173) |
---|---|
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/usb2/serial/uvscom2.c 186730 2009-01-04 00:12:01Z alfred $"); | 4__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/uvscom2.c 187173 2009-01-13 19:03:12Z thompsa $"); |
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: --- 321 unchanged lines hidden (view full) --- 334 UVSCOM_FLAG_READ_STALL); 335 336 error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 337 &uvscom_callback, &Giant); 338 if (error) { 339 goto detach; 340 } 341 /* start interrupt pipe */ | 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: --- 321 unchanged lines hidden (view full) --- 334 UVSCOM_FLAG_READ_STALL); 335 336 error = usb2_com_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 337 &uvscom_callback, &Giant); 338 if (error) { 339 goto detach; 340 } 341 /* start interrupt pipe */ |
342 USB_XFER_LOCK(sc->sc_xfer[4]); | 342 mtx_lock(&Giant); |
343 usb2_transfer_start(sc->sc_xfer[4]); | 343 usb2_transfer_start(sc->sc_xfer[4]); |
344 USB_XFER_UNLOCK(sc->sc_xfer[4]); | 344 mtx_unlock(&Giant); |
345 346 return (0); 347 348detach: 349 uvscom_detach(dev); 350 return (ENXIO); 351} 352 --- 449 unchanged lines hidden --- | 345 346 return (0); 347 348detach: 349 uvscom_detach(dev); 350 return (ENXIO); 351} 352 --- 449 unchanged lines hidden --- |