From: Damien Hedde <damien.hedde@greensocs.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
Helge Deller <deller@gmx.de>,
Sven Schnelle <svens@stackframe.org>
Subject: Re: [PATCH 2/3] hw/input/lasips2: Move LASIPS2State declaration to 'hw/input/lasips2.h'
Date: Wed, 29 Sep 2021 16:27:38 +0200 [thread overview]
Message-ID: <37f86c44-b057-a434-a0a1-13af68d4c78f@greensocs.com> (raw)
In-Reply-To: <20210920064048.2729397-3-f4bug@amsat.org>
On 9/20/21 08:40, Philippe Mathieu-Daudé wrote:
> We want to use the OBJECT_DECLARE_SIMPLE_TYPE() macro to QOM'ify
> this device in the next commit. To make its review simpler, as a
> first step move the LASIPS2State and LASIPS2Port declarations to
> 'hw/input/lasips2.h'
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
> ---
> include/hw/input/lasips2.h | 18 ++++++++++++++++++
> hw/input/lasips2.c | 18 ------------------
> 2 files changed, 18 insertions(+), 18 deletions(-)
>
> diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h
> index 0cd7b59064a..c88f1700162 100644
> --- a/include/hw/input/lasips2.h
> +++ b/include/hw/input/lasips2.h
> @@ -11,6 +11,24 @@
>
> #define TYPE_LASIPS2 "lasips2"
>
> +struct LASIPS2State;
> +typedef struct LASIPS2Port {
> + struct LASIPS2State *parent;
> + MemoryRegion reg;
> + void *dev;
> + uint8_t id;
> + uint8_t control;
> + uint8_t buf;
> + bool loopback_rbne;
> + bool irq;
> +} LASIPS2Port;
> +
> +typedef struct LASIPS2State {
> + LASIPS2Port kbd;
> + LASIPS2Port mouse;
> + qemu_irq irq;
> +} LASIPS2State;
> +
> void lasips2_init(MemoryRegion *address_space, hwaddr base, qemu_irq irq);
>
> #endif /* HW_INPUT_LASIPS2_H */
> diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
> index 68d741d3421..0f8362f17bc 100644
> --- a/hw/input/lasips2.c
> +++ b/hw/input/lasips2.c
> @@ -33,24 +33,6 @@
> #include "hw/irq.h"
>
>
> -struct LASIPS2State;
> -typedef struct LASIPS2Port {
> - struct LASIPS2State *parent;
> - MemoryRegion reg;
> - void *dev;
> - uint8_t id;
> - uint8_t control;
> - uint8_t buf;
> - bool loopback_rbne;
> - bool irq;
> -} LASIPS2Port;
> -
> -typedef struct LASIPS2State {
> - LASIPS2Port kbd;
> - LASIPS2Port mouse;
> - qemu_irq irq;
> -} LASIPS2State;
> -
> static const VMStateDescription vmstate_lasips2 = {
> .name = "lasips2",
> .version_id = 0,
>
next prev parent reply other threads:[~2021-09-29 14:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-20 6:40 [PATCH 0/3] hw/input/lasips2: QOM'ify the Lasi PS/2 Philippe Mathieu-Daudé
2021-09-20 6:40 ` [PATCH 1/3] hw/input/lasips2: Fix typos in function names Philippe Mathieu-Daudé
2021-09-29 14:24 ` Damien Hedde
2021-09-20 6:40 ` [PATCH 2/3] hw/input/lasips2: Move LASIPS2State declaration to 'hw/input/lasips2.h' Philippe Mathieu-Daudé
2021-09-29 14:27 ` Damien Hedde [this message]
2021-09-20 6:40 ` [PATCH 3/3] hw/input/lasips2: QOM'ify the Lasi PS/2 Philippe Mathieu-Daudé
2021-09-29 14:33 ` Damien Hedde
2021-09-29 14:06 ` [PATCH 0/3] " Philippe Mathieu-Daudé
2021-10-27 5:11 ` Philippe Mathieu-Daudé
2021-10-27 8:46 ` Laurent Vivier
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=37f86c44-b057-a434-a0a1-13af68d4c78f@greensocs.com \
--to=damien.hedde@greensocs.com \
--cc=deller@gmx.de \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=svens@stackframe.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).