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>
This commit is contained in:
Michael Walle 2011-02-17 23:45:08 +01:00 committed by Edgar E. Iglesias
parent 4ef66fa718
commit 15d7dc4f80
4 changed files with 168 additions and 0 deletions

11
hw/lm32_juart.h Normal file
View file

@ -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 */