l2cap.h (27e2d4c8d28be1d1b4ecfbffab572d7dbd35254d) l2cap.h (3831971355d901ccfb76533a422b4395072849a3)
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

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

323} __packed;
324
325#define L2CAP_MODE_BASIC 0x00
326#define L2CAP_MODE_RETRANS 0x01
327#define L2CAP_MODE_FLOWCTL 0x02
328#define L2CAP_MODE_ERTM 0x03
329#define L2CAP_MODE_STREAMING 0x04
330
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

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

323} __packed;
324
325#define L2CAP_MODE_BASIC 0x00
326#define L2CAP_MODE_RETRANS 0x01
327#define L2CAP_MODE_FLOWCTL 0x02
328#define L2CAP_MODE_ERTM 0x03
329#define L2CAP_MODE_STREAMING 0x04
330
331/* Unlike the above this one doesn't actually map to anything that would
332 * ever be sent over the air. Therefore, use a value that's unlikely to
333 * ever be used in the BR/EDR configuration phase.
334 */
335#define L2CAP_MODE_LE_FLOWCTL 0x80
336
331struct l2cap_conf_efs {
332 __u8 id;
333 __u8 stype;
334 __le16 msdu;
335 __le32 sdu_itime;
336 __le32 acc_lat;
337 __le32 flush_to;
338} __packed;

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

856void l2cap_chan_close(struct l2cap_chan *chan, int reason);
857int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
858 bdaddr_t *dst, u8 dst_type);
859int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
860 u32 priority);
861void l2cap_chan_busy(struct l2cap_chan *chan, int busy);
862int l2cap_chan_check_security(struct l2cap_chan *chan);
863void l2cap_chan_set_defaults(struct l2cap_chan *chan);
337struct l2cap_conf_efs {
338 __u8 id;
339 __u8 stype;
340 __le16 msdu;
341 __le32 sdu_itime;
342 __le32 acc_lat;
343 __le32 flush_to;
344} __packed;

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

862void l2cap_chan_close(struct l2cap_chan *chan, int reason);
863int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
864 bdaddr_t *dst, u8 dst_type);
865int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
866 u32 priority);
867void l2cap_chan_busy(struct l2cap_chan *chan, int busy);
868int l2cap_chan_check_security(struct l2cap_chan *chan);
869void l2cap_chan_set_defaults(struct l2cap_chan *chan);
870void l2cap_le_flowctl_init(struct l2cap_chan *chan);
864int l2cap_ertm_init(struct l2cap_chan *chan);
865void l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan);
866void __l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan);
867void l2cap_chan_del(struct l2cap_chan *chan, int err);
868void l2cap_send_conn_req(struct l2cap_chan *chan);
869void l2cap_move_start(struct l2cap_chan *chan);
870void l2cap_logical_cfm(struct l2cap_chan *chan, struct hci_chan *hchan,
871 u8 status);
872void __l2cap_physical_cfm(struct l2cap_chan *chan, int result);
873
874void l2cap_conn_get(struct l2cap_conn *conn);
875void l2cap_conn_put(struct l2cap_conn *conn);
876
877int l2cap_register_user(struct l2cap_conn *conn, struct l2cap_user *user);
878void l2cap_unregister_user(struct l2cap_conn *conn, struct l2cap_user *user);
879
880#endif /* __L2CAP_H */
871int l2cap_ertm_init(struct l2cap_chan *chan);
872void l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan);
873void __l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan);
874void l2cap_chan_del(struct l2cap_chan *chan, int err);
875void l2cap_send_conn_req(struct l2cap_chan *chan);
876void l2cap_move_start(struct l2cap_chan *chan);
877void l2cap_logical_cfm(struct l2cap_chan *chan, struct hci_chan *hchan,
878 u8 status);
879void __l2cap_physical_cfm(struct l2cap_chan *chan, int result);
880
881void l2cap_conn_get(struct l2cap_conn *conn);
882void l2cap_conn_put(struct l2cap_conn *conn);
883
884int l2cap_register_user(struct l2cap_conn *conn, struct l2cap_user *user);
885void l2cap_unregister_user(struct l2cap_conn *conn, struct l2cap_user *user);
886
887#endif /* __L2CAP_H */