aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/config.h
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-03-23 09:48:06 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-03-23 09:48:06 +0000
commit2a5f90e8e88330b026e79c1a3c38a711f545c167 (patch)
treecaa5435c339291cc581777a52e4981c75b77260d /xen/include/xen/config.h
parentc2929ecdf6cba5d5e5fd09c52e465e5f4a22fb83 (diff)
downloadxen-2a5f90e8e88330b026e79c1a3c38a711f545c167.tar.gz
xen-2a5f90e8e88330b026e79c1a3c38a711f545c167.tar.bz2
xen-2a5f90e8e88330b026e79c1a3c38a711f545c167.zip
bitkeeper revision 1.821 (406007d6uu0vZYDxa9P1ZfNO9kF_Cg)
Many files: xeno -> xen renames. ide-xen.c: Rename: xen/drivers/ide/ide-xeno.c -> xen/drivers/ide/ide-xen.c xen.lds: Rename: xen/arch/i386/xeno.lds -> xen/arch/i386/xen.lds Many files: mvdir
Diffstat (limited to 'xen/include/xen/config.h')
-rw-r--r--xen/include/xen/config.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h
new file mode 100644
index 0000000000..a61e347eb9
--- /dev/null
+++ b/xen/include/xen/config.h
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * config.h
+ *
+ * A Linux-style configuration list.
+ */
+
+#ifndef __XENO_CONFIG_H__
+#define __XENO_CONFIG_H__
+
+#include <asm/config.h>
+
+/* syslog levels ==> nothing! */
+#define KERN_NOTICE ""
+#define KERN_WARNING ""
+#define KERN_DEBUG ""
+#define KERN_INFO ""
+#define KERN_ERR ""
+#define KERN_CRIT ""
+#define KERN_EMERG ""
+#define KERN_ALERT ""
+
+#define offsetof(_p,_f) ((unsigned long)&(((_p *)0)->_f))
+#define struct_cpy(_x,_y) (memcpy((_x),(_y),sizeof(*(_x))))
+
+#define dev_probe_lock() ((void)0)
+#define dev_probe_unlock() ((void)0)
+
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
+#define capable(_c) 0
+
+#ifndef NDEBUG
+#define DPRINTK(_f, _a...) printk("(file=%s, line=%d) " _f, \
+ __FILE__ , __LINE__ , ## _a )
+#else
+#define DPRINTK(_f, _a...) ((void)0)
+#endif
+
+#ifndef __ASSEMBLY__
+#include <xen/compiler.h>
+extern unsigned int opt_ser_baud;
+#define SERIAL_ENABLED (opt_ser_baud != 0)
+#endif
+
+#endif /* __XENO_CONFIG_H__ */