diff options
| author | Vinod Kashyap <vkashyap@FreeBSD.org> | 2004-08-18 16:14:44 +0000 |
|---|---|---|
| committer | Vinod Kashyap <vkashyap@FreeBSD.org> | 2004-08-18 16:14:44 +0000 |
| commit | 44511bd3903e8df410852765eb1829e3abbd3c9a (patch) | |
| tree | f18b8d5fbae12de0552c2a8f1ff53fdac9789ba7 /sys/dev/twa | |
| parent | 0e456448626bf3e628a645c69cabdc4d0fe436d1 (diff) | |
Notes
Diffstat (limited to 'sys/dev/twa')
| -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 84ea6ad80af2..828aae18e0ca 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 287a1c4ee99a..f8800f89cbcc 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)); |
