make this compile under current

This commit is contained in:
matt 1999-11-12 04:42:19 +00:00
parent 3744fe193f
commit 8ffb2596c7

View File

@ -1,4 +1,4 @@
/* $NetBSD: p9100.c,v 1.6 1999/08/26 22:53:42 thorpej Exp $ */
/* $NetBSD: p9100.c,v 1.7 1999/11/12 04:42:19 matt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -144,7 +144,9 @@ static void p9100_set_video(struct p9100_softc *, int);
static int p9100_get_video(struct p9100_softc *);
static uint32_t p9100_ctl_read_4(struct p9100_softc *, bus_size_t);
static void p9100_ctl_write_4(struct p9100_softc *, bus_size_t, uint32_t);
#if 0
static uint8_t p9100_ramdac_read(struct p9100_softc *, bus_size_t);
#endif
static void p9100_ramdac_write(struct p9100_softc *, bus_size_t, uint8_t);
/*
@ -403,12 +405,14 @@ p9100_ctl_write_4(struct p9100_softc *sc, bus_size_t off, uint32_t v)
bus_space_write_4(sc->sc_bustag, sc->sc_ctl_memh, off, v);
}
#if 0
static uint8_t
p9100_ramdac_read(struct p9100_softc *sc, bus_size_t off)
{
sc->sc_junk = p9100_ctl_read_4(sc, PWRUP_CNFG);
return p9100_ctl_read_4(sc, off) >> 16;
}
#endif
static void
p9100_ramdac_write(struct p9100_softc *sc, bus_size_t off, uint8_t v)