guest_intr_assign()

Assign a source to an interrupt

Synopsis:

#include <qvm/guest.h>
void guest_intr_assign(vdev_t *pic,
                       unsigned pnum,
                       enum guest_intr_assign_type const type,
                       struct guest_intr *ip)

Arguments:

pic
A pointer to the interrupt controller vdev structure.
pnum
The pin number being assigned.
type
The type of interrupt assignment. (see guest_intr_assign_type)
ip
If non-NULL, a pointer to the interrupt structure to fill in.

Library:

Provided by qvm; no external library is required.

Description:

Use this function to assign interrupts for vdevs.