Return-Path: Date: Fri, 14 Oct 2011 15:38:14 +0300 From: Andrei Emeltchenko To: Mat Martineau Cc: linux-bluetooth@vger.kernel.org, padovan@profusion.mobi, pkrystad@codeaurora.org Subject: Re: [PATCH 8/9] Bluetooth: Add AMP header file Message-ID: <20111014123812.GC4753@aemeltch-MOBL1> References: <1318543247-27130-1-git-send-email-mathewm@codeaurora.org> <1318543247-27130-9-git-send-email-mathewm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1318543247-27130-9-git-send-email-mathewm@codeaurora.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Mat, On Thu, Oct 13, 2011 at 03:00:46PM -0700, Mat Martineau wrote: > This file will be home to all AMP- and A2MP-related declarations. The > first macros map between HCI device indexes (for AMP controllers) and > AMP controller ids that are passed over the air. > > Signed-off-by: Mat Martineau > --- > include/net/bluetooth/amp.h | 20 ++++++++++++++++++++ > 1 files changed, 20 insertions(+), 0 deletions(-) > create mode 100644 include/net/bluetooth/amp.h > > diff --git a/include/net/bluetooth/amp.h b/include/net/bluetooth/amp.h > new file mode 100644 > index 0000000..b84ce53 > --- /dev/null > +++ b/include/net/bluetooth/amp.h > @@ -0,0 +1,20 @@ > +/* > + Copyright (c) 2010-2011 Code Aurora Forum. All rights reserved. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License version 2 and > + only version 2 as published by the Free Software Foundation. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > +*/ > + > +#ifndef __AMP_H > +#define __AMP_H > + > +#define HCI_A2MP_ID(id) ((id)+0x10) /* convert HCI dev index to AMP ID */ > +#define A2MP_HCI_ID(id) ((id)-0x10) /* convert AMP ID to HCI dev index */ Missing spaces? Can this be in hci.h ? Best regards Andrei Emeltchenko