2 * linux/arch/unicore32/include/asm/io.h
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #ifndef __UNICORE_IO_H__
13 #define __UNICORE_IO_H__
17 #include <asm/byteorder.h>
18 #include <asm/memory.h>
19 #include <asm/system.h>
21 #include <asm-generic/io.h>
24 * __uc32_ioremap and __uc32_ioremap_cached takes CPU physical address.
26 extern void __iomem
*__uc32_ioremap(unsigned long, size_t);
27 extern void __iomem
*__uc32_ioremap_cached(unsigned long, size_t);
28 extern void __uc32_iounmap(volatile void __iomem
*addr
);
31 * ioremap and friends.
33 * ioremap takes a PCI memory address, as specified in
34 * Documentation/IO-mapping.txt.
37 #define ioremap(cookie, size) __uc32_ioremap(cookie, size)
38 #define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size)
39 #define iounmap(cookie) __uc32_iounmap(cookie)
41 extern void __iomem
*ioport_map(unsigned long port
, unsigned int nr
);
42 extern void ioport_unmap(void __iomem
*addr
);
45 * Convert a physical pointer to a virtual kernel pointer for /dev/mem
48 #undef xlate_dev_mem_ptr
49 #define xlate_dev_mem_ptr(p) __va(p)
51 #endif /* __KERNEL__ */
52 #endif /* __UNICORE_IO_H__ */
This page took 0.11644 seconds and 5 git commands to generate.