summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-11-17 19:09:17 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-11-17 19:09:17 +0000
commit810f81d685bf2da808f210880817d5c85cb714a0 (patch)
tree3115d23c2637752360c1b4a973e47427c0644538 /sys/dev
parent85b3ef5397fc4c1f7d8bd68080927b777b0a24e5 (diff)
update the physical address of the RX buffer after bus_dmamap_load()
in the case where the old buffer is remapped.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ipw.c3
-rw-r--r--sys/dev/pci/if_iwi.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c
index 1df56e0435f..9af9daec09a 100644
--- a/sys/dev/pci/if_ipw.c
+++ b/sys/dev/pci/if_ipw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ipw.c,v 1.69 2007/09/07 19:05:05 damien Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.70 2007/11/17 19:09:16 damien Exp $ */
/*-
* Copyright (c) 2004-2006
@@ -860,6 +860,7 @@ ipw_data_intr(struct ipw_softc *sc, struct ipw_status *status,
panic("%s: could not load old rx mbuf",
sc->sc_dev.dv_xname);
}
+ sbd->bd->physaddr = htole32(sbuf->map->dm_segs[0].ds_addr);
ifp->if_ierrors++;
return;
}
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index 3ff94e961e2..56923690bdc 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.85 2007/09/07 19:05:05 damien Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.86 2007/11/17 19:09:16 damien Exp $ */
/*-
* Copyright (c) 2004-2006
@@ -915,6 +915,7 @@ iwi_frame_intr(struct iwi_softc *sc, struct iwi_rx_data *data,
panic("%s: could not load old rx mbuf",
sc->sc_dev.dv_xname);
}
+ CSR_WRITE_4(sc, data->reg, data->map->dm_segs[0].ds_addr);
ifp->if_ierrors++;
return;
}