summaryrefslogtreecommitdiffstats
path: root/include/hw/misc/macio/macio.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2018-06-12 18:43:58 +0200
committerDavid Gibson2018-06-16 08:32:33 +0200
commit7c4166a971b54a65900d9624ccd9669ba99d75ad (patch)
treea3217491665ad013d2359e57ee0ac9a90e75aebd /include/hw/misc/macio/macio.h
parentmac_newworld: add via machine option to control mac99 VIA/ADB configuration (diff)
downloadqemu-7c4166a971b54a65900d9624ccd9669ba99d75ad.tar.gz
qemu-7c4166a971b54a65900d9624ccd9669ba99d75ad.tar.xz
qemu-7c4166a971b54a65900d9624ccd9669ba99d75ad.zip
mac_newworld: add gpios to macio devices with PMU enabled
PMU-enabled New World Macs expose their GPIOs via a separate memory region within the macio device. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/misc/macio/macio.h')
-rw-r--r--include/hw/misc/macio/macio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/misc/macio/macio.h b/include/hw/misc/macio/macio.h
index 9529073ba8..d43883a893 100644
--- a/include/hw/misc/macio/macio.h
+++ b/include/hw/misc/macio/macio.h
@@ -26,8 +26,10 @@
#ifndef MACIO_H
#define MACIO_H
+#include "hw/char/escc.h"
#include "hw/intc/heathrow_pic.h"
#include "hw/misc/macio/cuda.h"
+#include "hw/misc/macio/gpio.h"
#include "hw/ppc/mac_dbdma.h"
#include "hw/ppc/openpic.h"
@@ -74,6 +76,7 @@ typedef struct NewWorldMacIOState {
bool has_adb;
OpenPICState *pic;
MACIOIDEState ide[2];
+ MacIOGPIOState gpio;
} NewWorldMacIOState;
#endif /* MACIO_H */