void kvm_irqchip_add_irq_route(KVMState *s, int irq, int irqchip, int pin)

{

    struct kvm_irq_routing_entry e;



    assert(pin < s->gsi_count);



    e.gsi = irq;

    e.type = KVM_IRQ_ROUTING_IRQCHIP;

    e.flags = 0;

    e.u.irqchip.irqchip = irqchip;

    e.u.irqchip.pin = pin;

    kvm_add_routing_entry(s, &e);

}

void kvm_irqchip_add_irq_route(KVMState *s, int irq, int irqchip, int pin)

{

    struct kvm_irq_routing_entry e;



    assert(pin < s->gsi_count);



    e.gsi = irq;

    e.type = KVM_IRQ_ROUTING_IRQCHIP;

    e.flags = 0;

    e.u.irqchip.irqchip = irqchip;

    e.u.irqchip.pin = pin;

    kvm_add_routing_entry(s, &e);

}

    struct kvm_irq_routing_entry e;
void FUNC_0(KVMState *VAR_0, int VAR_1, int VAR_2, int VAR_3)

{

    struct kvm_irq_routing_entry VAR_4;



    assert(VAR_3 < VAR_0->gsi_count);



    VAR_4.gsi = VAR_1;

    VAR_4.type = KVM_IRQ_ROUTING_IRQCHIP;

    VAR_4.flags = 0;

    VAR_4.u.VAR_2.VAR_2 = VAR_2;

    VAR_4.u.VAR_2.VAR_3 = VAR_3;

    kvm_add_routing_entry(VAR_0, &VAR_4);

}

void FUNC_0(KVMState *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{ struct kvm_irq_routing_entry VAR_4; assert(VAR_3 < VAR_0->gsi_count); VAR_4.gsi = VAR_1; VAR_4.type = KVM_IRQ_ROUTING_IRQCHIP; VAR_4.flags = 0; VAR_4.u.VAR_2.VAR_2 = VAR_2; VAR_4.u.VAR_2.VAR_3 = VAR_3; kvm_add_routing_entry(VAR_0, &VAR_4); }