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

Re: 8bpp console is broken



Takao Shinohara <shin@sm.sony.co.jp> writes:
> 8bppの場合、フォントが正しく展開されないようで、全く読めません。

ITE8181のドライバ(ite8181.c)と、bivideo.cにplumvideo(rev. 1.24)に習って
以下のような変更を加えたら直ったようなのですが、これで修正方法としては正
しいのでしょうか?(特にHPCFB_REVORDER_WORDについてはあやふやです。)

篠原

Index: bivideo.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/hpc/bivideo.c,v
retrieving revision 1.13
diff -u -r1.13 bivideo.c
--- bivideo.c	2002/03/17 19:40:56	1.13
+++ bivideo.c	2002/04/07 06:08:58
@@ -288,6 +288,9 @@
 	case BIFB_D8_00:
 		fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
 		fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
+#if BYTE_ORDER == LITTLE_ENDIAN
+		fb->hf_order_flags = HPCFB_REVORDER_BYTE | HPCFB_REVORDER_WORD;
+#endif
 		fb->hf_pack_width = 8;
 		fb->hf_pixels_per_pack = 1;
 		fb->hf_pixel_width = 8;
Index: ite8181.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/hpcmips/dev/ite8181.c,v
retrieving revision 1.16
diff -u -r1.16 ite8181.c
--- ite8181.c	2002/03/17 19:40:39	1.16
+++ ite8181.c	2002/04/07 06:09:26
@@ -581,6 +581,7 @@
 	case BIFB_D8_00:
 		fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
 		fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
+		fb->hf_order_flags = HPCFB_REVORDER_BYTE | HPCFB_REVORDER_WORD;
 		fb->hf_pack_width = 8;
 		fb->hf_pixels_per_pack = 1;
 		fb->hf_pixel_width = 8;