Andrei Emeltchenko | 9740e49 | 2012-05-29 13:59:02 +0300 | [diff] [blame] | 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 | |
| 18 | struct 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 | |
Andrei Emeltchenko | f6d3c6e | 2012-05-29 13:59:03 +0300 | [diff] [blame^] | 27 | struct a2mp_cmd { |
| 28 | __u8 code; |
| 29 | __u8 ident; |
| 30 | __le16 len; |
| 31 | __u8 data[0]; |
| 32 | } __packed; |
| 33 | |
Andrei Emeltchenko | 9740e49 | 2012-05-29 13:59:02 +0300 | [diff] [blame] | 34 | void amp_mgr_get(struct amp_mgr *mgr); |
| 35 | int amp_mgr_put(struct amp_mgr *mgr); |
| 36 | |
| 37 | #endif /* __A2MP_H */ |