if_cdcereg.h (221077) | if_cdcereg.h (277298) |
---|---|
1/*- 2 * Copyright (c) 2003-2005 Craig Boston 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2003-2005 Craig Boston 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/usb/net/if_cdcereg.h 221077 2011-04-26 19:40:37Z hselasky $ | 32 * $FreeBSD: head/sys/dev/usb/net/if_cdcereg.h 277298 2015-01-17 12:31:26Z br $ |
33 */ 34 35#ifndef _USB_IF_CDCEREG_H_ 36#define _USB_IF_CDCEREG_H_ 37 38#define CDCE_FRAMES_MAX 8 /* units */ 39#define CDCE_IND_SIZE_MAX 32 /* bytes */ 40 --- 47 unchanged lines hidden (view full) --- 88 89 int sc_flags; 90#define CDCE_FLAG_ZAURUS 0x0001 91#define CDCE_FLAG_NO_UNION 0x0002 92#define CDCE_FLAG_RX_DATA 0x0010 93 94 uint8_t sc_eaddr_str_index; 95 uint8_t sc_ifaces_index[2]; | 33 */ 34 35#ifndef _USB_IF_CDCEREG_H_ 36#define _USB_IF_CDCEREG_H_ 37 38#define CDCE_FRAMES_MAX 8 /* units */ 39#define CDCE_IND_SIZE_MAX 32 /* bytes */ 40 --- 47 unchanged lines hidden (view full) --- 88 89 int sc_flags; 90#define CDCE_FLAG_ZAURUS 0x0001 91#define CDCE_FLAG_NO_UNION 0x0002 92#define CDCE_FLAG_RX_DATA 0x0010 93 94 uint8_t sc_eaddr_str_index; 95 uint8_t sc_ifaces_index[2]; |
96 uint8_t sc_notify_state; 97#define CDCE_NOTIFY_NETWORK_CONNECTION 0 98#define CDCE_NOTIFY_SPEED_CHANGE 1 99#define CDCE_NOTIFY_DONE 2 |
|
96}; 97 98#define CDCE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 99#define CDCE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 100#define CDCE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t) 101#endif /* _USB_IF_CDCEREG_H_ */ | 100}; 101 102#define CDCE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 103#define CDCE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 104#define CDCE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t) 105#endif /* _USB_IF_CDCEREG_H_ */ |