summaryrefslogtreecommitdiffstats
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2016-10-19 01:35:21 +0000
committergonzo <gonzo@FreeBSD.org>2016-10-19 01:35:21 +0000
commit00b0cce8791f94f22678354b978dbceaae1db16a (patch)
tree19d4d802409bd3f69f77b89204d6cc5471e076a4 /sys/sys/fbio.h
parent61892a99ab35f2333d922284c66684570d417a75 (diff)
downloadFreeBSD-src-00b0cce8791f94f22678354b978dbceaae1db16a.zip
FreeBSD-src-00b0cce8791f94f22678354b978dbceaae1db16a.tar.gz
MFC r306555:
Provide way for framebuffer driver to request mmap(2) mapping type On ARM if memattr is not overriden mmap(2) maps framebuffer memory as WBWA which means part of changes to content in userland end up in cache and appear on screen gradually as cache lines are evicted. This change adds configurable memattr that hardware fb implementation can set to get the memory mapping type it requires: - Add new flag FB_FLAG_MEMATTR that indicates that framebuffer driver overrides default memattr - Add new field fb_memattr to struct fb_info to specify requested memattr Reviewed by: ray Differential Revision: https://reviews.freebsd.org/D8064
Diffstat (limited to 'sys/sys/fbio.h')
-rw-r--r--sys/sys/fbio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 17cd891..b077906 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -142,6 +142,8 @@ struct fb_info {
uint32_t fb_flags;
#define FB_FLAG_NOMMAP 1 /* mmap unsupported. */
#define FB_FLAG_NOWRITE 2 /* disable writes for the time being */
+#define FB_FLAG_MEMATTR 4 /* override memattr for mmap */
+ vm_memattr_t fb_memattr;
int fb_stride;
int fb_bpp; /* bits per pixel */
uint32_t fb_cmap[16];
OpenPOWER on IntegriCloud