diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-04-21 10:47:29 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-04-21 20:36:00 +0100 |
commit | b29e9f5e64fb90d2e4be1c7ef8c925b56669c74a (patch) | |
tree | 99331c544296b82abe31c55e6bca1ae37dd142c5 /arch/arm/mm/mm.h | |
parent | 24e6c6996fb6e0e716c1dda1def1bb023a0fe43b (diff) | |
download | linux-b29e9f5e64fb90d2e4be1c7ef8c925b56669c74a.tar.gz linux-b29e9f5e64fb90d2e4be1c7ef8c925b56669c74a.tar.bz2 linux-b29e9f5e64fb90d2e4be1c7ef8c925b56669c74a.zip |
[ARM] mm 5: Use mem_types table in ioremap
We really want to be using the memory type table in ioremap, so we
only have to do the CPU type fixups in one place.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mm.h')
-rw-r--r-- | arch/arm/mm/mm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index a44e30970635..66f8612c5e5b 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -16,6 +16,15 @@ static inline pmd_t *pmd_off_k(unsigned long virt) return pmd_off(pgd_offset_k(virt), virt); } +struct mem_type { + unsigned int prot_pte; + unsigned int prot_l1; + unsigned int prot_sect; + unsigned int domain; +}; + +const struct mem_type *get_mem_type(unsigned int type); + #endif struct map_desc; |