Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus Make it compile with AUDIODEBUG
details: https://anonhg.NetBSD.org/src/rev/6073de8dc9d5
branches: trunk
changeset: 353376:6073de8dc9d5
user: martin <martin%NetBSD.org@localhost>
date: Tue May 02 08:11:16 2017 +0000
description:
Make it compile with AUDIODEBUG
diffstat:
sys/dev/sbus/cs4231_sbus.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diffs (68 lines):
diff -r ffbbed90a6b9 -r 6073de8dc9d5 sys/dev/sbus/cs4231_sbus.c
--- a/sys/dev/sbus/cs4231_sbus.c Tue May 02 08:07:37 2017 +0000
+++ b/sys/dev/sbus/cs4231_sbus.c Tue May 02 08:11:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4231_sbus.c,v 1.49 2011/11/23 23:07:36 jmcneill Exp $ */
+/* $NetBSD: cs4231_sbus.c,v 1.50 2017/05/02 08:11:16 martin Exp $ */
/*-
* Copyright (c) 1998, 1999, 2002, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4231_sbus.c,v 1.49 2011/11/23 23:07:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4231_sbus.c,v 1.50 2017/05/02 08:11:16 martin Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -129,7 +129,7 @@
#ifdef AUDIO_DEBUG
-static void cs4231_sbus_regdump(char *, struct cs4231_sbus_softc *);
+static void cs4231_sbus_regdump(const char *, struct cs4231_sbus_softc *);
#endif
static int cs4231_sbus_intr(void *);
@@ -200,30 +200,30 @@
#ifdef AUDIO_DEBUG
static void
-cs4231_sbus_regdump(char *label, struct cs4231_sbus_softc *sc)
+cs4231_sbus_regdump(const char *label, struct cs4231_sbus_softc *sc)
{
char bits[128];
printf("cs4231regdump(%s): regs:", label);
printf("dmapva: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_PVA));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_PVA));
printf("dmapc: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_PC));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_PC));
printf("dmapnva: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_PNVA));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_PNVA));
printf("dmapnc: 0x%x\n",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_PNC));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_PNC));
printf("dmacva: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_CVA));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_CVA));
printf("dmacc: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_CC));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_CC));
printf("dmacnva: 0x%x; ",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_CNVA));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_CNVA));
printf("dmacnc: 0x%x\n",
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_CNC));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_CNC));
snprintb(bits, sizeof(bits), APC_BITS,
- bus_space_read_4(sc->sc_bh, sc->sc_bh, APC_DMA_CSR));
+ bus_space_read_4(sc->sc_bt, sc->sc_bh, APC_DMA_CSR));
printf("apc_dmacsr=%s\n", bits);
ad1848_dump_regs(&sc->sc_cs4231.sc_ad1848);
Home |
Main Index |
Thread Index |
Old Index