diff options
Diffstat (limited to 'include/xen/events.h')
| -rw-r--r-- | include/xen/events.h | 15 | 
1 files changed, 13 insertions, 2 deletions
diff --git a/include/xen/events.h b/include/xen/events.h index c9ea10ee227..8bee7a75e85 100644 --- a/include/xen/events.h +++ b/include/xen/events.h @@ -2,11 +2,16 @@  #define _XEN_EVENTS_H  #include <linux/interrupt.h> +#ifdef CONFIG_PCI_MSI +#include <linux/msi.h> +#endif  #include <xen/interface/event_channel.h>  #include <asm/xen/hypercall.h>  #include <asm/xen/events.h> +unsigned xen_evtchn_nr_channels(void); +  int bind_evtchn_to_irq(unsigned int evtchn);  int bind_evtchn_to_irqhandler(unsigned int evtchn,  			      irq_handler_t handler, @@ -37,6 +42,11 @@ int bind_interdomain_evtchn_to_irqhandler(unsigned int remote_domain,   */  void unbind_from_irqhandler(unsigned int irq, void *dev_id); +#define XEN_IRQ_PRIORITY_MAX     EVTCHN_FIFO_PRIORITY_MAX +#define XEN_IRQ_PRIORITY_DEFAULT EVTCHN_FIFO_PRIORITY_DEFAULT +#define XEN_IRQ_PRIORITY_MIN     EVTCHN_FIFO_PRIORITY_MIN +int xen_set_irq_priority(unsigned irq, unsigned priority); +  /*   * Allow extra references to event channels exposed to userspace by evtchn   */ @@ -45,7 +55,6 @@ int evtchn_get(unsigned int evtchn);  void evtchn_put(unsigned int evtchn);  void xen_send_IPI_one(unsigned int cpu, enum ipi_vector vector); -int resend_irq_on_evtchn(unsigned int irq);  void rebind_evtchn_irq(int evtchn, int irq);  static inline void notify_remote_via_evtchn(int port) @@ -73,6 +82,8 @@ void xen_poll_irq_timeout(int irq, u64 timeout);  /* Determine the IRQ which is bound to an event channel */  unsigned irq_from_evtchn(unsigned int evtchn); +int irq_from_virq(unsigned int cpu, unsigned int virq); +unsigned int evtchn_from_irq(unsigned irq);  /* Xen HVM evtchn vector callback */  void xen_hvm_callback_vector(void); @@ -93,7 +104,7 @@ int xen_bind_pirq_gsi_to_irq(unsigned gsi,  int xen_allocate_pirq_msi(struct pci_dev *dev, struct msi_desc *msidesc);  /* Bind an PSI pirq to an irq. */  int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc, -			     int pirq, const char *name, domid_t domid); +			     int pirq, int nvec, const char *name, domid_t domid);  #endif  /* De-allocates the above mentioned physical interrupt. */  | 
