From: Arnd Bergmann <arnd@arndb.de>
To: "Sjur Brændeland" <sjur.brandeland@stericsson.com>
Cc: linux-kernel@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Paul Bolle <pebolle@tiscali.nl>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCHv2 01/10] xshm: Shared Memory layout for ST-E M7400 driver.
Date: Fri, 9 Dec 2011 14:45:56 +0000 [thread overview]
Message-ID: <201112091445.56224.arnd@arndb.de> (raw)
In-Reply-To: <1323439648-22697-2-git-send-email-sjur.brandeland@stericsson.com>
On Friday 09 December 2011, Sjur Brændeland wrote:
> Add structures defining the channel configuration and the
> shared memory layout used for ST-Ericsson M7400.
>
> These data structures are shared between the Linux host and the
> M7400 modem.
>
> Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
> ---
> include/linux/xshm/xshm_ipctoc.h | 160 ++++++++++++++++++++++++++++++++++++++
> 1 files changed, 160 insertions(+), 0 deletions(-)
> create mode 100644 include/linux/xshm/xshm_ipctoc.h
Generally, the include/linux path is for interfaces between modules, while
hardware data structures should be in the same directory as the driver using
them to provide an abstract interface.
> diff --git a/include/linux/xshm/xshm_ipctoc.h b/include/linux/xshm/xshm_ipctoc.h
> new file mode 100644
> index 0000000..b008c23
> --- /dev/null
> +++ b/include/linux/xshm/xshm_ipctoc.h
> @@ -0,0 +1,160 @@
> +/*
> + * Copyright (C) ST-Ericsson AB 2011
> + * Author: Sjur Brendeland / sjur.brandeland@stericsson.com
> + * License terms: GNU General Public License (GPL) version 2
> + */
> +
> +#ifndef XSHM_TOC
> +#define XSHM_TOC
> +
> +/**
> + * DOC: XSHM Shared Memory Layout
> + *
> + * XSHM defines a set of structures describing the memory layout used
> + * for the Shared Memory IPC. In short &toc_entry points out &ipc_toc,
> + * which points out the &xshm_ipctoc_channel. &xshm_ipctoc_channel defines
> + * the channels used to communicate between host and external device (modem).
> + *
> + * &xshm_ipctoc_channel can be used in packet-mode or stream-mode,
> + * and points out &xshm_bufidx holding information about cirular
> + * buffers, andtheir read/write indices etc.
> + */
> +
> +#pragma pack(1)
Better remove the #pragma. Marking data structures as packed when they
are already packed to start with only leads to worse optimizations in the
compiler, but does not have a functional impact.
Arnd
next prev parent reply other threads:[~2011-12-09 14:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 14:07 [PATCHv2 00/10] XSHM: Shared Memory Driver for ST-E Thor M7400 LTE modem Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 01/10] xshm: Shared Memory layout for ST-E M7400 driver Sjur Brændeland
2011-12-09 14:45 ` Arnd Bergmann [this message]
2011-12-12 9:09 ` Sjur BRENDELAND
2011-12-09 14:07 ` [PATCHv2 02/10] xshm: Channel config definitions " Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 03/10] xshm: Configuration for XSHM Channel an devices Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 04/10] xshm: geni/geno driver interface Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 05/10] xshm: genio dummy driver Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 06/10] xshm: Add xshm device implementation Sjur Brændeland
2011-12-10 14:05 ` Michal Marek
2011-12-12 7:54 ` Sjur BRENDELAND
2011-12-09 14:07 ` [PATCHv2 07/10] xshm: XSHM Configuration data handling Sjur Brændeland
2011-12-09 15:09 ` Arnd Bergmann
2011-12-12 10:46 ` Sjur BRENDELAND
2011-12-15 10:18 ` Sjur BRENDELAND
2011-12-09 14:07 ` [PATCHv2 08/10] xshm: Character device for XSHM channel access Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 09/10] xshm: Makefile and Kconfig for M7400 Shared Memory Drivers Sjur Brændeland
2011-12-09 14:07 ` [PATCHv2 10/10] caif-xshm: Add CAIF driver for Shared memory for M7400 Sjur Brændeland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201112091445.56224.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=dan.carpenter@oracle.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pebolle@tiscali.nl \
--cc=sjur.brandeland@stericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox