mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00

The variable holding the CTRL_STATUS register is misnamed 'status'. Rename it 'ctrl_status' to make it more obvious this register is also used to control the peripheral. Reviewed-by: Luc Michel <luc.michel@greensocs.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20201010203709.3116542-3-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
35 lines
692 B
C
35 lines
692 B
C
/*
|
|
* BCM2835 SYS timer emulation
|
|
*
|
|
* Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef BCM2835_SYSTIMER_H
|
|
#define BCM2835_SYSTIMER_H
|
|
|
|
#include "hw/sysbus.h"
|
|
#include "hw/irq.h"
|
|
#include "qom/object.h"
|
|
|
|
#define TYPE_BCM2835_SYSTIMER "bcm2835-sys-timer"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(BCM2835SystemTimerState, BCM2835_SYSTIMER)
|
|
|
|
#define BCM2835_SYSTIMER_COUNT 4
|
|
|
|
struct BCM2835SystemTimerState {
|
|
/*< private >*/
|
|
SysBusDevice parent_obj;
|
|
|
|
/*< public >*/
|
|
MemoryRegion iomem;
|
|
qemu_irq irq;
|
|
|
|
struct {
|
|
uint32_t ctrl_status;
|
|
uint32_t compare[BCM2835_SYSTIMER_COUNT];
|
|
} reg;
|
|
};
|
|
|
|
#endif
|