summaryrefslogtreecommitdiffstats
path: root/sys/dev/twa/tw_cl_init.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-03-23 19:27:23 +0000
committerjhb <jhb@FreeBSD.org>2009-03-23 19:27:23 +0000
commit2a133f1d037766e0cac65a70ebbda47d5b2afa33 (patch)
treeb64f02976be232967b0adf254d52948ee9618975 /sys/dev/twa/tw_cl_init.c
parent2ebb70aa7f501fece85c61a8cc45d77bfb869e7d (diff)
downloadFreeBSD-src-2a133f1d037766e0cac65a70ebbda47d5b2afa33.zip
FreeBSD-src-2a133f1d037766e0cac65a70ebbda47d5b2afa33.tar.gz
Reenable 64-bit DMA for twa(4) controllers, but use a boundary of 4GB to
prevent individual transactions from crossing a 4GB address boundary. Due to bus_size_t type limitations, the driver uses a 2GB boundary in PAE kernels. Reviewed by: scottl MFC after: 1 week
Diffstat (limited to 'sys/dev/twa/tw_cl_init.c')
-rw-r--r--sys/dev/twa/tw_cl_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/twa/tw_cl_init.c b/sys/dev/twa/tw_cl_init.c
index 52864b2..ca282fa 100644
--- a/sys/dev/twa/tw_cl_init.c
+++ b/sys/dev/twa/tw_cl_init.c
@@ -692,7 +692,7 @@ tw_cli_init_connection(struct tw_cli_ctlr_context *ctlr,
init_connect->message_credits = TW_CL_SWAP16(message_credits);
init_connect->features = TW_CL_SWAP32(set_features);
if (ctlr->flags & TW_CL_64BIT_ADDRESSES)
- init_connect->features |= TWA_64BIT_SG_ADDRESSES;
+ init_connect->features |= TW_CL_SWAP32(TWA_64BIT_SG_ADDRESSES);
if (set_features & TWA_EXTENDED_INIT_CONNECT) {
/*
* Fill in the extra fields needed for an extended
OpenPOWER on IntegriCloud