summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-08-26 17:39:54 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-08-26 17:39:54 +0000
commit86e3dd7fb77284756741bc30728d1865c523519d (patch)
tree742ecc0276ccd4ebbb51fd81a1da30604c4737b7
parent30a1c55482e599e52202001516a093e75ef75499 (diff)
Doh, compile before commit.
-rw-r--r--sys/arch/vax/vsa/lcspx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/vax/vsa/lcspx.c b/sys/arch/vax/vsa/lcspx.c
index 94f008662ad..fd6b07ec1b1 100644
--- a/sys/arch/vax/vsa/lcspx.c
+++ b/sys/arch/vax/vsa/lcspx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcspx.c,v 1.8 2006/08/26 17:27:02 miod Exp $ */
+/* $OpenBSD: lcspx.c,v 1.9 2006/08/26 17:39:53 miod Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -148,6 +148,7 @@ const struct wsdisplay_accessops lcspx_accessops = {
int lcspx_getcmap(struct lcspx_screen *, struct wsdisplay_cmap *);
void lcspx_loadcmap(struct lcspx_screen *, int, int);
int lcspx_putcmap(struct lcspx_screen *, struct wsdisplay_cmap *);
+static __inline__
void lcspx_ramdac_wraddr(struct lcspx_screen *, u_int);
void lcspx_resetcmap(struct lcspx_screen *);
int lcspx_setup_screen(struct lcspx_screen *);
@@ -279,7 +280,7 @@ lcspx_setup_screen(struct lcspx_screen *ss)
*/
lcspx_reg_write(ss, 0x1170, 0xffffffff);
lcspx_reg_write(ss, 0x1174, 0xffffffff);
- lcspx_ramdac_wraddr(0x0204); /* plane mask */
+ lcspx_ramdac_wraddr(ss, 0x0204); /* plane mask */
*(ss->ss_ramdac[BT463_REG_IREG_DATA]) = 0xff;
/*
@@ -473,7 +474,7 @@ lcspx_loadcmap(struct lcspx_screen *ss, int from, int count)
* Reprogram the index every iteration, because the RAMDAC
* may not be in autoincrement mode. XXX fix this
*/
- lcspx_ramdac_wraddr(i);
+ lcspx_ramdac_wraddr(ss, i);
*(ss->ss_ramdac[BT463_REG_CMAP_DATA]) = *cmap++;
*(ss->ss_ramdac[BT463_REG_CMAP_DATA]) = *cmap++;
*(ss->ss_ramdac[BT463_REG_CMAP_DATA]) = *cmap++;