~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/net/bluetooth/bluetooth.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        return false;
198
198
}
199
199
 
200
 
#define BDADDR_ANY   (&(bdaddr_t) {{0, 0, 0, 0, 0, 0} })
201
 
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff} })
 
200
#define BDADDR_ANY  (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
 
201
#define BDADDR_NONE (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
202
202
 
203
203
/* Copy, swap, convert BD Address */
204
204
static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2)
218
218
 
219
219
struct bt_sock {
220
220
        struct sock sk;
221
 
        bdaddr_t    src;
222
 
        bdaddr_t    dst;
223
221
        struct list_head accept_q;
224
222
        struct sock *parent;
225
223
        unsigned long flags;
 
224
        void (*skb_msg_name)(struct sk_buff *, void *, int *);
226
225
};
227
226
 
228
227
enum {
249
248
uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
250
249
int  bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
251
250
int  bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
 
251
int  bt_sock_wait_ready(struct sock *sk, unsigned long flags);
252
252
 
253
253
void bt_accept_enqueue(struct sock *parent, struct sock *sk);
254
254
void bt_accept_unlink(struct sock *sk);
282
282
        __u8 incoming;
283
283
        __u16 expect;
284
284
        __u8 force_active;
 
285
        struct l2cap_chan *chan;
285
286
        struct l2cap_ctrl control;
286
287
        struct hci_req_ctrl req;
 
288
        bdaddr_t bdaddr;
 
289
        __le16 psm;
287
290
};
288
291
#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
289
292
 
331
334
 
332
335
int bt_to_errno(__u16 code);
333
336
 
334
 
extern int hci_sock_init(void);
335
 
extern void hci_sock_cleanup(void);
336
 
 
337
 
extern int bt_sysfs_init(void);
338
 
extern void bt_sysfs_cleanup(void);
339
 
 
340
 
extern int  bt_procfs_init(struct net *net, const char *name,
341
 
                           struct bt_sock_list* sk_list,
342
 
                           int (* seq_show)(struct seq_file *, void *));
343
 
extern void bt_procfs_cleanup(struct net *net, const char *name);
 
337
int hci_sock_init(void);
 
338
void hci_sock_cleanup(void);
 
339
 
 
340
int bt_sysfs_init(void);
 
341
void bt_sysfs_cleanup(void);
 
342
 
 
343
int bt_procfs_init(struct net *net, const char *name,
 
344
                   struct bt_sock_list *sk_list,
 
345
                   int (*seq_show)(struct seq_file *, void *));
 
346
void bt_procfs_cleanup(struct net *net, const char *name);
344
347
 
345
348
extern struct dentry *bt_debugfs;
346
349