Changes to make twa work on amd64.
Reviewed by:re Approved by:re
This commit is contained in:
parent
e04dc12e69
commit
5acde78f19
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user