Convert the omap_intc devices to qdev. This includes adding
a 'revision' property which will be needed for omap3.
The bulk of this patch is the replacement of "s->irq[x][y]"
with "qdev_get_gpio_in(s->ih[x], y)" now that the interrupt
controller exposes its input lines as qdev gpio inputs.
The devices are named "omap-intc" and "omap2-intc", following
the filename and the OMAP2/3 hardware names, although some
internal functions are still named "omap_inth_*".
Signed-off-by: Peter Maydell<address@hidden>
---
hw/nseries.c | 4 +-
hw/omap.h | 19 +--------
hw/omap1.c | 127 +++++++++++++++++++++++++++++++++++--------------------
hw/omap2.c | 92 ++++++++++++++++++++++++-----------------
hw/omap_intc.c | 125 +++++++++++++++++++++++++++++++++---------------------
5 files changed, 215 insertions(+), 152 deletions(-)