summaryrefslogtreecommitdiff
path: root/sys-sx164.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-04-27 09:43:00 -0700
committerRichard Henderson <rth@twiddle.net>2011-04-27 09:43:00 -0700
commitea0e38f6bc1e458b34b11b40c1092036db34f548 (patch)
tree78a8757d7a5d6bc16cce2c63beb652b78dd520a6 /sys-sx164.h
parent331e6b4c75dd8095a29ed2991e32a862dc40074b (diff)
downloadqemu-palcode-ea0e38f6bc1e458b34b11b40c1092036db34f548.zip
qemu-palcode-ea0e38f6bc1e458b34b11b40c1092036db34f548.tar.gz
qemu-palcode-ea0e38f6bc1e458b34b11b40c1092036db34f548.tar.bz2
Re-org for Clipper system.
Diffstat (limited to 'sys-sx164.h')
-rw-r--r--sys-sx164.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-sx164.h b/sys-sx164.h
new file mode 100644
index 0000000..8198ae8
--- /dev/null
+++ b/sys-sx164.h
@@ -0,0 +1,25 @@
+#ifndef SYS_SX164_H
+#define SYS_SX164_H 1
+
+#include "core_cia.h"
+
+#ifdef __ASSEMBLER__
+
+.macro SYS_ACK_CLK t0, t1, t2
+ LOAD_KSEG_PCI_IO \t0 // Set RTCADD (0x70) to index reg 0xC
+ mov 0xc, \t1
+ stb \t1, 0x70(\t0)
+ ldbu \t1, 0x71(\t0) // Read RTCDAT to clear interrupt
+.endm
+
+.macro SYS_DEV_VECTOR ret
+ FIXME
+.endm
+
+#endif /* ASSEMBLER */
+
+#define SYS_TYPE ST_DEC_EB164
+#define SYS_VARIATION (15 << 10)
+#define SYS_REVISION 0
+
+#endif /* SYS_SX164_H */