All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Alistair Francis <alistair.francis@xilinx.com>
Cc: "QEMU Developers" <qemu-devel@nongnu.org>,
	"Peter Crosthwaite" <crosthwaitepeter@gmail.com>,
	"Edgar Iglesias" <edgar.iglesias@xilinx.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"KONRAD Frédéric" <fred.konrad@greensocs.com>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v8 7/8] dma: Add Xilinx Zynq devcfg device model
Date: Mon, 27 Jun 2016 15:34:32 +0100	[thread overview]
Message-ID: <CAFEAcA97HuK_XRh5pOp=VqFv8RrJ7i+rq94+ntKveyTn9BEm5A@mail.gmail.com> (raw)
In-Reply-To: <513835c5527271659749d65fc3d18b59e5f2ebbd.1466782459.git.alistair.francis@xilinx.com>

On 24 June 2016 at 16:42, Alistair Francis <alistair.francis@xilinx.com> wrote:
> Add a minimal model for the devcfg device which is part of Zynq.
> This model supports DMA capabilities and interrupt generation.
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> ---

> +REG32(CFG, 0x08)
> +    FIELD(CFG,      RFIFO_TH,           10,  2)
> +    FIELD(CFG,      WFIFO_TH,            8,  2)
> +    FIELD(CFG,      RCLK_EDGE,           7,  1)
> +    FIELD(CFG,      WCLK_EDGE,           6,  1)
> +    FIELD(CFG,      DISABLE_SRC_INC,     5,  1)
> +    FIELD(CFG,      DISABLE_DST_INC,     4,  1)
> +#define R_CFG_RESET 0x50B
> +
> +REG32(INT_STS, 0x0C)
> +    FIELD(INT_STS,  PSS_GTS_USR_B,      31,  1)
> +    FIELD(INT_STS,  PSS_FST_CFG_B,      30,  1)
> +    FIELD(INT_STS,  PSS_CFG_RESET_B,    27,  1)
> +    FIELD(INT_STS,  RX_FIFO_OV,         18,  1)
> +    FIELD(INT_STS,  WR_FIFO_LVL,        17,  1)
> +    FIELD(INT_STS,  RD_FIFO_LVL,        16,  1)
> +    FIELD(INT_STS,  DMA_CMD_ERR,        15,  1)
> +    FIELD(INT_STS,  DMA_Q_OV,           14,  1)
> +    FIELD(INT_STS,  DMA_DONE,           13,  1)
> +    FIELD(INT_STS,  DMA_P_DONE,         12,  1)
> +    FIELD(INT_STS,  P2D_LEN_ERR,        11,  1)
> +    FIELD(INT_STS,  PCFG_DONE,           2,  1)
> +    #define R_INT_STS_RSVD       ((0x7 << 24) | (0x1 << 19) | (0xF < 7))

Consistency about #define indentation would be nice
(my vote is for "don't indent").

Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM

  reply	other threads:[~2016-06-27 14:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 15:42 [Qemu-devel] [PATCH v8 0/8] data-driven device registers Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 1/8] bitops: Add MAKE_64BIT_MASK macro Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 2/8] register: Add Register API Alistair Francis
2016-06-27 14:24   ` Peter Maydell
2016-06-27 15:51     ` Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 3/8] register: Add Memory API glue Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 4/8] register: Define REG and FIELD macros Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 5/8] register: QOMify Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 6/8] register: Add block initialise helper Alistair Francis
2016-06-27 14:31   ` Peter Maydell
2016-06-27 16:16     ` Alistair Francis
2016-06-27 16:44       ` Peter Maydell
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 7/8] dma: Add Xilinx Zynq devcfg device model Alistair Francis
2016-06-27 14:34   ` Peter Maydell [this message]
2016-06-27 16:12     ` Alistair Francis
2016-06-24 15:42 ` [Qemu-devel] [PATCH v8 8/8] xilinx_zynq: Connect devcfg to the Zynq machine model Alistair Francis

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='CAFEAcA97HuK_XRh5pOp=VqFv8RrJ7i+rq94+ntKveyTn9BEm5A@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=afaerber@suse.de \
    --cc=alex.bennee@linaro.org \
    --cc=alistair.francis@xilinx.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=fred.konrad@greensocs.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.