- #ifndef _PPC64_IO_H
+#ifndef _PPC64_IO_H
#define _PPC64_IO_H
/*
extern void _insl_ns(volatile u32 *port, void *buf, int nl);
extern void _outsl_ns(volatile u32 *port, const void *buf, int nl);
-#define mmiowb()
-
/*
* output pause versions need a delay at least for the
* w83c105 ide controller in a p610.
#define ioremap_nocache(addr, size) ioremap((addr), (size))
extern int iounmap_explicit(volatile void __iomem *addr, unsigned long size);
extern void iounmap(volatile void __iomem *addr);
-extern void __iomem * reserve_phb_iospace(unsigned long size);
+extern void * reserve_phb_iospace(unsigned long size);
/**
* virt_to_phys - map virtual addresses to physical
* and should not be used directly by device drivers. Use inb/readb
* instead.
*/
-static inline int in_8(const volatile unsigned char __iomem *addr)
+static inline int in_8(volatile unsigned char *addr)
{
int ret;
return ret;
}
-static inline void out_8(volatile unsigned char __iomem *addr, int val)
+static inline void out_8(volatile unsigned char *addr, int val)
{
__asm__ __volatile__("stb%U0%X0 %1,%0; sync"
: "=m" (*addr) : "r" (val));
}
-static inline int in_le16(const volatile unsigned short __iomem *addr)
+static inline int in_le16(volatile unsigned short *addr)
{
int ret;
return ret;
}
-static inline int in_be16(const volatile unsigned short __iomem *addr)
+static inline int in_be16(volatile unsigned short *addr)
{
int ret;
return ret;
}
-static inline void out_le16(volatile unsigned short __iomem *addr, int val)
+static inline void out_le16(volatile unsigned short *addr, int val)
{
__asm__ __volatile__("sthbrx %1,0,%2; sync"
: "=m" (*addr) : "r" (val), "r" (addr));
}
-static inline void out_be16(volatile unsigned short __iomem *addr, int val)
+static inline void out_be16(volatile unsigned short *addr, int val)
{
__asm__ __volatile__("sth%U0%X0 %1,%0; sync"
: "=m" (*addr) : "r" (val));
}
-static inline unsigned in_le32(const volatile unsigned __iomem *addr)
+static inline unsigned in_le32(volatile unsigned *addr)
{
unsigned ret;
return ret;
}
-static inline unsigned in_be32(const volatile unsigned __iomem *addr)
+static inline unsigned in_be32(volatile unsigned *addr)
{
unsigned ret;
return ret;
}
-static inline void out_le32(volatile unsigned __iomem *addr, int val)
+static inline void out_le32(volatile unsigned *addr, int val)
{
__asm__ __volatile__("stwbrx %1,0,%2; sync" : "=m" (*addr)
: "r" (val), "r" (addr));
}
-static inline void out_be32(volatile unsigned __iomem *addr, int val)
+static inline void out_be32(volatile unsigned *addr, int val)
{
__asm__ __volatile__("stw%U0%X0 %1,%0; sync"
: "=m" (*addr) : "r" (val));
}
-static inline unsigned long in_le64(const volatile unsigned long __iomem *addr)
+static inline unsigned long in_le64(volatile unsigned long *addr)
{
unsigned long tmp, ret;
return ret;
}
-static inline unsigned long in_be64(const volatile unsigned long __iomem *addr)
+static inline unsigned long in_be64(volatile unsigned long *addr)
{
unsigned long ret;
return ret;
}
-static inline void out_le64(volatile unsigned long __iomem *addr, unsigned long val)
+static inline void out_le64(volatile unsigned long *addr, unsigned long val)
{
unsigned long tmp;
: "=&r" (tmp) , "=&r" (val) : "1" (val) , "b" (addr) , "m" (*addr));
}
-static inline void out_be64(volatile unsigned long __iomem *addr, unsigned long val)
+static inline void out_be64(volatile unsigned long *addr, unsigned long val)
{
__asm__ __volatile__("std%U0%X0 %1,%0; sync" : "=m" (*addr) : "r" (val));
}
#define dma_cache_wback(_start,_size) do { } while (0)
#define dma_cache_wback_inv(_start,_size) do { } while (0)
-/* Check of existence of legacy devices */
-extern int check_legacy_ioport(unsigned long base_port);
-
-
#endif /* __KERNEL__ */
#endif /* _PPC64_IO_H */