Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch fix LCD byte-order setting.
details: https://anonhg.NetBSD.org/src/rev/b4e34233e4c6
branches: trunk
changeset: 522452:b4e34233e4c6
user: uch <uch%NetBSD.org@localhost>
date: Tue Feb 19 14:21:47 2002 +0000
description:
fix LCD byte-order setting.
diffstat:
sys/arch/hpcmips/dev/plumvideo.c | 5 +++--
sys/arch/hpcmips/tx/tx3912video.c | 3 ++-
sys/arch/hpcsh/dev/hd64461/hd64461video.c | 5 ++++-
3 files changed, 9 insertions(+), 4 deletions(-)
diffs (76 lines):
diff -r 2aafa744d853 -r b4e34233e4c6 sys/arch/hpcmips/dev/plumvideo.c
--- a/sys/arch/hpcmips/dev/plumvideo.c Tue Feb 19 14:13:01 2002 +0000
+++ b/sys/arch/hpcmips/dev/plumvideo.c Tue Feb 19 14:21:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: plumvideo.c,v 1.23 2002/01/29 18:53:11 uch Exp $ */
+/* $NetBSD: plumvideo.c,v 1.24 2002/02/19 14:21:47 uch Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -260,7 +260,7 @@
case 16:
fb->hf_class = HPCFB_CLASS_RGBCOLOR;
fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
- fb->hf_order_flags = HPCFB_REVORDER_BYTE;
+ fb->hf_order_flags = HPCFB_REVORDER_WORD;
fb->hf_pack_width = 16;
fb->hf_pixels_per_pack = 1;
fb->hf_pixel_width = 16;
@@ -280,6 +280,7 @@
break;
case 8:
+ fb->hf_order_flags = HPCFB_REVORDER_BYTE | HPCFB_REVORDER_WORD;
fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
fb->hf_pack_width = 8;
diff -r 2aafa744d853 -r b4e34233e4c6 sys/arch/hpcmips/tx/tx3912video.c
--- a/sys/arch/hpcmips/tx/tx3912video.c Tue Feb 19 14:13:01 2002 +0000
+++ b/sys/arch/hpcmips/tx/tx3912video.c Tue Feb 19 14:21:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx3912video.c,v 1.24 2002/01/29 18:53:14 uch Exp $ */
+/* $NetBSD: tx3912video.c,v 1.25 2002/02/19 14:21:48 uch Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -279,6 +279,7 @@
fb->hf_u.hf_gray.hf_flags = 0;
break;
case 8:
+ fb->hf_order_flags = HPCFB_REVORDER_BYTE | HPCFB_REVORDER_WORD;
fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
fb->hf_pack_width = 8;
diff -r 2aafa744d853 -r b4e34233e4c6 sys/arch/hpcsh/dev/hd64461/hd64461video.c
--- a/sys/arch/hpcsh/dev/hd64461/hd64461video.c Tue Feb 19 14:13:01 2002 +0000
+++ b/sys/arch/hpcsh/dev/hd64461/hd64461video.c Tue Feb 19 14:21:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hd64461video.c,v 1.7 2002/01/29 18:53:24 uch Exp $ */
+/* $NetBSD: hd64461video.c,v 1.8 2002/02/19 14:21:48 uch Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -321,6 +321,7 @@
fb->hf_access_flags |= HPCFB_ACCESS_BYTE;
fb->hf_access_flags |= HPCFB_ACCESS_WORD;
+ fb->hf_access_flags |= HPCFB_ACCESS_DWORD;
if (vc->vc_reverse)
fb->hf_access_flags |= HPCFB_ACCESS_REVERSE;
@@ -329,6 +330,7 @@
panic("%s: not supported color depth\n", __FUNCTION__);
/* NOTREACHED */
case 16:
+ fb->hf_order_flags = HPCFB_REVORDER_WORD;
fb->hf_class = HPCFB_CLASS_RGBCOLOR;
fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
fb->hf_pack_width = 16;
@@ -350,6 +352,7 @@
break;
case 8:
+ fb->hf_order_flags = HPCFB_REVORDER_BYTE | HPCFB_REVORDER_WORD;
fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
fb->hf_pack_width = 8;
Home |
Main Index |
Thread Index |
Old Index