patch-2.1.30 linux/include/asm-sparc64/io.h
Next file: linux/include/asm-sparc64/kbio.h
Previous file: linux/include/asm-sparc64/init.h
Back to the patch index
Back to the overall index
- Lines: 107
- Date:
Thu Mar 20 16:45:07 1997
- Orig file:
v2.1.29/linux/include/asm-sparc64/io.h
- Orig date:
Mon Mar 17 14:54:33 1997
diff -u --recursive --new-file v2.1.29/linux/include/asm-sparc64/io.h linux/include/asm-sparc64/io.h
@@ -1,4 +1,4 @@
-/* $Id: io.h,v 1.3 1997/03/03 16:51:53 jj Exp $ */
+/* $Id: io.h,v 1.5 1997/03/18 18:04:00 jj Exp $ */
#ifndef __SPARC64_IO_H
#define __SPARC64_IO_H
@@ -7,12 +7,88 @@
#include <asm/page.h> /* IO address mapping routines need this */
#include <asm/system.h>
-extern void sparc_ultra_mapioaddr (unsigned long physaddr, unsigned long virt_addr, int bus, int rdonly);
+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 void sparc_ultra_mapioaddr (unsigned long physaddr, unsigned long virt_addr, int rdonly);
extern void sparc_ultra_unmapioaddr (unsigned long virt_addr);
-extern __inline__ void mapioaddr (unsigned long physaddr, unsigned long virt_addr, int bus, int rdonly)
+extern __inline__ void mapioaddr (unsigned long physaddr, unsigned long virt_addr, int rdonly)
{
- sparc_ultra_mapioaddr (physaddr, virt_addr, bus, rdonly);
+ sparc_ultra_mapioaddr (physaddr, virt_addr, rdonly);
return;
}
@@ -22,7 +98,7 @@
return;
}
-extern void *sparc_alloc_io (void *, void *, int, char *, int, int);
+extern void *sparc_alloc_io (void *, void *, int, char *, unsigned, int);
extern void sparc_free_io (void *, int);
extern void *sparc_dvma_malloc (int, char *);
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]