summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2008-06-08 14:02:25 +0000
committerjoerg <joerg@NetBSD.org>2008-06-08 14:02:25 +0000
commitd2768df2f328ce4bb25c76b5bef61b89f4ed6ced (patch)
tree0fdcd5a5a9f0991a7da3f7815b941bfae0e3775d /sys
parent1f459d82b5fcf25451995095f82963a5e1bc4bc1 (diff)
Mention 64bit support once during boot and not every time the controller
is reset.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/twa.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/pci/twa.c b/sys/dev/pci/twa.c
index 5180690d341..b1df81cd04d 100644
--- a/sys/dev/pci/twa.c
+++ b/sys/dev/pci/twa.c
@@ -1,4 +1,4 @@
-/* $NetBSD: twa.c,v 1.24 2008/06/08 12:43:52 tsutsui Exp $ */
+/* $NetBSD: twa.c,v 1.25 2008/06/08 14:02:25 joerg Exp $ */
/* $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $ */
/*-
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.24 2008/06/08 12:43:52 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.25 2008/06/08 14:02:25 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1553,10 +1553,12 @@ twa_attach(struct device *parent, struct device *self, void *aux)
return;
}
- if (pci_dma64_available(pa) && use_64bit)
+ if (pci_dma64_available(pa) && use_64bit) {
+ aprint_verbose_dev(self, "64bit DMA addressing active");
sc->twa_dma_tag = pa->pa_dmat64;
- else
+ } else {
sc->twa_dma_tag = pa->pa_dmat;
+ }
sc->sc_product_id = PCI_PRODUCT(pa->pa_id);
/* Enable the device. */
@@ -2503,10 +2505,8 @@ twa_init_connection(struct twa_softc *sc, uint16_t message_credits,
init_connect->request_id = tr->tr_request_id;
init_connect->message_credits = message_credits;
init_connect->features = set_features;
- if (TWA_64BIT_ADDRESSES) {
- printf("64 bit addressing supported for scatter/gather list\n");
+ if (TWA_64BIT_ADDRESSES)
init_connect->features |= TWA_64BIT_SG_ADDRESSES;
- }
if (set_features & TWA_EXTENDED_INIT_CONNECT) {
/*
* Fill in the extra fields needed for