Revision 3efda49d hw/palm.c

b/hw/palm.c
76 76
#define PALMTE_MMC2_GPIO	7
77 77
#define PALMTE_MMC3_GPIO	11
78 78

  
79
static void palmte_pintdav(void *opaque, int line, int level)
80
{
81
    struct omap_mpu_state_s *cpu = (struct omap_mpu_state_s *) opaque;
82

  
83
    qemu_set_irq(omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO],
84
                    !level);
85
}
86

  
79 87
static void palmte_microwire_setup(struct omap_mpu_state_s *cpu)
80 88
{
89
    omap_uwire_attach(
90
                    cpu->microwire,
91
                    tsc2102_init(
92
                            qemu_allocate_irqs(palmte_pintdav, cpu, 1)[0]),
93
                    0);
81 94
}
82 95

  
83 96
static struct {

Also available in: Unified diff