Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mca Remove uneeded bus_space_barrier() calls.
details: https://anonhg.NetBSD.org/src/rev/4427a0dc25e8
branches: trunk
changeset: 368448:4427a0dc25e8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jul 12 02:06:07 2022 +0000
description:
Remove uneeded bus_space_barrier() calls.
diffstat:
sys/dev/mca/if_elmc_mca.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diffs (78 lines):
diff -r d63f8ac95e64 -r 4427a0dc25e8 sys/dev/mca/if_elmc_mca.c
--- a/sys/dev/mca/if_elmc_mca.c Tue Jul 12 02:03:57 2022 +0000
+++ b/sys/dev/mca/if_elmc_mca.c Tue Jul 12 02:06:07 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_elmc_mca.c,v 1.32 2016/07/14 04:00:45 msaitoh Exp $ */
+/* $NetBSD: if_elmc_mca.c,v 1.33 2022/07/12 02:06:07 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.32 2016/07/14 04:00:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.33 2022/07/12 02:06:07 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -234,8 +234,6 @@
(u_long) sc->iscp);
/* flush setup of pointers, check if chip answers */
- bus_space_barrier(sc->bt, sc->bh, 0, sc->sc_msize,
- BUS_SPACE_BARRIER_WRITE);
if (!i82586_proberam(sc)) {
aprint_error_dev(self, "can't talk to i82586!\n");
@@ -282,9 +280,6 @@
int dribble;
u_int8_t* bptr = dst;
- bus_space_barrier(sc->bt, sc->bh, offset, size,
- BUS_SPACE_BARRIER_READ);
-
if (offset % 2) {
*bptr = bus_space_read_1(sc->bt, sc->bh, offset);
offset++; bptr++; size--;
@@ -306,8 +301,6 @@
size_t size)
{
int dribble;
- int osize = size;
- int ooffset = offset;
const u_int8_t* bptr = src;
if (offset % 2) {
@@ -323,15 +316,11 @@
offset += size - 1;
bus_space_write_1(sc->bt, sc->bh, offset, *bptr);
}
-
- bus_space_barrier(sc->bt, sc->bh, ooffset, osize,
- BUS_SPACE_BARRIER_WRITE);
}
static u_int16_t
elmc_mca_read_16 (struct ie_softc *sc, int offset)
{
- bus_space_barrier(sc->bt, sc->bh, offset, 2, BUS_SPACE_BARRIER_READ);
return bus_space_read_2(sc->bt, sc->bh, offset);
}
@@ -339,7 +328,6 @@
elmc_mca_write_16 (struct ie_softc *sc, int offset, u_int16_t value)
{
bus_space_write_2(sc->bt, sc->bh, offset, value);
- bus_space_barrier(sc->bt, sc->bh, offset, 2, BUS_SPACE_BARRIER_WRITE);
}
static void
@@ -347,7 +335,6 @@
{
bus_space_write_4(sc->bt, sc->bh, offset, addr +
(u_long) sc->sc_maddr - (u_long) sc->sc_iobase);
- bus_space_barrier(sc->bt, sc->bh, offset, 4, BUS_SPACE_BARRIER_WRITE);
}
/*
Home |
Main Index |
Thread Index |
Old Index