[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/15] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro
From: |
Luc Michel |
Subject: |
[PATCH v3 01/15] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro |
Date: |
Sat, 10 Oct 2020 15:57:45 +0200 |
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Signed-off-by: Luc Michel <luc@lmichel.fr>
---
include/hw/clock.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/hw/clock.h b/include/hw/clock.h
index d357594df9..c93e6113cd 100644
--- a/include/hw/clock.h
+++ b/include/hw/clock.h
@@ -79,10 +79,15 @@ struct Clock {
extern const VMStateDescription vmstate_clock;
#define VMSTATE_CLOCK(field, state) \
VMSTATE_CLOCK_V(field, state, 0)
#define VMSTATE_CLOCK_V(field, state, version) \
VMSTATE_STRUCT_POINTER_V(field, state, version, vmstate_clock, Clock)
+#define VMSTATE_ARRAY_CLOCK(field, state, num) \
+ VMSTATE_ARRAY_CLOCK_V(field, state, num, 0)
+#define VMSTATE_ARRAY_CLOCK_V(field, state, num, version) \
+ VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(field, state, num, version, \
+ vmstate_clock, Clock)
/**
* clock_setup_canonical_path:
* @clk: clock
*
--
2.28.0
- [PATCH v3 00/15] raspi: add the bcm2835 cprman clock manager, Luc Michel, 2020/10/10
- [PATCH v3 04/15] hw/arm/raspi: fix CPRMAN base address, Luc Michel, 2020/10/10
- [PATCH v3 02/15] hw/core/clock: trace clock values in Hz instead of ns, Luc Michel, 2020/10/10
- [PATCH v3 03/15] hw/core/clock: add the clock_new helper function, Luc Michel, 2020/10/10
- [PATCH v3 06/15] hw/misc/bcm2835_cprman: add a PLL skeleton implementation, Luc Michel, 2020/10/10
- [PATCH v3 01/15] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro,
Luc Michel <=
- [PATCH v3 05/15] hw/arm/raspi: add a skeleton implementation of the CPRMAN, Luc Michel, 2020/10/10
- [PATCH v3 07/15] hw/misc/bcm2835_cprman: implement PLLs behaviour, Luc Michel, 2020/10/10
- [PATCH v3 08/15] hw/misc/bcm2835_cprman: add a PLL channel skeleton implementation, Luc Michel, 2020/10/10
- [PATCH v3 10/15] hw/misc/bcm2835_cprman: add a clock mux skeleton implementation, Luc Michel, 2020/10/10
- [PATCH v3 09/15] hw/misc/bcm2835_cprman: implement PLL channels behaviour, Luc Michel, 2020/10/10
- [PATCH v3 11/15] hw/misc/bcm2835_cprman: implement clock mux behaviour, Luc Michel, 2020/10/10
- [PATCH v3 12/15] hw/misc/bcm2835_cprman: add the DSI0HSCK multiplexer, Luc Michel, 2020/10/10