From a3757d3ba37fbaa272b4bf1f7db8146eebee8a65 Mon Sep 17 00:00:00 2001 From: uch Date: Tue, 19 Feb 2002 14:21:47 +0000 Subject: [PATCH] fix LCD byte-order setting. --- 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(-) diff --git a/sys/arch/hpcmips/dev/plumvideo.c b/sys/arch/hpcmips/dev/plumvideo.c index 01c81f0ba44c..d613ab8c2f04 100644 --- a/sys/arch/hpcmips/dev/plumvideo.c +++ b/sys/arch/hpcmips/dev/plumvideo.c @@ -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 @@ plumvideo_hpcfbinit(struct plumvideo_softc *sc, int reverse_flag) 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 @@ plumvideo_hpcfbinit(struct plumvideo_softc *sc, int reverse_flag) 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 --git a/sys/arch/hpcmips/tx/tx3912video.c b/sys/arch/hpcmips/tx/tx3912video.c index 4bad36300e8a..645f76251f28 100644 --- a/sys/arch/hpcmips/tx/tx3912video.c +++ b/sys/arch/hpcmips/tx/tx3912video.c @@ -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 @@ tx3912video_hpcfbinit(sc) 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 --git a/sys/arch/hpcsh/dev/hd64461/hd64461video.c b/sys/arch/hpcsh/dev/hd64461/hd64461video.c index a2a4c8710c59..a6e604a082fb 100644 --- a/sys/arch/hpcsh/dev/hd64461/hd64461video.c +++ b/sys/arch/hpcsh/dev/hd64461/hd64461video.c @@ -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 @@ hd64461video_setup_hpcfbif(struct hd64461video_chip *hvc) 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 @@ hd64461video_setup_hpcfbif(struct hd64461video_chip *hvc) 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 @@ hd64461video_setup_hpcfbif(struct hd64461video_chip *hvc) 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;