blob: a863b0f6eeec929ae520e26207aead6ebaf2ce99 [file] [log] [blame]
Jamie Ilesaf756552011-07-25 17:36:42 +01001/*
2 * Copyright (c) 2011 Picochip Ltd., Jamie Iles
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14#ifndef __ASM_ARM_ARCH_IO_H
15#define __ASM_ARM_ARCH_IO_H
16
17/* No ioports, but needed for driver compatibility. */
18#define __io(a) __typesafe_io(a)
19/* No PCI possible on picoxcell. */
20#define __mem_pci(a) (a)
21
22#define __arch_ioremap picoxcell_ioremap
23#define __arch_iounmap picoxcell_iounmap
24
25extern void __iomem *picoxcell_ioremap(unsigned long phys, size_t size,
26 unsigned int type);
27extern void picoxcell_iounmap(volatile void __iomem *addr);
28
29#endif /* __ASM_ARM_ARCH_IO_H */