diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-10 11:08:07 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:48:37 -0500 |
commit | f4d0635bf8894b7ba43d7a54733f3e26fe6ced2e (patch) | |
tree | 5f55817bb87ef63694e6ee7cc967ad4dfba3324c /include/xen | |
parent | 0a85226ff291a59b2d6596b28bbc4fe368ee5266 (diff) |
xen: events: refactor GSI pirq bindings functions
Following the example set by xen_allocate_pirq_msi and
xen_bind_pirq_msi_to_irq:
xen_allocate_pirq becomes xen_allocate_pirq_gsi and now only allocates
a pirq number and does not bind it.
xen_map_pirq_gsi becomes xen_bind_pirq_gsi_to_irq and binds an
existing pirq.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/events.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/xen/events.h b/include/xen/events.h index 99a64f045732..32ebebacee7f 100644 --- a/include/xen/events.h +++ b/include/xen/events.h | |||
@@ -68,12 +68,16 @@ int xen_set_callback_via(uint64_t via); | |||
68 | void xen_evtchn_do_upcall(struct pt_regs *regs); | 68 | void xen_evtchn_do_upcall(struct pt_regs *regs); |
69 | void xen_hvm_evtchn_do_upcall(void); | 69 | void xen_hvm_evtchn_do_upcall(void); |
70 | 70 | ||
71 | /* Allocate an irq for a physical interrupt, given a gsi. */ | 71 | /* Allocate a pirq for a physical interrupt, given a gsi. */ |
72 | int xen_allocate_pirq(unsigned gsi, int shareable, char *name); | 72 | int xen_allocate_pirq_gsi(unsigned gsi); |
73 | int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name); | 73 | /* Bind a pirq for a physical interrupt to an irq. */ |
74 | int xen_bind_pirq_gsi_to_irq(unsigned gsi, | ||
75 | unsigned pirq, int shareable, char *name); | ||
74 | 76 | ||
75 | #ifdef CONFIG_PCI_MSI | 77 | #ifdef CONFIG_PCI_MSI |
78 | /* Allocate a pirq for a MSI style physical interrupt. */ | ||
76 | int xen_allocate_pirq_msi(struct pci_dev *dev, struct msi_desc *msidesc); | 79 | int xen_allocate_pirq_msi(struct pci_dev *dev, struct msi_desc *msidesc); |
80 | /* Bind an PSI pirq to an irq. */ | ||
77 | int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc, | 81 | int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc, |
78 | int pirq, int vector, const char *name); | 82 | int pirq, int vector, const char *name); |
79 | #endif | 83 | #endif |