From 4ef66fa71882a8f8682d9a8d1528e1ec98c264e5 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Thu, 17 Feb 2011 23:45:07 +0100 Subject: lm32: interrupt controller model This patch adds the interrupt controller of the lm32. Because the PIC is accessed through special control registers and opcodes, there are callbacks from the lm32 translation code to this model. Signed-off-by: Michael Walle Signed-off-by: Edgar E. Iglesias --- hw/lm32_pic.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw/lm32_pic.h (limited to 'hw/lm32_pic.h') diff --git a/hw/lm32_pic.h b/hw/lm32_pic.h new file mode 100644 index 0000000000..e6479b8f63 --- /dev/null +++ b/hw/lm32_pic.h @@ -0,0 +1,11 @@ +#ifndef QEMU_HW_LM32_PIC_H +#define QEMU_HW_LM32_PIC_H + +#include "qemu-common.h" + +uint32_t lm32_pic_get_ip(DeviceState *d); +uint32_t lm32_pic_get_im(DeviceState *d); +void lm32_pic_set_ip(DeviceState *d, uint32_t ip); +void lm32_pic_set_im(DeviceState *d, uint32_t im); + +#endif /* QEMU_HW_LM32_PIC_H */ -- cgit v1.2.1