aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-29 06:59:02 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-04 23:34:11 -0400
commit9740e49d17e55f3832661fd99a8e0a17e921a82e (patch)
tree865915ab8d3c13d1ff74429c84b95a0acab37ee9 /include/net
parent466f8004f364e9cb46d9124109972489eccfb404 (diff)
Bluetooth: A2MP: AMP Manager basic functions
Define AMP Manager and some basic functions. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/a2mp.h30
-rw-r--r--include/net/bluetooth/hci_core.h1
2 files changed, 31 insertions, 0 deletions
diff --git a/include/net/bluetooth/a2mp.h b/include/net/bluetooth/a2mp.h
new file mode 100644
index 000000000000..ff4754000cf8
--- /dev/null
+++ b/include/net/bluetooth/a2mp.h
@@ -0,0 +1,30 @@
1/*
2 Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved.
3 Copyright (c) 2011,2012 Intel Corp.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License version 2 and
7 only version 2 as published by the Free Software Foundation.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13*/
14
15#ifndef __A2MP_H
16#define __A2MP_H
17
18struct amp_mgr {
19 struct l2cap_conn *l2cap_conn;
20 struct l2cap_chan *a2mp_chan;
21 struct kref kref;
22 __u8 ident;
23 __u8 handle;
24 unsigned long flags;
25};
26
27void amp_mgr_get(struct amp_mgr *mgr);
28int amp_mgr_put(struct amp_mgr *mgr);
29
30#endif /* __A2MP_H */
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index d584a47d1c86..6e64b76e30aa 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -332,6 +332,7 @@ struct hci_conn {
332 void *l2cap_data; 332 void *l2cap_data;
333 void *sco_data; 333 void *sco_data;
334 void *smp_conn; 334 void *smp_conn;
335 struct amp_mgr *amp_mgr;
335 336
336 struct hci_conn *link; 337 struct hci_conn *link;
337 338