summaryrefslogtreecommitdiff
path: root/hw/lm32_juart.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2011-02-17 23:45:08 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-03-07 13:42:36 +0100
commit15d7dc4f8086b9d0a09fbcf28ee1654a210351dd (patch)
tree9139b699854bff0ecc58cf989b0bc802fbfd49d6 /hw/lm32_juart.h
parent4ef66fa71882a8f8682d9a8d1528e1ec98c264e5 (diff)
downloadqemu-15d7dc4f8086b9d0a09fbcf28ee1654a210351dd.tar.gz
lm32: juart model
This patch adds the JTAG UART model. It is accessed through special control registers and opcodes. Therefore the translation uses callbacks to this model. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/lm32_juart.h')
-rw-r--r--hw/lm32_juart.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/lm32_juart.h b/hw/lm32_juart.h
new file mode 100644
index 0000000000..67fc5866ea
--- /dev/null
+++ b/hw/lm32_juart.h
@@ -0,0 +1,11 @@
+#ifndef QEMU_HW_LM32_JUART_H
+#define QEMU_HW_LM32_JUART_H
+
+#include "qemu-common.h"
+
+uint32_t lm32_juart_get_jtx(DeviceState *d);
+uint32_t lm32_juart_get_jrx(DeviceState *d);
+void lm32_juart_set_jtx(DeviceState *d, uint32_t jtx);
+void lm32_juart_set_jrx(DeviceState *d, uint32_t jrx);
+
+#endif /* QEMU_HW_LM32_JUART_H */