io.h (7bcc1ec07748cae3552dc9b46701c117926c8923) | io.h (2475ff9d2c6ea3bbfed55c4635426c371f9ad327) |
---|---|
1/* 2 * Based on arch/arm/include/asm/io.h 3 * 4 * Copyright (C) 1996-2000 Russell King 5 * Copyright (C) 2012 ARM Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 216 unchanged lines hidden (view full) --- 225#define PROT_DEVICE_nGnRE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_ATTRINDX(MT_DEVICE_nGnRE)) 226#define PROT_NORMAL_NC (PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL_NC)) 227 228#define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) 229#define ioremap_nocache(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) 230#define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC)) 231#define iounmap __iounmap 232 | 1/* 2 * Based on arch/arm/include/asm/io.h 3 * 4 * Copyright (C) 1996-2000 Russell King 5 * Copyright (C) 2012 ARM Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 216 unchanged lines hidden (view full) --- 225#define PROT_DEVICE_nGnRE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_ATTRINDX(MT_DEVICE_nGnRE)) 226#define PROT_NORMAL_NC (PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL_NC)) 227 228#define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) 229#define ioremap_nocache(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) 230#define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC)) 231#define iounmap __iounmap 232 |
233#define PROT_SECT_DEFAULT (PMD_TYPE_SECT | PMD_SECT_AF) 234#define PROT_SECT_DEVICE_nGnRE (PROT_SECT_DEFAULT | PTE_PXN | PTE_UXN | PMD_ATTRINDX(MT_DEVICE_nGnRE)) 235 |
|
233#define ARCH_HAS_IOREMAP_WC 234#include <asm-generic/iomap.h> 235 236/* 237 * More restrictive address range checking than the default implementation 238 * (PHYS_OFFSET and PHYS_MASK taken into account). 239 */ 240#define ARCH_HAS_VALID_PHYS_ADDR_RANGE --- 18 unchanged lines hidden --- | 236#define ARCH_HAS_IOREMAP_WC 237#include <asm-generic/iomap.h> 238 239/* 240 * More restrictive address range checking than the default implementation 241 * (PHYS_OFFSET and PHYS_MASK taken into account). 242 */ 243#define ARCH_HAS_VALID_PHYS_ADDR_RANGE --- 18 unchanged lines hidden --- |