2013-06-30 19:29:36 +02:00
|
|
|
/*
|
|
|
|
* Cortex-A9MPCore Snoop Control Unit (SCU) emulation.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009 CodeSourcery.
|
|
|
|
* Copyright (c) 2011 Linaro Limited.
|
|
|
|
* Written by Paul Brook, Peter Maydell.
|
|
|
|
*
|
|
|
|
* This code is licensed under the GPL.
|
|
|
|
*/
|
|
|
|
#ifndef HW_MISC_A9SCU_H
|
|
|
|
#define HW_MISC_A9SCU_H
|
|
|
|
|
|
|
|
#include "hw/sysbus.h"
|
2020-09-03 22:43:22 +02:00
|
|
|
#include "qom/object.h"
|
2013-06-30 19:29:36 +02:00
|
|
|
|
|
|
|
/* A9MP private memory region. */
|
|
|
|
|
2020-09-03 22:43:22 +02:00
|
|
|
struct A9SCUState {
|
2013-06-30 19:29:36 +02:00
|
|
|
/*< private >*/
|
|
|
|
SysBusDevice parent_obj;
|
|
|
|
/*< public >*/
|
|
|
|
|
|
|
|
MemoryRegion iomem;
|
|
|
|
uint32_t control;
|
|
|
|
uint32_t status;
|
|
|
|
uint32_t num_cpu;
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2013-06-30 19:29:36 +02:00
|
|
|
|
|
|
|
#define TYPE_A9_SCU "a9-scu"
|
2020-09-16 20:25:19 +02:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(A9SCUState, A9_SCU)
|
2013-06-30 19:29:36 +02:00
|
|
|
|
|
|
|
#endif
|