diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2004-05-22 16:14:17 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2004-05-22 16:14:17 +0000 |
| commit | 03161bbcf639dca1600a75bb7cc893dbae0e9483 (patch) | |
| tree | 51bff0748813fa32dc6a4a3e1849ad8cc299700a /sys/dev/firewire/fwdev.c | |
| parent | d6ed810a67fa30e63c4e41b72d7d18da9dfa741b (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire/fwdev.c')
| -rw-r--r-- | sys/dev/firewire/fwdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c index ae736c2969ba..29c025b83da7 100644 --- a/sys/dev/firewire/fwdev.c +++ b/sys/dev/firewire/fwdev.c @@ -128,8 +128,8 @@ fwdev_allocbuf(struct firewire_comm *fc, struct fw_xferq *q, if (q->bulkxfer == NULL) return(ENOMEM); - b->psize = roundup2(b->psize, sizeof(u_int32_t)); - q->buf = fwdma_malloc_multiseg(fc, sizeof(u_int32_t), + b->psize = roundup2(b->psize, sizeof(uint32_t)); + q->buf = fwdma_malloc_multiseg(fc, sizeof(uint32_t), b->psize, b->nchunk * b->npacket, BUS_DMA_WAITOK); if (q->buf == NULL) { @@ -347,7 +347,7 @@ readloop: return err; } err = uiomove((caddr_t)fp, - fp->mode.stream.len + sizeof(u_int32_t), uio); + fp->mode.stream.len + sizeof(uint32_t), uio); ir->queued ++; if(ir->queued >= ir->bnpacket){ s = splfw(); @@ -694,7 +694,7 @@ out: ptr = malloc(CROMSIZE, M_FW, M_WAITOK); len = CROMSIZE; for (i = 0; i < CROMSIZE/4; i++) - ((u_int32_t *)ptr)[i] + ((uint32_t *)ptr)[i] = ntohl(sc->fc->config_rom[i]); } else { /* found */ |
