36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
|
bimodal: header file with protocol names.
|
||
|
|
||
|
This patch adds a header file with the protocol names.
|
||
|
|
||
|
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
|
||
|
---
|
||
|
xen/include/public/io/protocols.h | 21 +++++++++++++++++++++
|
||
|
1 file changed, 21 insertions(+)
|
||
|
|
||
|
Index: build-32-unstable-13495/xen/include/public/io/protocols.h
|
||
|
===================================================================
|
||
|
--- /dev/null
|
||
|
+++ build-32-unstable-13495/xen/include/public/io/protocols.h
|
||
|
@@ -0,0 +1,21 @@
|
||
|
+#ifndef __XEN_PROTOCOLS_H__
|
||
|
+#define __XEN_PROTOCOLS_H__
|
||
|
+
|
||
|
+#define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi"
|
||
|
+#define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi"
|
||
|
+#define XEN_IO_PROTO_ABI_IA64 "ia64-abi"
|
||
|
+#define XEN_IO_PROTO_ABI_POWERPC64 "powerpc64-abi"
|
||
|
+
|
||
|
+#if defined(__i386__)
|
||
|
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
|
||
|
+#elif defined(__x86_64__)
|
||
|
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
|
||
|
+#elif defined(__ia64__)
|
||
|
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64
|
||
|
+#elif defined(__powerpc64__)
|
||
|
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64
|
||
|
+#else
|
||
|
+# error arch fixup needed here
|
||
|
+#endif
|
||
|
+
|
||
|
+#endif
|