Revision 38641a52 hw/gumstix.c

b/hw/gumstix.c
10 10

  
11 11
#include "vl.h"
12 12

  
13
static void connex_smc_irq(void *opaque, int line, int level)
14
{
15
    /* Interrupt line of NIC is connected to GPIO line 36 */
16
    struct pxa2xx_state_s *cpu = (struct pxa2xx_state_s *) opaque;
17
    pxa2xx_gpio_set(cpu->gpio, 36, level);
18
}
19

  
20 13
/* Board init. */
21 14
enum gumstix_model_e { connex };
22 15

  
......
52 45

  
53 46
    cpu->env->regs[15] = 0x00000000;
54 47

  
55
    qemu_irq *irq = qemu_allocate_irqs(connex_smc_irq, cpu, 1);
56
    smc91c111_init(&nd_table[0], 0x04000300, *irq);
48
    /* Interrupt line of NIC is connected to GPIO line 36 */
49
    smc91c111_init(&nd_table[0], 0x04000300,
50
                    pxa2xx_gpio_in_get(cpu->gpio)[36]);
57 51
}
58 52

  
59 53
static void connex_init(int ram_size, int vga_ram_size,

Also available in: Unified diff