Thu Feb 29 22:01:58 2024 UTC (94d)
s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message.


(andvar)
diff -r1.65 -r1.66 src/sys/dev/hpc/hpcfb.c

cvs diff -r1.65 -r1.66 src/sys/dev/hpc/hpcfb.c (expand / switch to unified diff)

--- src/sys/dev/hpc/hpcfb.c 2021/12/19 21:15:28 1.65
+++ src/sys/dev/hpc/hpcfb.c 2024/02/29 22:01:57 1.66
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: hpcfb.c,v 1.65 2021/12/19 21:15:28 andvar Exp $ */ 1/* $NetBSD: hpcfb.c,v 1.66 2024/02/29 22:01:57 andvar Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1999 4 * Copyright (c) 1999
5 * Shin Takemura and PocketBSD Project. All rights reserved. 5 * Shin Takemura and PocketBSD Project. All rights reserved.
6 * Copyright (c) 2000,2001 6 * Copyright (c) 2000,2001
7 * SATO Kazumi. All rights reserved. 7 * SATO Kazumi. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -33,27 +33,27 @@ @@ -33,27 +33,27 @@
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE. 35 * SUCH DAMAGE.
36 * 36 *
37 */ 37 */
38 38
39/* 39/*
40 * jump scroll, scroll thread, multiscreen, virtual text vram 40 * jump scroll, scroll thread, multiscreen, virtual text vram
41 * and hpcfb_emulops functions 41 * and hpcfb_emulops functions
42 * written by SATO Kazumi. 42 * written by SATO Kazumi.
43 */ 43 */
44 44
45#include <sys/cdefs.h> 45#include <sys/cdefs.h>
46__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.65 2021/12/19 21:15:28 andvar Exp $"); 46__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.66 2024/02/29 22:01:57 andvar Exp $");
47 47
48#ifdef _KERNEL_OPT 48#ifdef _KERNEL_OPT
49#include "opt_hpcfb.h" 49#include "opt_hpcfb.h"
50#endif 50#endif
51 51
52#include <sys/param.h> 52#include <sys/param.h>
53#include <sys/systm.h> 53#include <sys/systm.h>
54#include <sys/kernel.h> 54#include <sys/kernel.h>
55#include <sys/signalvar.h> 55#include <sys/signalvar.h>
56#include <sys/proc.h> 56#include <sys/proc.h>
57#include <sys/kthread.h> 57#include <sys/kthread.h>
58#include <sys/device.h> 58#include <sys/device.h>
59#include <sys/conf.h> 59#include <sys/conf.h>
@@ -685,27 +685,27 @@ hpcfb_resume(device_t self, const pmf_qu @@ -685,27 +685,27 @@ hpcfb_resume(device_t self, const pmf_qu
685{ 685{
686 struct hpcfb_softc *sc = device_private(self); 686 struct hpcfb_softc *sc = device_private(self);
687 687
688 hpcfb_power(PWR_SOFTRESUME, sc); 688 hpcfb_power(PWR_SOFTRESUME, sc);
689 return true; 689 return true;
690} 690}
691 691
692void 692void
693hpcfb_refresh_screen(struct hpcfb_softc *sc) 693hpcfb_refresh_screen(struct hpcfb_softc *sc)
694{ 694{
695 struct hpcfb_devconfig *dc = sc->sc_dc; 695 struct hpcfb_devconfig *dc = sc->sc_dc;
696 int x, y; 696 int x, y;
697 697
698 DPRINTF(("hpcfb_refres_screen()\n")); 698 DPRINTF(("hpcfb_refresh_screen()\n"));
699 if (dc == NULL) 699 if (dc == NULL)
700 return; 700 return;
701 701
702#ifdef HPCFB_JUMP 702#ifdef HPCFB_JUMP
703 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { 703 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) {
704 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; 704 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING;
705 dc->dc_state &= ~HPCFB_DC_UPDATE; 705 dc->dc_state &= ~HPCFB_DC_UPDATE;
706 callout_stop(&dc->dc_scroll_ch); 706 callout_stop(&dc->dc_scroll_ch);
707 } 707 }
708#endif /* HPCFB_JUMP */ 708#endif /* HPCFB_JUMP */
709 /* 709 /*
710 * refresh screen 710 * refresh screen
711 */ 711 */