fix LCD byte-order setting.

This commit is contained in:
uch 2002-02-19 14:21:47 +00:00
parent 724e595530
commit a3757d3ba3
3 changed files with 9 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;