Deleted Added
full compact
ng_ubt_var.h (192907) ng_ubt_var.h (192984)
1/*
2 * ng_ubt_var.h
3 */
4
5/*-
6 * Copyright (c) 2001-2009 Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: ng_ubt_var.h,v 1.2 2003/03/22 23:44:36 max Exp $
1/*
2 * ng_ubt_var.h
3 */
4
5/*-
6 * Copyright (c) 2001-2009 Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: ng_ubt_var.h,v 1.2 2003/03/22 23:44:36 max Exp $
31 * $FreeBSD: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h 192907 2009-05-27 16:34:08Z thompsa $
31 * $FreeBSD: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h 192984 2009-05-28 17:36:36Z thompsa $
32 */
33
34#ifndef _NG_UBT_VAR_H_
35#define _NG_UBT_VAR_H_ 1
36
37/* Debug printf's */
38#define UBT_DEBUG(level, sc, fmt, ...) \
39do { \

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

85#define UBT_STAT_PCKTS_RECV(sc) (sc)->sc_stat.pckts_recv ++
86#define UBT_STAT_BYTES_RECV(sc, n) (sc)->sc_stat.bytes_recv += (n)
87#define UBT_STAT_OERROR(sc) (sc)->sc_stat.oerrors ++
88#define UBT_STAT_IERROR(sc) (sc)->sc_stat.ierrors ++
89#define UBT_STAT_RESET(sc) bzero(&(sc)->sc_stat, sizeof((sc)->sc_stat))
90
91 /* USB device specific */
92 struct mtx sc_if_mtx; /* interfaces lock */
32 */
33
34#ifndef _NG_UBT_VAR_H_
35#define _NG_UBT_VAR_H_ 1
36
37/* Debug printf's */
38#define UBT_DEBUG(level, sc, fmt, ...) \
39do { \

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

85#define UBT_STAT_PCKTS_RECV(sc) (sc)->sc_stat.pckts_recv ++
86#define UBT_STAT_BYTES_RECV(sc, n) (sc)->sc_stat.bytes_recv += (n)
87#define UBT_STAT_OERROR(sc) (sc)->sc_stat.oerrors ++
88#define UBT_STAT_IERROR(sc) (sc)->sc_stat.ierrors ++
89#define UBT_STAT_RESET(sc) bzero(&(sc)->sc_stat, sizeof((sc)->sc_stat))
90
91 /* USB device specific */
92 struct mtx sc_if_mtx; /* interfaces lock */
93 struct usb2_xfer *sc_xfer[UBT_N_TRANSFER];
93 struct usb_xfer *sc_xfer[UBT_N_TRANSFER];
94
95 struct mtx sc_ng_mtx; /* lock for shared NG data */
96
97 /* HCI commands */
98 struct ng_bt_mbufq sc_cmdq; /* HCI command queue */
94
95 struct mtx sc_ng_mtx; /* lock for shared NG data */
96
97 /* HCI commands */
98 struct ng_bt_mbufq sc_cmdq; /* HCI command queue */
99#define UBT_CTRL_BUFFER_SIZE (sizeof(struct usb2_device_request) + \
99#define UBT_CTRL_BUFFER_SIZE (sizeof(struct usb_device_request) + \
100 sizeof(ng_hci_cmd_pkt_t) + NG_HCI_CMD_PKT_SIZE)
101#define UBT_INTR_BUFFER_SIZE (MCLBYTES-1) /* reserve 1 byte for ID-tag */
102
103 /* ACL data */
104 struct ng_bt_mbufq sc_aclq; /* ACL data queue */
105#define UBT_BULK_READ_BUFFER_SIZE (MCLBYTES-1) /* reserve 1 byte for ID-tag */
106#define UBT_BULK_WRITE_BUFFER_SIZE (MCLBYTES)
107

--- 24 unchanged lines hidden ---
100 sizeof(ng_hci_cmd_pkt_t) + NG_HCI_CMD_PKT_SIZE)
101#define UBT_INTR_BUFFER_SIZE (MCLBYTES-1) /* reserve 1 byte for ID-tag */
102
103 /* ACL data */
104 struct ng_bt_mbufq sc_aclq; /* ACL data queue */
105#define UBT_BULK_READ_BUFFER_SIZE (MCLBYTES-1) /* reserve 1 byte for ID-tag */
106#define UBT_BULK_WRITE_BUFFER_SIZE (MCLBYTES)
107

--- 24 unchanged lines hidden ---