ia64/linux-2.6.18-xen.hg

diff include/xen/evtchn.h @ 661:7886619f623e

linux/pci-msi: translate Xen-provided PIRQs (take 2)

Previously, the kernel depended upon Xen's NR_IRQS to be no larger
than the kernel's NR_PIRQS.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Sep 08 13:13:35 2008 +0100 (2008-09-08)
parents ad374a7a9f3e
children ddb6d2257ec4
line diff
     1.1 --- a/include/xen/evtchn.h	Sat Sep 06 14:14:42 2008 +0100
     1.2 +++ b/include/xen/evtchn.h	Mon Sep 08 13:13:35 2008 +0100
     1.3 @@ -101,6 +101,13 @@ asmlinkage void evtchn_do_upcall(struct 
     1.4  /* Entry point for notifications into the userland character device. */
     1.5  void evtchn_device_upcall(int port);
     1.6  
     1.7 +/* Mark a PIRQ as unavailable for dynamic allocation. */
     1.8 +void evtchn_register_pirq(int irq);
     1.9 +/* Map a Xen-supplied PIRQ to a dynamically allocated one. */
    1.10 +int evtchn_map_pirq(int irq, int xen_pirq);
    1.11 +/* Look up a Xen-supplied PIRQ for a dynamically allocated one. */
    1.12 +int evtchn_get_xen_pirq(int irq);
    1.13 +
    1.14  void mask_evtchn(int port);
    1.15  void disable_all_local_evtchn(void);
    1.16  void unmask_evtchn(int port);