Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106137110
D789.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D789.diff
View Options
Index: sys/dev/vt/hw/efifb/efifb.c
===================================================================
--- sys/dev/vt/hw/efifb/efifb.c
+++ sys/dev/vt/hw/efifb/efifb.c
@@ -62,6 +62,8 @@
.vd_blank = vt_fb_blank,
.vd_bitblt_text = vt_fb_bitblt_text,
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
+ .vd_drawrect = vt_fb_drawrect,
+ .vd_setpixel = vt_fb_setpixel,
.vd_fb_ioctl = vt_fb_ioctl,
.vd_fb_mmap = vt_fb_mmap,
/* Better than VGA, but still generic driver. */
Index: sys/dev/vt/hw/fb/vt_early_fb.c
===================================================================
--- sys/dev/vt/hw/fb/vt_early_fb.c
+++ sys/dev/vt/hw/fb/vt_early_fb.c
@@ -61,6 +61,8 @@
.vd_blank = vt_fb_blank,
.vd_bitblt_text = vt_fb_bitblt_text,
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
+ .vd_drawrect = vt_fb_drawrect,
+ .vd_setpixel = vt_fb_setpixel,
.vd_priority = VD_PRIORITY_GENERIC,
};
Index: sys/dev/vt/hw/fb/vt_fb.h
===================================================================
--- sys/dev/vt/hw/fb/vt_fb.h
+++ sys/dev/vt/hw/fb/vt_fb.h
@@ -40,6 +40,8 @@
vd_blank_t vt_fb_blank;
vd_bitblt_text_t vt_fb_bitblt_text;
vd_bitblt_bmp_t vt_fb_bitblt_bitmap;
+vd_drawrect_t vt_fb_drawrect;
+vd_setpixel_t vt_fb_setpixel;
vd_postswitch_t vt_fb_postswitch;
vd_fb_ioctl_t vt_fb_ioctl;
vd_fb_mmap_t vt_fb_mmap;
Index: sys/dev/vt/hw/fb/vt_fb.c
===================================================================
--- sys/dev/vt/hw/fb/vt_fb.c
+++ sys/dev/vt/hw/fb/vt_fb.c
@@ -41,9 +41,6 @@
#include <dev/vt/hw/fb/vt_fb.h>
#include <dev/vt/colors/vt_termcolors.h>
-static vd_drawrect_t vt_fb_drawrect;
-static vd_setpixel_t vt_fb_setpixel;
-
static struct vt_driver vt_fb_driver = {
.vd_name = "fb",
.vd_init = vt_fb_init,
@@ -146,7 +143,7 @@
return (EINVAL);
}
-static void
+void
vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
{
struct fb_info *info;
@@ -181,7 +178,7 @@
}
-static void
+void
vt_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill,
term_color_t color)
{
Index: sys/powerpc/ps3/ps3_syscons.c
===================================================================
--- sys/powerpc/ps3/ps3_syscons.c
+++ sys/powerpc/ps3/ps3_syscons.c
@@ -78,6 +78,8 @@
.vd_blank = vt_fb_blank,
.vd_bitblt_text = vt_fb_bitblt_text,
.vd_bitblt_bmp = vt_fb_bitblt_bitmap,
+ .vd_drawrect = vt_fb_drawrect,
+ .vd_setpixel = vt_fb_setpixel,
.vd_fb_ioctl = vt_fb_ioctl,
.vd_fb_mmap = vt_fb_mmap,
/* Better than VGA, but still generic driver. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:29 AM (12 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15609482
Default Alt Text
D789.diff (2 KB)
Attached To
Mode
D789: vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative
Attached
Detach File
Event Timeline
Log In to Comment