l2cap.h (6327eb980d2ff0c96363b81cb0ce580165cb81b8) l2cap.h (57253fd8c91e76780e9628451f680efcbcc52c85)
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org>
5 Copyright (C) 2010 Google Inc.
6
7 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
8

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

104#define L2CAP_FEAT_EXT_WINDOW 0x00000100
105#define L2CAP_FEAT_UCD 0x00000200
106
107/* L2CAP checksum option */
108#define L2CAP_FCS_NONE 0x00
109#define L2CAP_FCS_CRC16 0x01
110
111/* L2CAP Control Field bit masks */
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org>
5 Copyright (C) 2010 Google Inc.
6
7 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
8

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

104#define L2CAP_FEAT_EXT_WINDOW 0x00000100
105#define L2CAP_FEAT_UCD 0x00000200
106
107/* L2CAP checksum option */
108#define L2CAP_FCS_NONE 0x00
109#define L2CAP_FCS_CRC16 0x01
110
111/* L2CAP Control Field bit masks */
112#define L2CAP_CTRL_SAR 0xC000
113#define L2CAP_CTRL_REQSEQ 0x3F00
114#define L2CAP_CTRL_TXSEQ 0x007E
115#define L2CAP_CTRL_RETRANS 0x0080
116#define L2CAP_CTRL_FINAL 0x0080
117#define L2CAP_CTRL_POLL 0x0010
118#define L2CAP_CTRL_SUPERVISE 0x000C
119#define L2CAP_CTRL_FRAME_TYPE 0x0001 /* I- or S-Frame */
112#define L2CAP_CTRL_SAR 0xC000
113#define L2CAP_CTRL_REQSEQ 0x3F00
114#define L2CAP_CTRL_TXSEQ 0x007E
115#define L2CAP_CTRL_SUPERVISE 0x000C
120
116
121#define L2CAP_CTRL_TXSEQ_SHIFT 1
122#define L2CAP_CTRL_REQSEQ_SHIFT 8
123#define L2CAP_CTRL_SAR_SHIFT 14
117#define L2CAP_CTRL_RETRANS 0x0080
118#define L2CAP_CTRL_FINAL 0x0080
119#define L2CAP_CTRL_POLL 0x0010
120#define L2CAP_CTRL_FRAME_TYPE 0x0001 /* I- or S-Frame */
124
121
122#define L2CAP_CTRL_TXSEQ_SHIFT 1
123#define L2CAP_CTRL_SUPER_SHIFT 2
124#define L2CAP_CTRL_REQSEQ_SHIFT 8
125#define L2CAP_CTRL_SAR_SHIFT 14
126
127/* L2CAP Extended Control Field bit mask */
128#define L2CAP_EXT_CTRL_TXSEQ 0xFFFC0000
129#define L2CAP_EXT_CTRL_SAR 0x00030000
130#define L2CAP_EXT_CTRL_SUPERVISE 0x00030000
131#define L2CAP_EXT_CTRL_REQSEQ 0x0000FFFC
132
133#define L2CAP_EXT_CTRL_POLL 0x00040000
134#define L2CAP_EXT_CTRL_FINAL 0x00000002
135#define L2CAP_EXT_CTRL_FRAME_TYPE 0x00000001 /* I- or S-Frame */
136
137#define L2CAP_EXT_CTRL_REQSEQ_SHIFT 2
138#define L2CAP_EXT_CTRL_SAR_SHIFT 16
139#define L2CAP_EXT_CTRL_SUPER_SHIFT 16
140#define L2CAP_EXT_CTRL_TXSEQ_SHIFT 18
141
125/* L2CAP Supervisory Function */
126#define L2CAP_SUPER_RCV_READY 0x0000
127#define L2CAP_SUPER_REJECT 0x0004
128#define L2CAP_SUPER_RCV_NOT_READY 0x0008
129#define L2CAP_SUPER_SELECT_REJECT 0x000C
130
131/* L2CAP Segmentation and Reassembly */
132#define L2CAP_SDU_UNSEGMENTED 0x0000

--- 390 unchanged lines hidden ---
142/* L2CAP Supervisory Function */
143#define L2CAP_SUPER_RCV_READY 0x0000
144#define L2CAP_SUPER_REJECT 0x0004
145#define L2CAP_SUPER_RCV_NOT_READY 0x0008
146#define L2CAP_SUPER_SELECT_REJECT 0x000C
147
148/* L2CAP Segmentation and Reassembly */
149#define L2CAP_SDU_UNSEGMENTED 0x0000

--- 390 unchanged lines hidden ---