fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / asm-m32r / io.h
index 97a64d3..d06933b 100644 (file)
@@ -60,7 +60,7 @@ __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
  *     address.
  */
 
-static inline void ioremap(unsigned long offset, unsigned long size)
+static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 {
        return __ioremap(offset, size, 0);
 }
@@ -151,6 +151,9 @@ static inline void _writel(unsigned long l, unsigned long addr)
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#define readb_relaxed readb
+#define readw_relaxed readw
+#define readl_relaxed readl
 
 #define writeb(val, addr)  _writeb((val), (unsigned long)(addr))
 #define writew(val, addr)  _writew((val), (unsigned long)(addr))
@@ -159,39 +162,9 @@ static inline void _writel(unsigned long l, unsigned long addr)
 #define __raw_writew writew
 #define __raw_writel writel
 
-#define flush_write_buffers() do { } while (0)  /* M32R_FIXME */
-
-/**
- *     isa_check_signature             -       find BIOS signatures
- *     @io_addr: mmio address to check
- *     @signature:  signature block
- *     @length: length of signature
- *
- *     Perform a signature comparison with the ISA mmio address io_addr.
- *     Returns 1 on a match.
- *
- *     This function is deprecated. New drivers should use ioremap and
- *     check_signature.
- */
+#define mmiowb()
 
-static inline int isa_check_signature(unsigned long io_addr,
-        const unsigned char *signature, int length)
-{
-        int retval = 0;
-#if 0
-printk("isa_check_signature\n");
-        do {
-                if (isa_readb(io_addr) != *signature)
-                        goto out;
-                io_addr++;
-                signature++;
-                length--;
-        } while (length);
-        retval = 1;
-out:
-#endif
-        return retval;
-}
+#define flush_write_buffers() do { } while (0)  /* M32R_FIXME */
 
 static inline void
 memset_io(volatile void __iomem *addr, unsigned char val, int count)
@@ -211,6 +184,17 @@ memcpy_toio(volatile void __iomem *dst, const void *src, int count)
        memcpy((void __force *) dst, src, count);
 }
 
+/*
+ * Convert a physical pointer to a virtual kernel pointer for /dev/mem
+ * access
+ */
+#define xlate_dev_mem_ptr(p)   __va(p)
+
+/*
+ * Convert a virtual cached pointer to an uncached pointer
+ */
+#define xlate_dev_kmem_ptr(p)  p
+
 #endif  /* __KERNEL__ */
 
 #endif  /* _ASM_M32R_IO_H */