summaryrefslogtreecommitdiffstats
path: root/hw/ppc/mac.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2018-06-12 18:43:57 +0200
committerDavid Gibson2018-06-16 08:32:33 +0200
commitf1114c17eeda907d0a290f25f970d695fc3b16de (patch)
tree81c03033a4465aa8edc5fe69f18936cc8e4ed317 /hw/ppc/mac.h
parentppc: introduce Core99MachinesState for the mac99 machine (diff)
downloadqemu-f1114c17eeda907d0a290f25f970d695fc3b16de.tar.gz
qemu-f1114c17eeda907d0a290f25f970d695fc3b16de.tar.xz
qemu-f1114c17eeda907d0a290f25f970d695fc3b16de.zip
mac_newworld: add via machine option to control mac99 VIA/ADB configuration
This option allows the VIA configuration to be controlled between 3 different possible setups: cuda, pmu-adb and pmu with USB rather than ADB keyboard/mouse. For the moment we don't do anything with the configuration except to pass it to the macio device (the via-cuda parent) and also to the firmware via the fw_cfg interface so that it can present the correct device tree. The default is cuda which is the current default and so will have no change in behaviour. 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/ppc/mac.h')
-rw-r--r--hw/ppc/mac.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ppc/mac.h b/hw/ppc/mac.h
index 8046cd8a2f..4c08f52b87 100644
--- a/hw/ppc/mac.h
+++ b/hw/ppc/mac.h
@@ -71,9 +71,15 @@
#define CORE99_MACHINE(obj) OBJECT_CHECK(Core99MachineState, (obj), \
TYPE_CORE99_MACHINE)
+#define CORE99_VIA_CONFIG_CUDA 0x0
+#define CORE99_VIA_CONFIG_PMU 0x1
+#define CORE99_VIA_CONFIG_PMU_ADB 0x2
+
typedef struct Core99MachineState {
/*< private >*/
MachineState parent;
+
+ uint8_t via_config;
} Core99MachineState;
/* MacIO */