Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/hw/fb/vt_fb.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | static struct vt_driver vt_fb_driver = { | ||||
.vd_bitblt_text = vt_fb_bitblt_text, | .vd_bitblt_text = vt_fb_bitblt_text, | ||||
.vd_bitblt_bmp = vt_fb_bitblt_bitmap, | .vd_bitblt_bmp = vt_fb_bitblt_bitmap, | ||||
.vd_drawrect = vt_fb_drawrect, | .vd_drawrect = vt_fb_drawrect, | ||||
.vd_setpixel = vt_fb_setpixel, | .vd_setpixel = vt_fb_setpixel, | ||||
.vd_postswitch = vt_fb_postswitch, | .vd_postswitch = vt_fb_postswitch, | ||||
.vd_priority = VD_PRIORITY_GENERIC+10, | .vd_priority = VD_PRIORITY_GENERIC+10, | ||||
.vd_fb_ioctl = vt_fb_ioctl, | .vd_fb_ioctl = vt_fb_ioctl, | ||||
.vd_fb_mmap = vt_fb_mmap, | .vd_fb_mmap = vt_fb_mmap, | ||||
.vd_suspend = vt_fb_suspend, | |||||
.vd_resume = vt_fb_resume, | |||||
}; | }; | ||||
VT_DRIVER_DECLARE(vt_fb, vt_fb_driver); | VT_DRIVER_DECLARE(vt_fb, vt_fb_driver); | ||||
static void | static void | ||||
vt_fb_mem_wr1(struct fb_info *sc, uint32_t o, uint8_t v) | vt_fb_mem_wr1(struct fb_info *sc, uint32_t o, uint8_t v) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
vt_allocate(&vt_fb_driver, info); | vt_allocate(&vt_fb_driver, info); | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
vt_fb_resume(void) | vt_fb_suspend(struct vt_device *vd) | ||||
{ | { | ||||
vt_resume(); | vt_suspend(vd); | ||||
} | } | ||||
void | void | ||||
vt_fb_suspend(void) | vt_fb_resume(struct vt_device *vd) | ||||
{ | { | ||||
vt_suspend(); | vt_resume(vd); | ||||
} | } |