Page MenuHomeFreeBSD

D8064.id.diff
No OneTemporary

D8064.id.diff

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

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)

Event Timeline