From: Andreas Färber Date: Wed, 24 Jul 2013 20:49:02 +0000 (+0200) Subject: lm32_juart: Relocate and tidy header X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0ee10242fd5c40ef0268147b23ba225b843e2d20;p=qemu.git lm32_juart: Relocate and tidy header Signed-off-by: Andreas Färber --- diff --git a/MAINTAINERS b/MAINTAINERS index 93ad19d90e..82ca5fb60a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -80,6 +80,7 @@ M: Michael Walle S: Maintained F: target-lm32/ F: hw/lm32/ +F: hw/char/lm32_* M68K M: Paul Brook diff --git a/hw/char/lm32_juart.c b/hw/char/lm32_juart.c index 839f3ebfe7..154511e633 100644 --- a/hw/char/lm32_juart.c +++ b/hw/char/lm32_juart.c @@ -22,7 +22,7 @@ #include "trace.h" #include "sysemu/char.h" -#include "hw/lm32/lm32_juart.h" +#include "hw/char/lm32_juart.h" enum { LM32_JUART_MIN_SAVE_VERSION = 0, diff --git a/include/hw/char/lm32_juart.h b/include/hw/char/lm32_juart.h new file mode 100644 index 0000000000..1cd3148e62 --- /dev/null +++ b/include/hw/char/lm32_juart.h @@ -0,0 +1,11 @@ +#ifndef QEMU_HW_CHAR_LM32_JUART_H +#define QEMU_HW_CHAR_LM32_JUART_H + +#include "hw/qdev.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 */ diff --git a/include/hw/lm32/lm32_juart.h b/include/hw/lm32/lm32_juart.h deleted file mode 100644 index 67fc5866ea..0000000000 --- a/include/hw/lm32/lm32_juart.h +++ /dev/null @@ -1,11 +0,0 @@ -#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 */ diff --git a/target-lm32/op_helper.c b/target-lm32/op_helper.c index f106873ad8..2dab9f27b4 100644 --- a/target-lm32/op_helper.c +++ b/target-lm32/op_helper.c @@ -4,7 +4,7 @@ #include "qemu/host-utils.h" #include "hw/lm32/lm32_pic.h" -#include "hw/lm32/lm32_juart.h" +#include "hw/char/lm32_juart.h" #if !defined(CONFIG_USER_ONLY) #define MMUSUFFIX _mmu