Index: kernel/arch/ia64/include/asm.h
===================================================================
--- kernel/arch/ia64/include/asm.h	(revision 0e9463df619d59f4f40fb9489405acbaf4813533)
+++ kernel/arch/ia64/include/asm.h	(revision 2a06e2f051977fa82b2af03186f4f4a82830d63f)
@@ -40,4 +40,22 @@
 #include <arch/register.h>
 
+
+#define IA64_IOSPACE_ADDRESS 0xE0000FFFFC000000ULL
+
+static inline void  outb(uint64_t port,uint8_t v)
+{
+	*((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 )))) = v;
+	asm volatile ("mf\n" ::: "memory");
+}
+
+
+static inline uint8_t inb(uint64_t port)
+{
+	asm volatile ("mf\n" ::: "memory");
+	return *((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 ))));
+}
+
+
+
 /** Return base address of current stack
  *
