Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103566641
D8064.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D8064.id.diff
View Options
Index: head/sys/dev/fb/fbd.c
===================================================================
--- head/sys/dev/fb/fbd.c
+++ head/sys/dev/fb/fbd.c
@@ -178,6 +178,8 @@
*paddr = vtophys((uint8_t *)info->fb_vbase + offset);
else
*paddr = info->fb_pbase + offset;
+ if (info->fb_flags & FB_FLAG_MEMATTR)
+ *memattr = info->fb_memattr;
return (0);
}
return (EINVAL);
Index: head/sys/sys/fbio.h
===================================================================
--- head/sys/sys/fbio.h
+++ head/sys/sys/fbio.h
@@ -142,6 +142,8 @@
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];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 2:38 PM (1 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14887365
Default Alt Text
D8064.id.diff (854 B)
Attached To
Mode
D8064: Allow framebuffer driver control memory mapping type for mmap(2) call
Attached
Detach File
Event Timeline
Log In to Comment