162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci *  arch/arm/mach-rpc/include/mach/io.h
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci *  Copyright (C) 1997 Russell King
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Modifications:
862306a36Sopenharmony_ci *  06-Dec-1997	RMK	Created.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci#ifndef __ASM_ARM_ARCH_IO_H
1162306a36Sopenharmony_ci#define __ASM_ARM_ARCH_IO_H
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#include <mach/hardware.h>
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#define IO_SPACE_LIMIT 0xffff
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/*
1862306a36Sopenharmony_ci * We need PC style IO addressing for:
1962306a36Sopenharmony_ci *  - floppy (at 0x3f2,0x3f4,0x3f5,0x3f7)
2062306a36Sopenharmony_ci *  - parport (at 0x278-0x27a, 0x27b-0x27f, 0x778-0x77a)
2162306a36Sopenharmony_ci *  - 8250 serial (only for compile)
2262306a36Sopenharmony_ci *
2362306a36Sopenharmony_ci * These peripherals are found in an area of MMIO which looks very much
2462306a36Sopenharmony_ci * like an ISA bus, but with registers at the low byte of each word.
2562306a36Sopenharmony_ci */
2662306a36Sopenharmony_ci#define __io(a)		(PCIO_BASE + ((a) << 2))
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif
29