From d2768df2f328ce4bb25c76b5bef61b89f4ed6ced Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 8 Jun 2008 14:02:25 +0000 Subject: [PATCH] Mention 64bit support once during boot and not every time the controller is reset. --- sys/dev/pci/twa.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/pci/twa.c b/sys/dev/pci/twa.c index 5180690d3410..b1df81cd04d2 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 -__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 #include @@ -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