1/* 2 * linux/include/asm-arm/arch-ebsa285/io.h 3 * 4 * Copyright (C) 1997-1999 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * 10 * Modifications: 11 * 06-12-1997 RMK Created. 12 * 07-04-1999 RMK Major cleanup 13 */ 14#ifndef __ASM_ARM_ARCH_IO_H 15#define __ASM_ARM_ARCH_IO_H 16 17#define IO_SPACE_LIMIT 0xffff 18 19/* 20 * Translation of various region addresses to virtual addresses 21 */ 22#define __io(a) (PCIO_BASE + (a)) 23#define __mem_pci(a) ((unsigned long)(a)) 24#define __mem_isa(a) (PCIMEM_BASE + (unsigned long)(a)) 25 26/* 27 * Generic virtual read/write 28 */ 29#define __arch_getw(a) (*(volatile unsigned short *)(a)) 30#define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) 31 32#define iomem_valid_addr(iomem,sz) (1) 33#define iomem_to_phys(iomem) (iomem) 34 35#endif 36