diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-17 16:08:01 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-08-17 16:08:01 +0100 |
commit | 98abf9b1f795271a8bafb74b97e856aafb185eb9 (patch) | |
tree | fa0e9804a1a955f16e9a107d06fd7d3ea2563b3f /unmodified_drivers/linux-2.6/platform-pci/platform-pci.h | |
parent | eb97b7dc2b268b799596764eb7ed8c41708223e1 (diff) | |
download | xen-98abf9b1f795271a8bafb74b97e856aafb185eb9.tar.gz xen-98abf9b1f795271a8bafb74b97e856aafb185eb9.tar.bz2 xen-98abf9b1f795271a8bafb74b97e856aafb185eb9.zip |
[HVM] Linux driver for the xen platform pseudo-PCI device.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/platform-pci/platform-pci.h')
-rw-r--r-- | unmodified_drivers/linux-2.6/platform-pci/platform-pci.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h new file mode 100644 index 0000000000..8af732c69f --- /dev/null +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h @@ -0,0 +1,43 @@ +/****************************************************************************** + * evtchn-pci.h + * module driver support in unmodified Linux + * Copyright (C) 2004, Intel Corporation. <xiaofeng.ling@intel.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307 USA. + * + */ + +#ifndef __XEN_SUPPORT_H +#define __XEN_SUPPORT_H +#include <linux/version.h> +#include <linux/interrupt.h> +#include <xen/interface/hvm/params.h> + +static inline int set_callback_irq(int irq) +{ + struct xen_hvm_param a; + + a.domid = DOMID_SELF; + a.index = HVM_PARAM_CALLBACK_IRQ; + a.value = irq; + return HYPERVISOR_hvm_op(HVMOP_set_param, &a); +} + +unsigned long alloc_xen_mmio(unsigned long len); + +void setup_xen_features(void); + +irqreturn_t evtchn_interrupt(int irq, void *dev_id, struct pt_regs *regs); + +#endif |