blob: 654df60cfd6d6b92de0e42ec94a049db9a636429 [file] [log] [blame]
Andrei Emeltchenko9740e492012-05-29 13:59:02 +03001/*
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
Andrei Emeltchenkof6d3c6e2012-05-29 13:59:03 +030027struct a2mp_cmd {
28 __u8 code;
29 __u8 ident;
30 __le16 len;
31 __u8 data[0];
32} __packed;
33
Andrei Emeltchenko9740e492012-05-29 13:59:02 +030034void amp_mgr_get(struct amp_mgr *mgr);
35int amp_mgr_put(struct amp_mgr *mgr);
36
37#endif /* __A2MP_H */