Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons Instead of defining VCONS_DONT_READ as the ra...



details:   https://anonhg.NetBSD.org/src/rev/d217cc33bc92
branches:  trunk
changeset: 949788:d217cc33bc92
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 16 23:19:50 2021 +0000

description:
Instead of defining VCONS_DONT_READ as the raw value of 0x30, instead
define it as (VCONS_NO_COPYCOLS|VCONS_NO_COPYROWS) for clarify. NFC.

diffstat:

 sys/dev/wscons/wsdisplay_vconsvar.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c51951cbde5b -r d217cc33bc92 sys/dev/wscons/wsdisplay_vconsvar.h
--- a/sys/dev/wscons/wsdisplay_vconsvar.h       Sat Jan 16 22:18:14 2021 +0000
+++ b/sys/dev/wscons/wsdisplay_vconsvar.h       Sat Jan 16 23:19:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vconsvar.h,v 1.27 2018/11/30 05:20:34 msaitoh Exp $ */
+/*     $NetBSD: wsdisplay_vconsvar.h,v 1.28 2021/01/16 23:19:50 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -63,7 +63,8 @@
  */
 #define VCONS_NO_COPYCOLS      0x10    /* use putchar() based copycols() */
 #define VCONS_NO_COPYROWS      0x20    /* use putchar() based copyrows() */
-#define VCONS_DONT_READ                0x30    /* avoid framebuffer reads */
+#define VCONS_DONT_READ                (VCONS_NO_COPYCOLS|VCONS_NO_COPYROWS)
+                                       /* avoid framebuffer reads */
 #define VCONS_LOADFONT         0x40    /* driver can load_font() */
        /* status flags used by vcons */
        uint32_t scr_status;



Home | Main Index | Thread Index | Old Index