mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
f1114c17ee
commit
7c4166a971
8 changed files with 292 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue