Deleted Added
full compact
usb_serial.h (263687) usb_serial.h (268206)
1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */
1/* $NetBSD: ucomvar.h,v 1.9 2001/01/23 21:56:17 augustss Exp $ */
2/* $FreeBSD: stable/10/sys/dev/usb/serial/usb_serial.h 263687 2014-03-24 13:48:04Z emaste $ */
2/* $FreeBSD: stable/10/sys/dev/usb/serial/usb_serial.h 268206 2014-07-03 06:44:55Z hselasky $ */
3
4/*-
5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

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

190#define UCOM_LS_RING 0x08
191 uint8_t sc_jitterbuf[UCOM_JITTERBUF_SIZE];
192};
193
194#define UCOM_MTX_ASSERT(sc, what) mtx_assert((sc)->sc_mtx, what)
195#define UCOM_MTX_LOCK(sc) mtx_lock((sc)->sc_mtx)
196#define UCOM_MTX_UNLOCK(sc) mtx_unlock((sc)->sc_mtx)
197#define UCOM_UNLOAD_DRAIN(x) \
3
4/*-
5 * Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

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

190#define UCOM_LS_RING 0x08
191 uint8_t sc_jitterbuf[UCOM_JITTERBUF_SIZE];
192};
193
194#define UCOM_MTX_ASSERT(sc, what) mtx_assert((sc)->sc_mtx, what)
195#define UCOM_MTX_LOCK(sc) mtx_lock((sc)->sc_mtx)
196#define UCOM_MTX_UNLOCK(sc) mtx_unlock((sc)->sc_mtx)
197#define UCOM_UNLOAD_DRAIN(x) \
198SYSUNINIT(var, SI_SUB_KLD - 3, SI_ORDER_ANY, ucom_drain_all, 0)
198SYSUNINIT(var, SI_SUB_KLD - 2, SI_ORDER_ANY, ucom_drain_all, 0)
199
200#define ucom_cfg_do_request(udev,com,req,ptr,flags,timo) \
201 usbd_do_request_proc(udev,&(com)->sc_super->sc_tq,req,ptr,flags,NULL,timo)
202
203int ucom_attach(struct ucom_super_softc *,
204 struct ucom_softc *, int, void *,
205 const struct ucom_callback *callback, struct mtx *);
206void ucom_detach(struct ucom_super_softc *, struct ucom_softc *);

--- 12 unchanged lines hidden ---
199
200#define ucom_cfg_do_request(udev,com,req,ptr,flags,timo) \
201 usbd_do_request_proc(udev,&(com)->sc_super->sc_tq,req,ptr,flags,NULL,timo)
202
203int ucom_attach(struct ucom_super_softc *,
204 struct ucom_softc *, int, void *,
205 const struct ucom_callback *callback, struct mtx *);
206void ucom_detach(struct ucom_super_softc *, struct ucom_softc *);

--- 12 unchanged lines hidden ---