diff options
author | Liviu Dudau | 2014-09-29 16:29:31 +0200 |
---|---|---|
committer | Bjorn Helgaas | 2014-10-01 01:08:57 +0200 |
commit | d1e6dc91b532d3d3dbbd0fa356b775ca320dc2c2 (patch) | |
tree | 8470f782b1a12d70ccae0ce4ea983e5977a44c50 /arch/arm64/include/asm/pgtable.h | |
parent | PCI: Add pci_remap_iospace() to map bus I/O resources (diff) | |
download | kernel-qcow2-linux-d1e6dc91b532d3d3dbbd0fa356b775ca320dc2c2.tar.gz kernel-qcow2-linux-d1e6dc91b532d3d3dbbd0fa356b775ca320dc2c2.tar.xz kernel-qcow2-linux-d1e6dc91b532d3d3dbbd0fa356b775ca320dc2c2.zip |
arm64: Add architectural support for PCI
Use the generic PCI domain and OF functions to provide support for PCI
on arm64.
[bhelgaas: Change comments to use generic PCI, not just PCIe. Nothing at
this level is PCIe-specific.]
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/pgtable.h')
-rw-r--r-- | arch/arm64/include/asm/pgtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index ffe1ba0506d1..a968523adf56 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -296,6 +296,8 @@ static inline int has_transparent_hugepage(void) __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRnE) | PTE_PXN | PTE_UXN) #define pgprot_writecombine(prot) \ __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC) | PTE_PXN | PTE_UXN) +#define pgprot_device(prot) \ + __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRE) | PTE_PXN | PTE_UXN) #define __HAVE_PHYS_MEM_ACCESS_PROT struct file; extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, |