Changes to make twa work on amd64.

Reviewed by:re
Approved by:re
This commit is contained in:
Vinod Kashyap 2004-08-18 16:14:44 +00:00
parent 0e45644862
commit 44511bd390
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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));