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 /hw/misc/macio/trace-events | |
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 'hw/misc/macio/trace-events')
-rw-r--r-- | hw/misc/macio/trace-events | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/misc/macio/trace-events b/hw/misc/macio/trace-events index d499d78c99..71c47520eb 100644 --- a/hw/misc/macio/trace-events +++ b/hw/misc/macio/trace-events @@ -13,3 +13,10 @@ cuda_packet_send_data(int i, const uint8_t data) "[%d] 0x%02x" # hw/misc/macio/macio.c macio_timer_write(uint64_t addr, unsigned len, uint64_t val) "write addr 0x%"PRIx64 " len %d val 0x%"PRIx64 macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx64 " len %d val 0x%"PRIx32 + +# hw/misc/macio/gpio.c +macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d" +macio_gpio_irq_assert(int gpio) "asserting GPIO %d" +macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d" +macio_gpio_write(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64 +macio_gpio_read(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64 |