guest_msi_ctlr_create()
Create a Message Signaled Interrupt (MSI) controller
Synopsis:
#include <qvm/guest.h>void guest_msi_ctlr_create(const char* name,
vdev_t *pic,
guest_msi_deliver_cb_t *deliver,
guest_msi_decode_table_cb_t *decode_table)Arguments:
- name
- A string containing the name of the controller.
- pic
- A pointer to a controller vdev.
- deliver
- The function to call when an MSI is signaled.
- decode_table
- The function to call when decoding a firmware table.
Description:
Call this function during startup to create a Message Signaled Interrupt (MSI) controller for a Programmable Interrupt Controller (PIC) device. You must then call guest_msi_register_range() at least once to define memory address ranges that the controller can decode.
Page updated:
