aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-12 16:03:41 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-12 16:03:41 +0100
commitb28538178f7e2edcd25eeb9a9c5ba873cc517d05 (patch)
tree527cb00997f4a7cf98b4a955224ee19713f90f5a /unmodified_drivers
parentfa88310477dc9612192037253e847dac47e1f79c (diff)
downloadxen-b28538178f7e2edcd25eeb9a9c5ba873cc517d05.tar.gz
xen-b28538178f7e2edcd25eeb9a9c5ba873cc517d05.tar.bz2
xen-b28538178f7e2edcd25eeb9a9c5ba873cc517d05.zip
Fix PV-on-HVM driver build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h9
-rw-r--r--unmodified_drivers/linux-2.6/netfront/Kbuild1
2 files changed, 10 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
index 2bc455ecd0..0caab22bd6 100644
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
@@ -107,4 +107,13 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...)
#define __supported_pte_mask ((maddr_t)0)
#endif
+#if defined(_LINUX_NETDEVICE_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#define netif_tx_lock_bh(dev) (spin_lock_bh(&(dev)->xmit_lock))
+#define netif_tx_unlock_bh(dev) (spin_unlock_bh(&(dev)->xmit_lock))
+#endif
+
+#if defined(__LINUX_SEQLOCK_H) && !defined(DEFINE_SEQLOCK)
+#define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED
+#endif
+
#endif
diff --git a/unmodified_drivers/linux-2.6/netfront/Kbuild b/unmodified_drivers/linux-2.6/netfront/Kbuild
index 974c96433e..486c2a0a77 100644
--- a/unmodified_drivers/linux-2.6/netfront/Kbuild
+++ b/unmodified_drivers/linux-2.6/netfront/Kbuild
@@ -2,3 +2,4 @@ include $(M)/overrides.mk
obj-m = xen-vnif.o
xen-vnif-objs := netfront.o
+xen-vnif-objs += accel.o