Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/xen_intr.h
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | |||||
* registration. | * registration. | ||||
* | * | ||||
* \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); | ||||
#if defined(__amd64__) || defined(__i386__) | |||||
/** | /** | ||||
* Allocate a local event channel port for servicing interprocessor | * Allocate a local event channel port for servicing interprocessor | ||||
* interupts and, if successful, associate the port with the specified | * interupts and, if successful, associate the port with the specified | ||||
* interrupt handler. | * interrupt handler. | ||||
* | * | ||||
* \param cpu The cpu receiving the IPI. | * \param cpu The cpu receiving the IPI. | ||||
* \param filter The interrupt filter servicing this IPI. | * \param filter The interrupt filter servicing this IPI. | ||||
* \param irqflags Interrupt handler flags. See sys/bus.h. | * \param irqflags Interrupt handler flags. See sys/bus.h. | ||||
* \param handlep Pointer to an opaque handle used to manage this | * \param handlep Pointer to an opaque handle used to manage this | ||||
* registration. | * registration. | ||||
* | * | ||||
* \returns 0 on success, otherwise an errno. | * \returns 0 on success, otherwise an errno. | ||||
*/ | */ | ||||
int xen_intr_alloc_and_bind_ipi(u_int cpu, | int xen_intr_alloc_and_bind_ipi(u_int cpu, | ||||
driver_filter_t filter, enum intr_type irqflags, | driver_filter_t filter, enum intr_type irqflags, | ||||
xen_intr_handle_t *handlep); | xen_intr_handle_t *handlep); | ||||
#endif | |||||
/** | /** | ||||
* 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. | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |