summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsec.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-14 01:28:21 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-14 01:28:21 +0000
commitd3e2a42e28b7f7fb363f28a9918c9ab29a2f2308 (patch)
treea8e34713e8b9fd2b6db11ba81b1526d4dbe101a1 /sys/dev/pci/ubsec.c
parent82eea0215ac2ff413289c770827908f3b94c49db (diff)
Let UBSEC_DEBUG compile; based on diff from sam at errno dot com
(also nuke the last vtophys so it'll even work on sparc64)
Diffstat (limited to 'sys/dev/pci/ubsec.c')
-rw-r--r--sys/dev/pci/ubsec.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index ae06b6b1bce..848f8bd9631 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.122 2002/12/06 22:03:26 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.123 2003/02/14 01:28:20 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -560,7 +560,8 @@ feed1:
WRITE_REG(sc, BS_MCR1, q->q_dma->d_alloc.dma_paddr +
offsetof(struct ubsec_dmachunk, d_mcr));
#ifdef UBSEC_DEBUG
- printf("feed: q->chip %p %08x\n", q, (u_int32_t)vtophys(&q->q_dma->d_dma->d_mcr));
+ printf("feed: q->chip %p %08x\n", q,
+ (u_int32_t)q->q_dma->d_alloc.dma_paddr);
#endif /* UBSEC_DEBUG */
SIMPLEQ_REMOVE_HEAD(&sc->sc_queue, q, q_next);
--sc->sc_nqueue;
@@ -1030,9 +1031,9 @@ ubsec_process(crp)
offsetof(struct ubsec_dmachunk, d_macbuf[0]));
#ifdef UBSEC_DEBUG
printf("opkt: %x %x %x\n",
- dmap->d_mcr->mcr_opktbuf.pb_addr,
- dmap->d_mcr->mcr_opktbuf.pb_len,
- dmap->d_mcr->mcr_opktbuf.pb_next);
+ dmap->d_dma->d_mcr.mcr_opktbuf.pb_addr,
+ dmap->d_dma->d_mcr.mcr_opktbuf.pb_len,
+ dmap->d_dma->d_mcr.mcr_opktbuf.pb_next);
#endif
} else {
if (crp->crp_flags & CRYPTO_F_IOV) {