diff options
author | Mark Cave-Ayland | 2018-06-12 18:43:58 +0200 |
---|---|---|
committer | David Gibson | 2018-06-16 08:32:33 +0200 |
commit | 7c4166a971b54a65900d9624ccd9669ba99d75ad (patch) | |
tree | a3217491665ad013d2359e57ee0ac9a90e75aebd /include/hw/misc/macio/macio.h | |
parent | mac_newworld: add via machine option to control mac99 VIA/ADB configuration (diff) | |
download | qemu-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.h | 3 |
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 */ |