Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.14-rc1 48 lines 1.4 kB view raw
1/* 2 * linux/arch/unicore32/include/asm/io.h 3 * 4 * Code specific to PKUnity SoC and UniCore ISA 5 * 6 * Copyright (C) 2001-2010 GUAN Xue-tao 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License version 2 as 10 * published by the Free Software Foundation. 11 */ 12#ifndef __UNICORE_IO_H__ 13#define __UNICORE_IO_H__ 14 15#ifdef __KERNEL__ 16 17#include <asm/byteorder.h> 18#include <asm/memory.h> 19 20#define PCI_IOBASE PKUNITY_PCILIO_BASE 21#include <asm-generic/io.h> 22 23/* 24 * __uc32_ioremap and __uc32_ioremap_cached takes CPU physical address. 25 */ 26extern void __iomem *__uc32_ioremap(unsigned long, size_t); 27extern void __iomem *__uc32_ioremap_cached(unsigned long, size_t); 28extern void __uc32_iounmap(volatile void __iomem *addr); 29 30/* 31 * ioremap and friends. 32 * 33 * ioremap takes a PCI memory address, as specified in 34 * Documentation/io-mapping.txt. 35 * 36 */ 37#define ioremap(cookie, size) __uc32_ioremap(cookie, size) 38#define ioremap_cached(cookie, size) __uc32_ioremap_cached(cookie, size) 39#define ioremap_nocache(cookie, size) __uc32_ioremap(cookie, size) 40#define iounmap(cookie) __uc32_iounmap(cookie) 41 42#define HAVE_ARCH_PIO_SIZE 43#define PIO_OFFSET (unsigned int)(PCI_IOBASE) 44#define PIO_MASK (unsigned int)(IO_SPACE_LIMIT) 45#define PIO_RESERVED (PIO_OFFSET + PIO_MASK + 1) 46 47#endif /* __KERNEL__ */ 48#endif /* __UNICORE_IO_H__ */