diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-02-13 00:56:33 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-02-13 00:56:33 +0000 |
commit | f546d60715d875b74dd3d32fdb0031f9506be56a (patch) | |
tree | 67306f07711c5b3149179e56d55e8f2d584b9958 /sys/dev/pci/if_bge.c | |
parent | 2b5157568fb0684e9f5d49ba39a0bcd6a503902a (diff) |
properly set BGE_HCC_STATS_ADDR_HI by using BGE_HOSTADDR.
this makes it consistent with the rest of the code.
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 1d0ff59ebb9..8d071130cc8 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.384 2017/01/24 03:57:34 dlg Exp $ */ +/* $OpenBSD: if_bge.c,v 1.385 2017/02/13 00:56:32 dlg Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2204,9 +2204,9 @@ bge_blockinit(struct bge_softc *sc) /* Set up address of statistics block */ if (!(BGE_IS_5705_PLUS(sc))) { - CSR_WRITE_4(sc, BGE_HCC_STATS_ADDR_HI, 0); - CSR_WRITE_4(sc, BGE_HCC_STATS_ADDR_LO, - BGE_RING_DMA_ADDR(sc, bge_info.bge_stats)); + BGE_HOSTADDR(taddr, BGE_RING_DMA_ADDR(sc, bge_info.bge_stats)); + CSR_WRITE_4(sc, BGE_HCC_STATS_ADDR_HI, taddr.bge_addr_hi); + CSR_WRITE_4(sc, BGE_HCC_STATS_ADDR_LO, taddr.bge_addr_lo); CSR_WRITE_4(sc, BGE_HCC_STATS_BASEADDR, BGE_STATS_BLOCK); CSR_WRITE_4(sc, BGE_HCC_STATUSBLK_BASEADDR, BGE_STATUS_BLOCK); |