diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2021-04-10 07:59:29 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2021-04-12 06:15:31 +0000 |
commit | 5d2d599d3f3494d813e51e1bcd1c9693eb9c098b (patch) | |
tree | cfdf3f1b3a9be4032f46f928ab83736b60b2af8e /sys/mips | |
parent | bf5057691bb0d1160d729772cdb4c449e366f5b4 (diff) | |
download | src-5d2d599d3f3494d813e51e1bcd1c9693eb9c098b.tar.gz src-5d2d599d3f3494d813e51e1bcd1c9693eb9c098b.zip |
Create VM_MEMATTR_DEVICE on all architectures
This is intended to be used with memory mapped IO, e.g. from
bus_space_map with no flags, or pmap_mapdev.
Use this new memory type in the map request configured by
resource_init_map_request, and in pciconf.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D29692
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/include/vm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/include/vm.h b/sys/mips/include/vm.h index 06af199db17b..c759d8cfa61e 100644 --- a/sys/mips/include/vm.h +++ b/sys/mips/include/vm.h @@ -38,6 +38,7 @@ #define VM_MEMATTR_UNCACHEABLE ((vm_memattr_t)MIPS_CCA_UNCACHED) #define VM_MEMATTR_WRITE_BACK ((vm_memattr_t)MIPS_CCA_CACHED) #define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK +#define VM_MEMATTR_DEVICE VM_MEMATTR_UNCACHEABLE #ifdef MIPS_CCA_WC #define VM_MEMATTR_WRITE_COMBINING ((vm_memattr_t)MIPS_CCA_WC) #endif |