io.h (2ddafeab6f159640299d17fb9b73b57f65011d85) | io.h (a6475c132278c1be158a13872c233aeab8a00176) |
---|---|
1/* 2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2007-2009 PetaLogix 4 * Copyright (C) 2006 Atmark Techno, Inc. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. 9 */ 10 11#ifndef _ASM_MICROBLAZE_IO_H 12#define _ASM_MICROBLAZE_IO_H 13 14#include <asm/byteorder.h> 15#include <asm/page.h> 16#include <linux/types.h> 17#include <linux/mm.h> /* Get struct page {...} */ 18#include <asm-generic/iomap.h> 19 | 1/* 2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2007-2009 PetaLogix 4 * Copyright (C) 2006 Atmark Techno, Inc. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. 9 */ 10 11#ifndef _ASM_MICROBLAZE_IO_H 12#define _ASM_MICROBLAZE_IO_H 13 14#include <asm/byteorder.h> 15#include <asm/page.h> 16#include <linux/types.h> 17#include <linux/mm.h> /* Get struct page {...} */ 18#include <asm-generic/iomap.h> 19 |
20#define PCI_DRAM_OFFSET 0 | 20#ifndef CONFIG_PCI 21#define _IO_BASE 0 22#define _ISA_MEM_BASE 0 23#define PCI_DRAM_OFFSET 0 24#else 25#define _IO_BASE isa_io_base 26#define _ISA_MEM_BASE isa_mem_base 27#define PCI_DRAM_OFFSET pci_dram_offset 28#endif |
21 | 29 |
30extern unsigned long isa_io_base; 31extern unsigned long pci_io_base; 32extern unsigned long pci_dram_offset; 33 34extern resource_size_t isa_mem_base; 35 |
|
22#define IO_SPACE_LIMIT (0xFFFFFFFF) 23 24static inline unsigned char __raw_readb(const volatile void __iomem *addr) 25{ 26 return *(volatile unsigned char __force *)addr; 27} 28static inline unsigned short __raw_readw(const volatile void __iomem *addr) 29{ --- 206 unchanged lines hidden --- | 36#define IO_SPACE_LIMIT (0xFFFFFFFF) 37 38static inline unsigned char __raw_readb(const volatile void __iomem *addr) 39{ 40 return *(volatile unsigned char __force *)addr; 41} 42static inline unsigned short __raw_readw(const volatile void __iomem *addr) 43{ --- 206 unchanged lines hidden --- |