diff options
author | vkashyap <vkashyap@FreeBSD.org> | 2004-08-18 16:14:44 +0000 |
---|---|---|
committer | vkashyap <vkashyap@FreeBSD.org> | 2004-08-18 16:14:44 +0000 |
commit | 5acde78f19df35434f952ff7ea29669b437127ed (patch) | |
tree | f18b8d5fbae12de0552c2a8f1ff53fdac9789ba7 | |
parent | e04dc12e6960c14decc289fbe37da2bbbef3e3e2 (diff) | |
download | FreeBSD-src-5acde78f19df35434f952ff7ea29669b437127ed.zip FreeBSD-src-5acde78f19df35434f952ff7ea29669b437127ed.tar.gz |
Changes to make twa work on amd64.
Reviewed by:re
Approved by:re
-rw-r--r-- | sys/dev/twa/twa_freebsd.c | 2 | ||||
-rw-r--r-- | sys/dev/twa/twa_reg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/twa/twa_freebsd.c b/sys/dev/twa/twa_freebsd.c index 84ea6ad..828aae1 100644 --- a/sys/dev/twa/twa_freebsd.c +++ b/sys/dev/twa/twa_freebsd.c @@ -657,7 +657,7 @@ twa_fillin_sgl(struct twa_sg *sgl, bus_dma_segment_t *segs, int nsegments) for (i = 0; i < nsegments; i++) { sgl[i].address = segs[i].ds_addr; - sgl[i].length = segs[i].ds_len; + sgl[i].length = (u_int32_t)(segs[i].ds_len); } } diff --git a/sys/dev/twa/twa_reg.h b/sys/dev/twa/twa_reg.h index 287a1c4..f8800f8 100644 --- a/sys/dev/twa/twa_reg.h +++ b/sys/dev/twa/twa_reg.h @@ -198,7 +198,7 @@ /* Scatter/Gather list entry. */ struct twa_sg { bus_addr_t address; - bus_size_t length; + u_int32_t length; } __attribute__ ((packed)); |