blob: c298061c70a7ee2ed6b1a71db0d5399164e45a11 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Jonas Bonn58e01662011-06-04 22:43:49 +03002/*
3 * OpenRISC Linux
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *
9 * OpenRISC implementation:
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 * et al.
Jonas Bonn58e01662011-06-04 22:43:49 +030012 */
13
14#ifndef __ASM_OPENRISC_IO_H
15#define __ASM_OPENRISC_IO_H
16
Stafford Horne045838b2020-08-04 08:40:57 +090017#include <linux/types.h>
18
Jonas Bonn58e01662011-06-04 22:43:49 +030019/*
20 * PCI: can we really do 0 here if we have no port IO?
21 */
22#define IO_SPACE_LIMIT 0
23
24/* OpenRISC has no port IO */
25#define HAVE_ARCH_PIO_SIZE 1
26#define PIO_RESERVED 0X0UL
27#define PIO_OFFSET 0
28#define PIO_MASK 0
29
Stafford Horne045838b2020-08-04 08:40:57 +090030#define ioremap ioremap
Christoph Hellwigf3b17322019-08-17 09:32:32 +020031void __iomem *ioremap(phys_addr_t offset, unsigned long size);
Stafford Horne045838b2020-08-04 08:40:57 +090032
33#define iounmap iounmap
Geert Uytterhoeven031c7a82020-12-28 09:33:28 +010034extern void iounmap(void __iomem *addr);
Christoph Hellwigf3b17322019-08-17 09:32:32 +020035
Stafford Horne045838b2020-08-04 08:40:57 +090036#include <asm-generic/io.h>
37
Jonas Bonn58e01662011-06-04 22:43:49 +030038#endif