aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-10 15:31:53 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-10 15:31:53 +0100
commit20f278002607ff5af89581ae6ce1258dcd3f282a (patch)
treed1e461baa2c13863d3d172f0c2047270d386dfea /unmodified_drivers/linux-2.6/platform-pci/platform-pci.h
parente2492c5e9e72ffc0ddb2765080b579200fd8f1c8 (diff)
downloadxen-20f278002607ff5af89581ae6ce1258dcd3f282a.tar.gz
xen-20f278002607ff5af89581ae6ce1258dcd3f282a.tar.bz2
xen-20f278002607ff5af89581ae6ce1258dcd3f282a.zip
PV-on-HVM: Fixes for save/restore. Also gets rid of separate modules
reboot.ko and xenbus.ko. These are now part of xen-platform-pci.ko. Signed-off-by: Keir Fraser <keir@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.h38
1 files changed, 15 insertions, 23 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
index ca65358599..098db4525b 100644
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h
@@ -1,7 +1,9 @@
/******************************************************************************
- * evtchn-pci.h
- * module driver support in unmodified Linux
- * Copyright (C) 2004, Intel Corporation. <xiaofeng.ling@intel.com>
+ * platform-pci.h
+ *
+ * Xen platform PCI device driver
+ * Copyright (c) 2004, Intel Corporation. <xiaofeng.ling@intel.com>
+ * Copyright (c) 2007, XenSource Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -15,31 +17,21 @@
* 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_via(uint64_t via)
-{
- struct xen_hvm_param a;
+#ifndef _XEN_PLATFORM_PCI_H
+#define _XEN_PLATFORM_PCI_H
- a.domid = DOMID_SELF;
- a.index = HVM_PARAM_CALLBACK_IRQ;
- a.value = via;
- return HYPERVISOR_hvm_op(HVMOP_set_param, &a);
-}
+#include <linux/interrupt.h>
unsigned long alloc_xen_mmio(unsigned long len);
-
int gnttab_init(void);
-
-void setup_xen_features(void);
-
irqreturn_t evtchn_interrupt(int irq, void *dev_id, struct pt_regs *regs);
+void irq_suspend(void);
+void irq_suspend_cancel(void);
+
+void platform_pci_suspend(void);
+void platform_pci_suspend_cancel(void);
+void platform_pci_resume(void);
-#endif
+#endif /* _XEN_PLATFORM_PCI_H */