Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cobalt/dev hd44780 layer for register reads/writes ...



details:   https://anonhg.NetBSD.org/src/rev/82afdbbe0f89
branches:  trunk
changeset: 583592:82afdbbe0f89
user:      joff <joff%NetBSD.org@localhost>
date:      Sun Aug 14 02:59:52 2005 +0000

description:
hd44780 layer for register reads/writes now takes another argument.

diffstat:

 sys/arch/cobalt/dev/panel.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (62 lines):

diff -r 7522951c9b7d -r 82afdbbe0f89 sys/arch/cobalt/dev/panel.c
--- a/sys/arch/cobalt/dev/panel.c       Sun Aug 14 02:58:40 2005 +0000
+++ b/sys/arch/cobalt/dev/panel.c       Sun Aug 14 02:59:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: panel.c,v 1.6 2005/02/04 05:59:27 joff Exp $ */
+/* $NetBSD: panel.c,v 1.7 2005/08/14 02:59:52 joff Exp $ */
 
 /*
  * Copyright (c) 2002 Dennis I. Chernoivanov
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: panel.c,v 1.6 2005/02/04 05:59:27 joff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: panel.c,v 1.7 2005/08/14 02:59:52 joff Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -69,8 +69,8 @@
 static void    panel_soft(void *);
 
 static u_int8_t        panel_cbt_kprread(bus_space_tag_t, bus_space_handle_t);
-static u_int8_t        panel_cbt_hdreadreg(struct hd44780_chip *, u_int32_t);
-static void    panel_cbt_hdwritereg(struct hd44780_chip *, u_int32_t, u_int8_t);
+static u_int8_t        panel_cbt_hdreadreg(struct hd44780_chip *, u_int32_t, u_int32_t);
+static void    panel_cbt_hdwritereg(struct hd44780_chip *, u_int32_t, u_int32_t, u_int8_t);
 
 dev_type_open(panelopen);
 dev_type_close(panelclose);
@@ -157,9 +157,9 @@
 
 
 static void
-panel_cbt_hdwritereg(hd, rs, dat)
+panel_cbt_hdwritereg(hd, en, rs, dat)
        struct hd44780_chip *hd;
-       u_int32_t rs;
+       u_int32_t en, rs;
        u_int8_t dat;
 {
        if (rs) 
@@ -170,9 +170,9 @@
 }
 
 static u_int8_t
-panel_cbt_hdreadreg(hd, rs)
+panel_cbt_hdreadreg(hd, en, rs)
        struct hd44780_chip *hd;
-       u_int32_t rs;
+       u_int32_t en, rs;
 {
        delay(HD_TIMEOUT_NORMAL);
        if (rs)
@@ -239,7 +239,7 @@
        if ((error = uiomove((void*)io.buf, io.len, uio)) != 0)
                return error;
 
-       hd44780_ddram_redraw(&sc->sc_lcd, &io);
+       hd44780_ddram_redraw(&sc->sc_lcd, 0, &io);
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index