18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * arch/arm/mach-rpc/include/mach/io.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1997 Russell King 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Modifications: 88c2ecf20Sopenharmony_ci * 06-Dec-1997 RMK Created. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef __ASM_ARM_ARCH_IO_H 118c2ecf20Sopenharmony_ci#define __ASM_ARM_ARCH_IO_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <mach/hardware.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define IO_SPACE_LIMIT 0xffff 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* 188c2ecf20Sopenharmony_ci * We need PC style IO addressing for: 198c2ecf20Sopenharmony_ci * - floppy (at 0x3f2,0x3f4,0x3f5,0x3f7) 208c2ecf20Sopenharmony_ci * - parport (at 0x278-0x27a, 0x27b-0x27f, 0x778-0x77a) 218c2ecf20Sopenharmony_ci * - 8250 serial (only for compile) 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * These peripherals are found in an area of MMIO which looks very much 248c2ecf20Sopenharmony_ci * like an ISA bus, but with registers at the low byte of each word. 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_ci#define __io(a) (PCIO_BASE + ((a) << 2)) 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif 29