uipaq.c (212122) | uipaq.c (214761) |
---|---|
1/* $NetBSD: uipaq.c,v 1.4 2006/11/16 01:33:27 christos Exp $ */ 2/* $OpenBSD: uipaq.c,v 1.1 2005/06/17 23:50:33 deraadt Exp $ */ 3 4/* 5 * Copyright (c) 2000-2005 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 28 unchanged lines hidden (view full) --- 37 * 19 July 2003: Incorporated changes suggested by Sam Lawrance from 38 * the uppc module 39 * 40 * 41 * Contact isis@cs.umd.edu if you have any questions/comments about this driver 42 */ 43 44#include <sys/cdefs.h> | 1/* $NetBSD: uipaq.c,v 1.4 2006/11/16 01:33:27 christos Exp $ */ 2/* $OpenBSD: uipaq.c,v 1.1 2005/06/17 23:50:33 deraadt Exp $ */ 3 4/* 5 * Copyright (c) 2000-2005 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 28 unchanged lines hidden (view full) --- 37 * 19 July 2003: Incorporated changes suggested by Sam Lawrance from 38 * the uppc module 39 * 40 * 41 * Contact isis@cs.umd.edu if you have any questions/comments about this driver 42 */ 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uipaq.c 212122 2010-09-01 23:47:53Z thompsa $"); | 45__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uipaq.c 214761 2010-11-03 21:50:49Z n_hibma $"); |
46 47#include <sys/stdint.h> 48#include <sys/stddef.h> 49#include <sys/param.h> 50#include <sys/queue.h> 51#include <sys/types.h> 52#include <sys/systm.h> 53#include <sys/kernel.h> --- 1114 unchanged lines hidden (view full) --- 1168 return (ENXIO); 1169} 1170 1171int 1172uipaq_detach(device_t dev) 1173{ 1174 struct uipaq_softc *sc = device_get_softc(dev); 1175 | 46 47#include <sys/stdint.h> 48#include <sys/stddef.h> 49#include <sys/param.h> 50#include <sys/queue.h> 51#include <sys/types.h> 52#include <sys/systm.h> 53#include <sys/kernel.h> --- 1114 unchanged lines hidden (view full) --- 1168 return (ENXIO); 1169} 1170 1171int 1172uipaq_detach(device_t dev) 1173{ 1174 struct uipaq_softc *sc = device_get_softc(dev); 1175 |
1176 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom, 1); | 1176 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); |
1177 usbd_transfer_unsetup(sc->sc_xfer, UIPAQ_N_TRANSFER); 1178 mtx_destroy(&sc->sc_mtx); 1179 1180 return (0); 1181} 1182 1183static void 1184uipaq_start_read(struct ucom_softc *ucom) --- 165 unchanged lines hidden --- | 1177 usbd_transfer_unsetup(sc->sc_xfer, UIPAQ_N_TRANSFER); 1178 mtx_destroy(&sc->sc_mtx); 1179 1180 return (0); 1181} 1182 1183static void 1184uipaq_start_read(struct ucom_softc *ucom) --- 165 unchanged lines hidden --- |