diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2022-08-17 17:08:32 +0200 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-08-31 14:08:06 -0300 |
commit | 127ba8d03e270fcbb5d71ea7a90609680803027d (patch) | |
tree | 176bebdf649dd504a6047de129b031c458fde303 /include/hw/ppc/ppc4xx.h | |
parent | 052c779b4c2c08e07b77046e9acfbe30de2c3562 (diff) | |
download | qemu-127ba8d03e270fcbb5d71ea7a90609680803027d.zip qemu-127ba8d03e270fcbb5d71ea7a90609680803027d.tar.gz qemu-127ba8d03e270fcbb5d71ea7a90609680803027d.tar.bz2 |
ppc4xx: Move EBC model to ppc4xx_devs.c
The EBC is shared between 405 and 440 so move it to shared file.
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <10eae70509ca4bd74858fc2c0a0f0e4eb9330199.1660746880.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'include/hw/ppc/ppc4xx.h')
-rw-r--r-- | include/hw/ppc/ppc4xx.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/hw/ppc/ppc4xx.h b/include/hw/ppc/ppc4xx.h index b19e592..4472ec2 100644 --- a/include/hw/ppc/ppc4xx.h +++ b/include/hw/ppc/ppc4xx.h @@ -94,4 +94,19 @@ struct Ppc4xxPlbState { uint32_t besr; }; +/* Peripheral controller */ +#define TYPE_PPC405_EBC "ppc405-ebc" +OBJECT_DECLARE_SIMPLE_TYPE(Ppc405EbcState, PPC405_EBC); +struct Ppc405EbcState { + Ppc4xxDcrDeviceState parent_obj; + + uint32_t addr; + uint32_t bcr[8]; + uint32_t bap[8]; + uint32_t bear; + uint32_t besr0; + uint32_t besr1; + uint32_t cfg; +}; + #endif /* PPC4XX_H */ |