Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/xen_intr.h
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* \returns 0 on success, otherwise an errno. | * \returns 0 on success, otherwise an errno. | ||||
*/ | */ | ||||
int xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu, | int xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu, | ||||
driver_filter_t filter, driver_intr_t handler, | driver_filter_t filter, driver_intr_t handler, | ||||
void *arg, enum intr_type irqflags, xen_intr_handle_t *handlep); | void *arg, enum intr_type irqflags, xen_intr_handle_t *handlep); | ||||
/** | /** | ||||
* Allocate a local event channel port for servicing interprocessor | |||||
* interupts and, if successful, associate the port with the specified | |||||
* interrupt handler. | |||||
* | |||||
* \param cpu The cpu receiving the IPI. | |||||
* \param filter The interrupt filter servicing this IPI. | |||||
* \param irqflags Interrupt handler flags. See sys/bus.h. | |||||
* \param handlep Pointer to an opaque handle used to manage this | |||||
* registration. | |||||
* | |||||
* \returns 0 on success, otherwise an errno. | |||||
*/ | |||||
int xen_intr_alloc_and_bind_ipi(u_int cpu, | |||||
driver_filter_t filter, enum intr_type irqflags, | |||||
xen_intr_handle_t *handlep); | |||||
/** | |||||
* Unbind an interrupt handler from its interrupt source. | * Unbind an interrupt handler from its interrupt source. | ||||
* | * | ||||
* \param handlep A pointer to the opaque handle that was initialized | * \param handlep A pointer to the opaque handle that was initialized | ||||
* at the time the interrupt source was bound. | * at the time the interrupt source was bound. | ||||
* | * | ||||
* \returns 0 on success, otherwise an errno. | * \returns 0 on success, otherwise an errno. | ||||
* | * | ||||
* \note The event channel, if any, that was allocated at bind time is | * \note The event channel, if any, that was allocated at bind time is | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |