|
@@ -12,7 +12,6 @@
|
|
|
#define __ASM_GENERIC_IO_H
|
|
|
|
|
|
#include <asm/page.h> /* I/O is all done through memory accesses */
|
|
|
-#include <asm/cacheflush.h>
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
#ifdef CONFIG_GENERIC_IOMAP
|
|
@@ -223,36 +222,6 @@ static inline void outsl(unsigned long addr, const void *buffer, int count)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-static inline void readsl(const void __iomem *addr, void *buf, int len)
|
|
|
-{
|
|
|
- insl(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void readsw(const void __iomem *addr, void *buf, int len)
|
|
|
-{
|
|
|
- insw(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void readsb(const void __iomem *addr, void *buf, int len)
|
|
|
-{
|
|
|
- insb(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void writesl(const void __iomem *addr, const void *buf, int len)
|
|
|
-{
|
|
|
- outsl(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void writesw(const void __iomem *addr, const void *buf, int len)
|
|
|
-{
|
|
|
- outsw(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void writesb(const void __iomem *addr, const void *buf, int len)
|
|
|
-{
|
|
|
- outsb(addr - PCI_IOBASE, buf, len);
|
|
|
-}
|
|
|
-
|
|
|
#ifndef CONFIG_GENERIC_IOMAP
|
|
|
#define ioread8(addr) readb(addr)
|
|
|
#define ioread16(addr) readw(addr)
|