vt_fb.c (271769) | vt_fb.c (282749) |
---|---|
1/*- 2 * Copyright (c) 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Aleksandr Rybalko under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Aleksandr Rybalko under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: stable/10/sys/dev/vt/hw/fb/vt_fb.c 271769 2014-09-18 14:38:18Z dumbbell $ | 29 * $FreeBSD: stable/10/sys/dev/vt/hw/fb/vt_fb.c 282749 2015-05-11 08:00:16Z avg $ |
30 */ 31 32#include <sys/cdefs.h> | 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: stable/10/sys/dev/vt/hw/fb/vt_fb.c 271769 2014-09-18 14:38:18Z dumbbell $"); | 33__FBSDID("$FreeBSD: stable/10/sys/dev/vt/hw/fb/vt_fb.c 282749 2015-05-11 08:00:16Z avg $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/queue.h> 39#include <sys/fbio.h> 40#include <dev/vt/vt.h> 41#include <dev/vt/hw/fb/vt_fb.h> --- 6 unchanged lines hidden (view full) --- 48 .vd_bitblt_text = vt_fb_bitblt_text, 49 .vd_bitblt_bmp = vt_fb_bitblt_bitmap, 50 .vd_drawrect = vt_fb_drawrect, 51 .vd_setpixel = vt_fb_setpixel, 52 .vd_postswitch = vt_fb_postswitch, 53 .vd_priority = VD_PRIORITY_GENERIC+10, 54 .vd_fb_ioctl = vt_fb_ioctl, 55 .vd_fb_mmap = vt_fb_mmap, | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/malloc.h> 38#include <sys/queue.h> 39#include <sys/fbio.h> 40#include <dev/vt/vt.h> 41#include <dev/vt/hw/fb/vt_fb.h> --- 6 unchanged lines hidden (view full) --- 48 .vd_bitblt_text = vt_fb_bitblt_text, 49 .vd_bitblt_bmp = vt_fb_bitblt_bitmap, 50 .vd_drawrect = vt_fb_drawrect, 51 .vd_setpixel = vt_fb_setpixel, 52 .vd_postswitch = vt_fb_postswitch, 53 .vd_priority = VD_PRIORITY_GENERIC+10, 54 .vd_fb_ioctl = vt_fb_ioctl, 55 .vd_fb_mmap = vt_fb_mmap, |
56 .vd_suspend = vt_fb_suspend, 57 .vd_resume = vt_fb_resume, |
|
56}; 57 58VT_DRIVER_DECLARE(vt_fb, vt_fb_driver); 59 60static void 61vt_fb_mem_wr1(struct fb_info *sc, uint32_t o, uint8_t v) 62{ 63 --- 372 unchanged lines hidden (view full) --- 436{ 437 438 vt_allocate(&vt_fb_driver, info); 439 440 return (0); 441} 442 443void | 58}; 59 60VT_DRIVER_DECLARE(vt_fb, vt_fb_driver); 61 62static void 63vt_fb_mem_wr1(struct fb_info *sc, uint32_t o, uint8_t v) 64{ 65 --- 372 unchanged lines hidden (view full) --- 438{ 439 440 vt_allocate(&vt_fb_driver, info); 441 442 return (0); 443} 444 445void |
444vt_fb_resume(void) | 446vt_fb_suspend(struct vt_device *vd) |
445{ 446 | 447{ 448 |
447 vt_resume(); | 449 vt_suspend(vd); |
448} 449 450void | 450} 451 452void |
451vt_fb_suspend(void) | 453vt_fb_resume(struct vt_device *vd) |
452{ 453 | 454{ 455 |
454 vt_suspend(); | 456 vt_resume(vd); |
455} | 457} |