mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
aspeed: Introduce an object class per SoC
It prepares ground for the AST2600. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Message-id: 20190925143248.10000-18-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
51dd49236b
commit
54ecafb7f9
3 changed files with 84 additions and 77 deletions
|
@ -57,7 +57,9 @@ typedef struct AspeedSoCState {
|
|||
#define TYPE_ASPEED_SOC "aspeed-soc"
|
||||
#define ASPEED_SOC(obj) OBJECT_CHECK(AspeedSoCState, (obj), TYPE_ASPEED_SOC)
|
||||
|
||||
typedef struct AspeedSoCInfo {
|
||||
typedef struct AspeedSoCClass {
|
||||
DeviceClass parent_class;
|
||||
|
||||
const char *name;
|
||||
const char *cpu_type;
|
||||
uint32_t silicon_rev;
|
||||
|
@ -67,11 +69,6 @@ typedef struct AspeedSoCInfo {
|
|||
const int *irqmap;
|
||||
const hwaddr *memmap;
|
||||
uint32_t num_cpus;
|
||||
} AspeedSoCInfo;
|
||||
|
||||
typedef struct AspeedSoCClass {
|
||||
DeviceClass parent_class;
|
||||
AspeedSoCInfo *info;
|
||||
} AspeedSoCClass;
|
||||
|
||||
#define ASPEED_SOC_CLASS(klass) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue