summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/io.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
committer <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
commite7c2a72e2680827d6a733931273a93461c0d8d1b (patch)
treec9abeda78ef7504062bb2e816bcf3e3c9d680112 /include/asm-sparc/io.h
parentec6044459060a8c9ce7f64405c465d141898548c (diff)
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'include/asm-sparc/io.h')
-rw-r--r--include/asm-sparc/io.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/include/asm-sparc/io.h b/include/asm-sparc/io.h
new file mode 100644
index 000000000..5aa1a3fac
--- /dev/null
+++ b/include/asm-sparc/io.h
@@ -0,0 +1,100 @@
+#ifndef __SPARC_IO_H
+#define __SPARC_IO_H
+
+#include <asm/page.h> /* IO address mapping routines need this */
+
+/*
+ * Defines for io operations on the Sparc. Whether a memory access is going
+ * to i/o sparc is encoded in the pte. The type bits determine whether this
+ * is i/o sparc, on board memory, or VME space for VME cards. I think VME
+ * space only works on sun4's
+ */
+
+extern inline unsigned long inb_local(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline void outb_local(unsigned char b, unsigned long addr)
+{
+ return;
+}
+
+extern inline unsigned long inb(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline unsigned long inw(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline unsigned long inl(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline void outb(unsigned char b, unsigned long addr)
+{
+ return;
+}
+
+extern inline void outw(unsigned short b, unsigned long addr)
+{
+ return;
+}
+
+extern inline void outl(unsigned int b, unsigned long addr)
+{
+ return;
+}
+
+/*
+ * Memory functions
+ */
+extern inline unsigned long readb(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline unsigned long readw(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline unsigned long readl(unsigned long addr)
+{
+ return 0;
+}
+
+extern inline void writeb(unsigned short b, unsigned long addr)
+{
+ return;
+}
+
+extern inline void writew(unsigned short b, unsigned long addr)
+{
+ return;
+}
+
+extern inline void writel(unsigned int b, unsigned long addr)
+{
+ return;
+}
+
+#define inb_p inb
+#define outb_p outb
+
+extern inline void mapioaddr(unsigned long physaddr, unsigned long virt_addr)
+{
+ unsigned long page_entry;
+
+ page_entry = physaddr >> PAGE_SHIFT;
+ page_entry |= (PTE_V | PTE_ACC | PTE_NC | PTE_IO); /* kernel io addr */
+
+ put_pte(virt_addr, page_entry);
+ return;
+}
+
+#endif /* !(__SPARC_IO_H) */