blob: 5b81a96ab85ee4acb1ccb4bd670f2771b483b28f [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
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.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012 */
13
14#ifndef __ASM_OPENRISC_IO_H
15#define __ASM_OPENRISC_IO_H
16
17/*
18 * PCI: can we really do 0 here if we have no port IO?
19 */
20#define IO_SPACE_LIMIT 0
21
22/* OpenRISC has no port IO */
23#define HAVE_ARCH_PIO_SIZE 1
24#define PIO_RESERVED 0X0UL
25#define PIO_OFFSET 0
26#define PIO_MASK 0
27
David Brazdil0f672f62019-12-10 10:32:29 +000028#define ioremap_nocache ioremap
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000029#include <asm-generic/io.h>
30#include <asm/pgtable.h>
31
David Brazdil0f672f62019-12-10 10:32:29 +000032void __iomem *ioremap(phys_addr_t offset, unsigned long size);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000033extern void iounmap(void *addr);
David Brazdil0f672f62019-12-10 10:32:29 +000034
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000035#endif