Commit 2201ec2b authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[AVR32] Define ioremap_nocache, ioport_map and ioport_unmap

These are all defined in terms of ioremap/iounmap since port I/O
isn't really different from memory-mapped I/O on AVR32.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent b60f16eb
...@@ -252,6 +252,9 @@ extern void __iounmap(void __iomem *addr); ...@@ -252,6 +252,9 @@ extern void __iounmap(void __iomem *addr);
#define ioremap(offset, size) \ #define ioremap(offset, size) \
__ioremap((offset), (size), 0) __ioremap((offset), (size), 0)
#define ioremap_nocache(offset, size) \
__ioremap((offset), (size), 0)
#define iounmap(addr) \ #define iounmap(addr) \
__iounmap(addr) __iounmap(addr)
...@@ -263,6 +266,14 @@ extern void __iounmap(void __iomem *addr); ...@@ -263,6 +266,14 @@ extern void __iounmap(void __iomem *addr);
#define page_to_bus page_to_phys #define page_to_bus page_to_phys
#define bus_to_page phys_to_page #define bus_to_page phys_to_page
/*
* Create a virtual mapping cookie for an IO port range. There exists
* no such thing as port-based I/O on AVR32, so a regular ioremap()
* should do what we need.
*/
#define ioport_map(port, nr) ioremap(port, nr)
#define ioport_unmap(port) iounmap(port)
#define dma_cache_wback_inv(_start, _size) \ #define dma_cache_wback_inv(_start, _size) \
flush_dcache_region(_start, _size) flush_dcache_region(_start, _size)
#define dma_cache_inv(_start, _size) \ #define dma_cache_inv(_start, _size) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment