Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/dev Get LCD size from PLUM2 Display control...
details: https://anonhg.NetBSD.org/src/rev/bf1deb9069a1
branches: trunk
changeset: 486407:bf1deb9069a1
user: uch <uch%NetBSD.org@localhost>
date: Sun May 21 11:22:25 2000 +0000
description:
Get LCD size from PLUM2 Display control register.
diffstat:
sys/arch/hpcmips/dev/plumvideo.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diffs (62 lines):
diff -r 15b60acfce8a -r bf1deb9069a1 sys/arch/hpcmips/dev/plumvideo.c
--- a/sys/arch/hpcmips/dev/plumvideo.c Sun May 21 10:03:55 2000 +0000
+++ b/sys/arch/hpcmips/dev/plumvideo.c Sun May 21 11:22:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: plumvideo.c,v 1.9 2000/05/09 10:15:17 uch Exp $ */
+/* $NetBSD: plumvideo.c,v 1.10 2000/05/21 11:22:25 uch Exp $ */
/*-
* Copyright (c) 1999, 2000 UCHIYAMA Yasushi. All rights reserved.
@@ -252,7 +252,6 @@
fb->hf_access_flags |= HPCFB_ACCESS_WORD;
fb->hf_access_flags |= HPCFB_ACCESS_DWORD;
- fb->hf_access_flags |= HPCFB_ACCESS_REVERSE;
switch (sc->sc_depth) {
default:
panic("plumvideo_hpcfbinit: not supported color depth\n");
@@ -336,8 +335,15 @@
break;
}
sc->sc_depth = bpp;
- sc->sc_width = bootinfo->fb_width;
- sc->sc_height = bootinfo->fb_height;
+
+ /*
+ * Get display size from WindowsCE setted.
+ */
+ sc->sc_width = bootinfo->fb_width =
+ plum_conf_read(regt, regh, PLUM_VIDEO_PLHPX_REG) + 1;
+ sc->sc_height = bootinfo->fb_height =
+ plum_conf_read(regt, regh, PLUM_VIDEO_PLVT_REG) -
+ plum_conf_read(regt, regh, PLUM_VIDEO_PLVDS_REG);
/*
* set line byte length to bootinfo and LCD controller.
@@ -558,7 +564,7 @@
bus_space_handle_t));
static void __plumvideo_clut_get(iot, ioh)
bus_space_tag_t iot;
- bus_space_handle_t ioh;
+ bus_space_handle_t ioh;
{
int i;
@@ -584,7 +590,7 @@
bus_space_handle_t));
static void __plumvideo_clut_set(iot, ioh)
bus_space_tag_t iot;
- bus_space_handle_t ioh;
+ bus_space_handle_t ioh;
{
int i;
@@ -608,7 +614,7 @@
bus_space_handle_t));
static void __plumvideo_clut_default(iot, ioh)
bus_space_tag_t iot;
- bus_space_handle_t ioh;
+ bus_space_handle_t ioh;
{
const u_int8_t compo6[6] = { 0, 51, 102, 153, 204, 255 };
const u_int32_t ansi_color[16] = {
Home |
Main Index |
Thread Index |
Old Index