summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBALATON Zoltan2022-08-17 17:08:32 +0200
committerDaniel Henrique Barboza2022-08-31 19:08:06 +0200
commit127ba8d03e270fcbb5d71ea7a90609680803027d (patch)
tree176bebdf649dd504a6047de129b031c458fde303 /include
parentppc4xx: Rename ppc405-plb to ppc4xx-plb (diff)
downloadqemu-127ba8d03e270fcbb5d71ea7a90609680803027d.tar.gz
qemu-127ba8d03e270fcbb5d71ea7a90609680803027d.tar.xz
qemu-127ba8d03e270fcbb5d71ea7a90609680803027d.zip
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')
-rw-r--r--include/hw/ppc/ppc4xx.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/hw/ppc/ppc4xx.h b/include/hw/ppc/ppc4xx.h
index b19e59271b..4472ec254e 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 */