Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci more NBIO > 0
details: https://anonhg.NetBSD.org/src/rev/8e99b3a18afd
branches: trunk
changeset: 345989:8e99b3a18afd
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jun 19 21:12:44 2016 +0000
description:
more NBIO > 0
(not sure why test-compiling yesterday didn't expose these, probably
improper cflags)
diffstat:
sys/dev/pci/arcmsr.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r 81b5dfbb9b73 -r 8e99b3a18afd sys/dev/pci/arcmsr.c
--- a/sys/dev/pci/arcmsr.c Sun Jun 19 10:49:34 2016 +0000
+++ b/sys/dev/pci/arcmsr.c Sun Jun 19 21:12:44 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arcmsr.c,v 1.35 2016/06/19 06:58:17 dholland Exp $ */
+/* $NetBSD: arcmsr.c,v 1.36 2016/06/19 21:12:44 dholland Exp $ */
/* $OpenBSD: arc.c,v 1.68 2007/10/27 03:28:27 dlg Exp $ */
/*
@@ -21,7 +21,7 @@
#include "bio.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.35 2016/06/19 06:58:17 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.36 2016/06/19 21:12:44 dholland Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -72,7 +72,9 @@
/*
* the fw header must always equal this.
*/
+#if NBIO > 0
static struct arc_fw_hdr arc_fw_hdr = { 0x5e, 0x01, 0x61 };
+#endif
/*
* autoconf(9) glue.
@@ -122,8 +124,10 @@
static void arc_read_region(struct arc_softc *, bus_size_t, void *,
size_t);
static void arc_write(struct arc_softc *, bus_size_t, uint32_t);
+#if NBIO > 0
static void arc_write_region(struct arc_softc *, bus_size_t, void *,
size_t);
+#endif
static int arc_wait_eq(struct arc_softc *, bus_size_t, uint32_t,
uint32_t);
#ifdef unused
@@ -1956,6 +1960,7 @@
BUS_SPACE_BARRIER_WRITE);
}
+#if NBIO > 0
static void
arc_write_region(struct arc_softc *sc, bus_size_t r, void *buf, size_t len)
{
@@ -1964,6 +1969,7 @@
bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, len,
BUS_SPACE_BARRIER_WRITE);
}
+#endif /* NBIO > 0 */
static int
arc_wait_eq(struct arc_softc *sc, bus_size_t r, uint32_t mask,
Home |
Main Index |
Thread Index |
Old Index