io.h (ead5d1f4d877e92c051e1a1ade623d0d30e71619) io.h (05cdf457477d6603b207d91873f0a3d4c7f8c1cd)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
4 * Copyright (C) 2007-2009 PetaLogix
5 * Copyright (C) 2006 Atmark Techno, Inc.
6 */
7
8#ifndef _ASM_MICROBLAZE_IO_H

--- 16 unchanged lines hidden (view full) ---

25
26extern unsigned long isa_io_base;
27extern resource_size_t isa_mem_base;
28#endif
29
30#define PCI_IOBASE ((void __iomem *)_IO_BASE)
31#define IO_SPACE_LIMIT (0xFFFFFFFF)
32
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
4 * Copyright (C) 2007-2009 PetaLogix
5 * Copyright (C) 2006 Atmark Techno, Inc.
6 */
7
8#ifndef _ASM_MICROBLAZE_IO_H

--- 16 unchanged lines hidden (view full) ---

25
26extern unsigned long isa_io_base;
27extern resource_size_t isa_mem_base;
28#endif
29
30#define PCI_IOBASE ((void __iomem *)_IO_BASE)
31#define IO_SPACE_LIMIT (0xFFFFFFFF)
32
33#ifdef CONFIG_MMU
34#define page_to_bus(page) (page_to_phys(page))
35
36extern void iounmap(volatile void __iomem *addr);
37
38extern void __iomem *ioremap(phys_addr_t address, unsigned long size);
39
33#define page_to_bus(page) (page_to_phys(page))
34
35extern void iounmap(volatile void __iomem *addr);
36
37extern void __iomem *ioremap(phys_addr_t address, unsigned long size);
38
40#endif /* CONFIG_MMU */
41
42/* Big Endian */
43#define out_be32(a, v) __raw_writel((v), (void __iomem __force *)(a))
44#define out_be16(a, v) __raw_writew((v), (a))
45
46#define in_be32(a) __raw_readl((const void __iomem __force *)(a))
47#define in_be16(a) __raw_readw(a)
48
49#define writel_be(v, a) out_be32((__force unsigned *)a, v)

--- 16 unchanged lines hidden ---
39/* Big Endian */
40#define out_be32(a, v) __raw_writel((v), (void __iomem __force *)(a))
41#define out_be16(a, v) __raw_writew((v), (a))
42
43#define in_be32(a) __raw_readl((const void __iomem __force *)(a))
44#define in_be16(a) __raw_readw(a)
45
46#define writel_be(v, a) out_be32((__force unsigned *)a, v)

--- 16 unchanged lines hidden ---