l2cap.h (d97c899bde330cd1c76c3a162558177563a74362) | l2cap.h (3f79410c7c9c8ef33ccff60c61e1f1166f5ed64a) |
---|---|
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 --- 117 unchanged lines hidden (view full) --- 126#define L2CAP_FEAT_UCD 0x00000200 127 128/* L2CAP checksum option */ 129#define L2CAP_FCS_NONE 0x00 130#define L2CAP_FCS_CRC16 0x01 131 132/* L2CAP fixed channels */ 133#define L2CAP_FC_L2CAP 0x02 | 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 --- 117 unchanged lines hidden (view full) --- 126#define L2CAP_FEAT_UCD 0x00000200 127 128/* L2CAP checksum option */ 129#define L2CAP_FCS_NONE 0x00 130#define L2CAP_FCS_CRC16 0x01 131 132/* L2CAP fixed channels */ 133#define L2CAP_FC_L2CAP 0x02 |
134#define L2CAP_FC_CONNLESS 0x04 | |
135#define L2CAP_FC_A2MP 0x08 136 137/* L2CAP Control Field bit masks */ 138#define L2CAP_CTRL_SAR 0xC000 139#define L2CAP_CTRL_REQSEQ 0x3F00 140#define L2CAP_CTRL_TXSEQ 0x007E 141#define L2CAP_CTRL_SUPERVISE 0x000C 142 --- 90 unchanged lines hidden (view full) --- 233 __le16 scid; 234 __le16 result; 235 __le16 status; 236} __packed; 237 238/* protocol/service multiplexer (PSM) */ 239#define L2CAP_PSM_SDP 0x0001 240#define L2CAP_PSM_RFCOMM 0x0003 | 134#define L2CAP_FC_A2MP 0x08 135 136/* L2CAP Control Field bit masks */ 137#define L2CAP_CTRL_SAR 0xC000 138#define L2CAP_CTRL_REQSEQ 0x3F00 139#define L2CAP_CTRL_TXSEQ 0x007E 140#define L2CAP_CTRL_SUPERVISE 0x000C 141 --- 90 unchanged lines hidden (view full) --- 232 __le16 scid; 233 __le16 result; 234 __le16 status; 235} __packed; 236 237/* protocol/service multiplexer (PSM) */ 238#define L2CAP_PSM_SDP 0x0001 239#define L2CAP_PSM_RFCOMM 0x0003 |
241#define L2CAP_PSM_3DSP 0x0021 | |
242 | 240 |
243/* channel indentifier */ | 241/* channel identifier */ |
244#define L2CAP_CID_SIGNALING 0x0001 245#define L2CAP_CID_CONN_LESS 0x0002 246#define L2CAP_CID_A2MP 0x0003 247#define L2CAP_CID_ATT 0x0004 248#define L2CAP_CID_LE_SIGNALING 0x0005 249#define L2CAP_CID_SMP 0x0006 250#define L2CAP_CID_DYN_START 0x0040 251#define L2CAP_CID_DYN_END 0xffff --- 187 unchanged lines hidden (view full) --- 439 440 struct l2cap_conn *conn; 441 struct hci_conn *hs_hcon; 442 struct hci_chan *hs_hchan; 443 struct kref kref; 444 445 __u8 state; 446 | 242#define L2CAP_CID_SIGNALING 0x0001 243#define L2CAP_CID_CONN_LESS 0x0002 244#define L2CAP_CID_A2MP 0x0003 245#define L2CAP_CID_ATT 0x0004 246#define L2CAP_CID_LE_SIGNALING 0x0005 247#define L2CAP_CID_SMP 0x0006 248#define L2CAP_CID_DYN_START 0x0040 249#define L2CAP_CID_DYN_END 0xffff --- 187 unchanged lines hidden (view full) --- 437 438 struct l2cap_conn *conn; 439 struct hci_conn *hs_hcon; 440 struct hci_chan *hs_hchan; 441 struct kref kref; 442 443 __u8 state; 444 |
447 bdaddr_t dst; 448 __u8 dst_type; 449 bdaddr_t src; 450 __u8 src_type; | |
451 __le16 psm; | 445 __le16 psm; |
452 __le16 sport; | |
453 __u16 dcid; 454 __u16 scid; 455 456 __u16 imtu; 457 __u16 omtu; 458 __u16 flush_to; 459 __u8 mode; 460 __u8 chan_type; 461 __u8 chan_policy; 462 | 446 __u16 dcid; 447 __u16 scid; 448 449 __u16 imtu; 450 __u16 omtu; 451 __u16 flush_to; 452 __u8 mode; 453 __u8 chan_type; 454 __u8 chan_policy; 455 |
456 __le16 sport; 457 |
|
463 __u8 sec_level; 464 465 __u8 ident; 466 467 __u8 conf_req[64]; 468 __u8 conf_len; 469 __u8 num_conf_req; 470 __u8 num_conf_rsp; --- 78 unchanged lines hidden (view full) --- 549 int (*recv) (struct l2cap_chan * chan, 550 struct sk_buff *skb); 551 void (*teardown) (struct l2cap_chan *chan, int err); 552 void (*close) (struct l2cap_chan *chan); 553 void (*state_change) (struct l2cap_chan *chan, 554 int state); 555 void (*ready) (struct l2cap_chan *chan); 556 void (*defer) (struct l2cap_chan *chan); | 458 __u8 sec_level; 459 460 __u8 ident; 461 462 __u8 conf_req[64]; 463 __u8 conf_len; 464 __u8 num_conf_req; 465 __u8 num_conf_rsp; --- 78 unchanged lines hidden (view full) --- 544 int (*recv) (struct l2cap_chan * chan, 545 struct sk_buff *skb); 546 void (*teardown) (struct l2cap_chan *chan, int err); 547 void (*close) (struct l2cap_chan *chan); 548 void (*state_change) (struct l2cap_chan *chan, 549 int state); 550 void (*ready) (struct l2cap_chan *chan); 551 void (*defer) (struct l2cap_chan *chan); |
557 void (*resume) (struct l2cap_chan *chan); | |
558 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, 559 unsigned long len, int nb); 560}; 561 562struct l2cap_conn { 563 struct hci_conn *hcon; 564 struct hci_chan *hchan; 565 | 552 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, 553 unsigned long len, int nb); 554}; 555 556struct l2cap_conn { 557 struct hci_conn *hcon; 558 struct hci_chan *hchan; 559 |
560 bdaddr_t *dst; 561 bdaddr_t *src; 562 |
|
566 unsigned int mtu; 567 568 __u32 feat_mask; 569 __u8 fixed_chan_mask; | 563 unsigned int mtu; 564 565 __u32 feat_mask; 566 __u8 fixed_chan_mask; |
570 bool hs_enabled; | |
571 572 __u8 info_state; 573 __u8 info_ident; 574 575 struct delayed_work info_timer; 576 577 spinlock_t lock; 578 --- 69 unchanged lines hidden (view full) --- 648/* Definitions for flags in l2cap_chan */ 649enum { 650 FLAG_ROLE_SWITCH, 651 FLAG_FORCE_ACTIVE, 652 FLAG_FORCE_RELIABLE, 653 FLAG_FLUSHABLE, 654 FLAG_EXT_CTRL, 655 FLAG_EFS_ENABLE, | 567 568 __u8 info_state; 569 __u8 info_ident; 570 571 struct delayed_work info_timer; 572 573 spinlock_t lock; 574 --- 69 unchanged lines hidden (view full) --- 644/* Definitions for flags in l2cap_chan */ 645enum { 646 FLAG_ROLE_SWITCH, 647 FLAG_FORCE_ACTIVE, 648 FLAG_FORCE_RELIABLE, 649 FLAG_FLUSHABLE, 650 FLAG_EXT_CTRL, 651 FLAG_EFS_ENABLE, |
656 FLAG_DEFER_SETUP, | |
657}; 658 659enum { 660 L2CAP_TX_STATE_XMIT, 661 L2CAP_TX_STATE_WAIT_F, 662}; 663 664enum { --- 171 unchanged lines hidden --- | 652}; 653 654enum { 655 L2CAP_TX_STATE_XMIT, 656 L2CAP_TX_STATE_WAIT_F, 657}; 658 659enum { --- 171 unchanged lines hidden --- |