eliminate casts from the DMAADDR macro. This depends upon bus_addr_t being
a type that you can do arithmetic with. This eliminates many warnings when compiling with PAE. Various by: scottl
This commit is contained in:
parent
21e914dc2a
commit
5e6a3dfd3f
@ -55,7 +55,7 @@ typedef struct usb_dma_block {
|
|||||||
} usb_dma_block_t;
|
} usb_dma_block_t;
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
#define DMAADDR(dma, o) ((uint32_t)(uintptr_t)(((char *)(dma)->block->segs[0].ds_addr) + (dma)->offs + (o)))
|
#define DMAADDR(dma, o) ((dma)->block->segs[0].ds_addr + (dma)->offs + (o))
|
||||||
#else
|
#else
|
||||||
#define DMAADDR(dma, o) (((char *)(dma)->block->map->dm_segs[0].ds_addr) + (dma)->offs + (o))
|
#define DMAADDR(dma, o) (((char *)(dma)->block->map->dm_segs[0].ds_addr) + (dma)->offs + (o))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user