diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-06-06 12:22:23 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-07-11 13:19:26 -0400 |
commit | 996c34aee3525c0ef91052af0e425e87d83ba6e0 (patch) | |
tree | 9b6d93309b8c7d45f4b18b01ccd9c737c6bda55c /arch | |
parent | fef6e26208879f76bada77c11c80d56ebacb32e4 (diff) |
xen/pci: Update comments and fix empty spaces.
Update the out-dated comment at the beginning of the file.
Also provide the copyrights of folks who have been contributing
to this code lately.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/pci/xen.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index ba4077b7304..76b39804413 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c | |||
@@ -1,8 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | * Xen PCI Frontend Stub - puts some "dummy" functions in to the Linux | 2 | * Xen PCI - handle PCI (INTx) and MSI infrastructure calls for PV, HVM and |
3 | * x86 PCI core to support the Xen PCI Frontend | 3 | * initial domain support. We also handle the DSDT _PRT callbacks for GSI's |
4 | * used in HVM and initial domain mode (PV does not parse ACPI, so it has no | ||
5 | * concept of GSIs). Under PV we hook under the pnbbios API for IRQs and | ||
6 | * 0xcf8 PCI configuration read/write. | ||
4 | * | 7 | * |
5 | * Author: Ryan Wilson <hap9@epoch.ncsc.mil> | 8 | * Author: Ryan Wilson <hap9@epoch.ncsc.mil> |
9 | * Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | ||
10 | * Stefano Stabellini <stefano.stabellini@eu.citrix.com> | ||
6 | */ | 11 | */ |
7 | #include <linux/module.h> | 12 | #include <linux/module.h> |
8 | #include <linux/init.h> | 13 | #include <linux/init.h> |
@@ -183,9 +188,6 @@ static int acpi_register_gsi_xen(struct device *dev, u32 gsi, | |||
183 | struct xen_pci_frontend_ops *xen_pci_frontend; | 188 | struct xen_pci_frontend_ops *xen_pci_frontend; |
184 | EXPORT_SYMBOL_GPL(xen_pci_frontend); | 189 | EXPORT_SYMBOL_GPL(xen_pci_frontend); |
185 | 190 | ||
186 | /* | ||
187 | * For MSI interrupts we have to use drivers/xen/event.s functions to | ||
188 | * allocate an irq_desc and setup the right */ | ||
189 | static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | 191 | static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) |
190 | { | 192 | { |
191 | int irq, ret, i; | 193 | int irq, ret, i; |
@@ -361,7 +363,6 @@ static void xen_teardown_msi_irq(unsigned int irq) | |||
361 | 363 | ||
362 | #endif | 364 | #endif |
363 | 365 | ||
364 | |||
365 | int __init pci_xen_init(void) | 366 | int __init pci_xen_init(void) |
366 | { | 367 | { |
367 | if (!xen_pv_domain() || xen_initial_domain()) | 368 | if (!xen_pv_domain() || xen_initial_domain()) |
@@ -427,7 +428,7 @@ static __init void xen_setup_acpi_sci(void) | |||
427 | } | 428 | } |
428 | trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; | 429 | trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; |
429 | polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; | 430 | polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; |
430 | 431 | ||
431 | printk(KERN_INFO "xen: sci override: global_irq=%d trigger=%d " | 432 | printk(KERN_INFO "xen: sci override: global_irq=%d trigger=%d " |
432 | "polarity=%d\n", gsi, trigger, polarity); | 433 | "polarity=%d\n", gsi, trigger, polarity); |
433 | 434 | ||