.. | .. |
---|
11 | 11 | #ifndef _XTENSA_IO_H |
---|
12 | 12 | #define _XTENSA_IO_H |
---|
13 | 13 | |
---|
14 | | -#ifdef __KERNEL__ |
---|
15 | 14 | #include <asm/byteorder.h> |
---|
16 | 15 | #include <asm/page.h> |
---|
17 | 16 | #include <asm/vectors.h> |
---|
.. | .. |
---|
22 | 21 | |
---|
23 | 22 | #define IOADDR(x) (XCHAL_KIO_BYPASS_VADDR + (x)) |
---|
24 | 23 | #define IO_SPACE_LIMIT ~0 |
---|
| 24 | +#define PCI_IOBASE ((void __iomem *)XCHAL_KIO_BYPASS_VADDR) |
---|
25 | 25 | |
---|
26 | 26 | #ifdef CONFIG_MMU |
---|
27 | 27 | |
---|
.. | .. |
---|
32 | 32 | /* |
---|
33 | 33 | * Return the virtual address for the specified bus memory. |
---|
34 | 34 | */ |
---|
35 | | -static inline void __iomem *ioremap_nocache(unsigned long offset, |
---|
36 | | - unsigned long size) |
---|
| 35 | +static inline void __iomem *ioremap(unsigned long offset, unsigned long size) |
---|
37 | 36 | { |
---|
38 | 37 | if (offset >= XCHAL_KIO_PADDR |
---|
39 | 38 | && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE) |
---|
.. | .. |
---|
52 | 51 | return xtensa_ioremap_cache(offset, size); |
---|
53 | 52 | } |
---|
54 | 53 | #define ioremap_cache ioremap_cache |
---|
55 | | -#define ioremap_nocache ioremap_nocache |
---|
56 | | - |
---|
57 | | -#define ioremap_wc ioremap_nocache |
---|
58 | | -#define ioremap_wt ioremap_nocache |
---|
59 | | - |
---|
60 | | -static inline void __iomem *ioremap(unsigned long offset, unsigned long size) |
---|
61 | | -{ |
---|
62 | | - return ioremap_nocache(offset, size); |
---|
63 | | -} |
---|
64 | 54 | |
---|
65 | 55 | static inline void iounmap(volatile void __iomem *addr) |
---|
66 | 56 | { |
---|
.. | .. |
---|
77 | 67 | #define bus_to_virt phys_to_virt |
---|
78 | 68 | |
---|
79 | 69 | #endif /* CONFIG_MMU */ |
---|
80 | | - |
---|
81 | | -#endif /* __KERNEL__ */ |
---|
82 | 70 | |
---|
83 | 71 | #include <asm-generic/io.h> |
---|
84 | 72 | |
---|